blob: d03947d6a2f9079c97b8eb9aa0ed9183fdbfb3b9 (
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
|
// -*- C++ -*-
//=======================================================================
/**
* @file LB_Location_Map.h
*
* $Id$
*
* @author Ossama Othman <ossama@uci.edu>
*/
//=======================================================================
#ifndef TAO_LB_LOCATION_MAP_H
#define TAO_LB_LOCATION_MAP_H
#include "ace/pre.h"
#include "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Hash_Map_Manager_T.h"
#include "orbsvcs/LoadBalancingC.h"
#include "LB_ReplicaInfo.h"
#include "LB_Location_Hash.h"
#include "LB_Location_Equal_To.h"
/**
* @class TAO_LB_Location_Map_Entry
*
* @brief Value field (internal ID) of the location hash map.
*
* Structure that contains all information corresponding to a given
* location.
*/
struct TAO_LB_Location_Map_Entry
{
/// Set of replicas at the location corresponding to this location
/// map entry.
TAO_LB_ReplicaInfo_Set replica_infos;
/// List of loads reported by the load monitor at the given
/// location.
LoadBalancing::LoadList_var load_list;
/// Reference to the load monitor at the given location.
LoadBalancing::LoadMonitor_var load_monitor;
};
/// Location hash map.
typedef ACE_Hash_Map_Manager_Ex<
LoadBalancing::Location,
TAO_LB_Location_Map_Entry *,
TAO_LB_Location_Hash,
TAO_LB_Location_Equal_To,
TAO_SYNCH_MUTEX> TAO_LB_Location_Map;
#include "ace/post.h"
#endif /* TAO_LB_LOCATION_MAP_H */
|