blob: 69cc02813bd3465c67240b3f1afd6155499aceb8 (
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
|
// -*- C++ -*-
//=======================================================================
/**
* @file LB_ReplicaInfo.h
*
* $Id$
*
* @author Ossama Othman <ossama@uci.edu>
*/
//=======================================================================
#ifndef TAO_LB_REPLICA_INFO_H
#define TAO_LB_REPLICA_INFO_H
#include "ace/pre.h"
#include "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/LoadBalancingC.h"
// Forward declarations.
struct TAO_LB_Location_Map_Entry;
struct TAO_LB_ObjectGroup_Map_Entry;
struct TAO_LB_ReplicaInfo;
typedef ACE_Unbounded_Set<TAO_LB_ReplicaInfo *> TAO_LB_ReplicaInfo_Set;
/**
* @class TAO_LB_ReplicaInfo
*
* @brief Class that contains all replica-specific information.
*
*
*/
struct TAO_LB_ReplicaInfo
{
/// Reference to the replica.
CORBA::Object_var replica;
/// FactoryInfo used when creating the replica.
PortableGroup::FactoryInfo factory_info;
/// FactoryCreationId assigned to this replica. This
/// FactoryCreationId_var will contain a zero pointer if the replica
/// was not created using a GenericFactory.
PortableGroup::GenericFactory::FactoryCreationId_var factory_creation_id;
/// Pointer to the object group map entry corresponding to the
/// object group to which this replica member in this structure
/// belongs.
TAO_LB_ObjectGroup_Map_Entry *object_group_entry;
/// Pointer to the location map entry containing the information
/// related to the location the replica corresponding to this
/// TAO_LB_ReplicaInfo structure.
TAO_LB_Location_Map_Entry *location_entry;
};
#include "ace/post.h"
#endif /* TAO_LB_REPLICA_INFO_H */
|