blob: d0b64b49e4fee599079cbc66ed1d93e503a7b208 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
/* -*- C++ -*- */
//=============================================================================
/**
* @file FT_FaultEventDescriptor.h
*
* $Id$
*
* This file is part of TAO's implementation of Fault Tolerant CORBA.
*
* @author Steve Totten <totten_s@ociweb.com>
*/
//=============================================================================
#ifndef FT_FAULT_EVENT_DESCRIPTOR_H_
#define FT_FAULT_EVENT_DESCRIPTOR_H_
#include /**/ "ace/pre.h"
#include <ace/ACE.h>
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/FT_CORBAC.h"
#include "orbsvcs/PortableGroupC.h"
#include "FT_ReplicationManagerLib_export.h"
namespace TAO
{
/// Helper class for describing the properties in a fault event.
struct TAO_ReplicationManagerLib_Export FT_FaultEventDescriptor
{
public:
/// Default constructor.
FT_FaultEventDescriptor ();
/// Debugging support.
void dump ();
/////////////////
/// Data members.
/// Flags indicating the "extent" of the fault.
int all_at_location_failed;
int all_of_type_at_location_failed;
int object_at_location_failed;
int object_is_primary;
/// The location of the fault.
PortableGroup::Location_var location;
/// The TypeId of the object that faulted.
PortableGroup::TypeId_var type_id;
/// The ObjectGroupId of the faulted object.
PortableGroup::ObjectGroupId object_group_id;
/// Other properties of the object group to which the fault relates.
PortableGroup::MembershipStyleValue membership_style;
FT::ReplicationStyleValue replication_style;
PortableGroup::MinimumNumberMembersValue minimum_number_members;
PortableGroup::InitialNumberMembersValue initial_number_members;
/// The object group's factories.
PortableGroup::FactoryInfos_var factories;
};
} // namespace TAO
#include /**/ "ace/post.h"
#endif /* FT_FAULT_EVENT_DESCRIPTOR_H_ */
|