3 //=============================================================================
5 * @file Notifier_Server.h
7 * @author Pradeep Gore <pradeep@cs.wustl.edu>
9 //=============================================================================
12 #ifndef _NOTIFIER_SERVER_H
13 #define _NOTIFIER_SERVER_H
15 #include "Event_Comm_i.h"
16 #include "tao/Utils/ORB_Manager.h"
17 #include "orbsvcs/CosNamingS.h"
18 #include "orbsvcs/Naming/Naming_Client.h"
21 * @class Notifier_Server
23 * @brief The Notifier Server that handles CORBA operations from
24 * Consumers and Suppliers.
35 /// Initialize the Server state.
36 int init (int argc
, ACE_TCHAR
*argv
[]);
41 /// Close the naming service.
45 ACE_Reactor
*reactor();
48 /// Initialises the name server and registers the Notifier server
49 /// object name with the name server.
50 int init_naming_service ();
53 TAO_ORB_Manager orb_manager_
;
55 /// Servant for the Notifier interface.
58 /// Naming context for the naming service.
59 CosNaming::NamingContext_var naming_context_
;
61 /// helper class for getting access to Naming Service.
62 TAO_Naming_Client naming_server_
;
65 #define NOTIFIER_BIND_NAME "Notifier"
67 #endif /* _NOTIFIER_SERVER_H */