3 //=============================================================================
5 * @file Load_Balancing_Service.h
7 * Driver for Load Balancing service.
9 * @author Marina Spivak <marina@cs.wustl.edu> with modifications by Bala Natarajan <bala@cs.wustl.edu>
11 //=============================================================================
14 #ifndef LOAD_BALANCING_SERVICE_H_
15 #define LOAD_BALANCING_SERVICE_H_
17 #include "tao/Utils/ORB_Manager.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 * @class Load_Balancing_Service
26 * Server, which creates and initializes a
27 * <Load_Balancer::Object_Group_Factory>
28 * object, and runs the orb loop.
30 class Load_Balancing_Service
33 /// Default constructor.
34 Load_Balancing_Service ();
37 ~Load_Balancing_Service ();
39 /// Initialize the <Load_Balancing_Service>: initializes the ORB, parses
40 /// arguments, creates a servant ...
41 int init (int argc
, ACE_TCHAR
*argv
[]);
47 /// Parses the commandline arguments.
48 int parse_args (int argc
, ACE_TCHAR
*argv
[]);
51 TAO_ORB_Manager orb_manager_
;
53 /// File to output the <Object_Group_Factory> IOR.
54 FILE *ior_output_file_
;
57 #endif /* LOAD_BALANCING_SERVICE_H_ */