blob: cce7edc96be65f869f3a69ef4af6c5d3a5ae072f (
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
|
// -*- C++ -*-
//=============================================================================
/**
* @file Node_Locator.h
*
* $Id$
*
* @Brief Locates NodeManager instances.
*
* @author William R. Otte <wotte@dre.vanderbilt.edu>
*/
//=============================================================================
#ifndef NODE_LOCATOR_H_
#define NODE_LOCATOR_H_
#include "ace/Map_Manager.h"
#include "orbsvcs/orbsvcs/CosNamingC.h"
#include "tao/ORB.h"
#include "DAnCE/Deployment/Deployment_NodeManagerC.h"
#include "DomainApplicationManager/DomainApplicationManager_Export.h"
namespace DAnCE
{
class DomainApplicationManager_Export Node_Locator
{
public:
Node_Locator (CORBA::ORB_ptr orb,
CosNaming::NamingContext_var nc);
::Deployment::NodeManager_ptr locate_node (const ACE_TCHAR *name);
bool process_node_map (const ACE_TCHAR *file);
void store_ior (const ACE_TCHAR *name, const ACE_TCHAR *ior);
private:
::Deployment::NodeManager_ptr resolve_ior (const ACE_TCHAR *name,
const ACE_TCHAR *ior);
::Deployment::NodeManager_ptr ns_lookup (const ACE_TCHAR *name);
typedef ACE_Map_Manager<ACE_TString,
ACE_TString,
ACE_Null_Mutex> NODEMAP;
NODEMAP nodes_;
CORBA::ORB_var orb_;
CosNaming::NamingContext_var nc_;
};
}
#endif /* NODE_LOCATOR_H_ */
|