// -*- C++ -*- //============================================================================= /** * @file Load_Balancing_Service.h * * Driver for Load Balancing service. * * @author Marina Spivak */ //============================================================================= #ifndef LOAD_BALANCING_SERVICE_H_ #define LOAD_BALANCING_SERVICE_H_ #include "tao/Utils/ORB_Manager.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ /** * @class Load_Balancing_Service * * Server, which creates and initializes a * * object, and runs the orb loop. */ class Load_Balancing_Service { public: /// Default constructor. Load_Balancing_Service (); /// Destructor. ~Load_Balancing_Service (); /// Initialize the : initializes the ORB, parses /// arguments, creates a servant ... int init (int argc, ACE_TCHAR *argv[]); /// Run the server. int run (); private: /// Parses the commandline arguments. int parse_args (int argc, ACE_TCHAR *argv[]); /// The ORB manager. TAO_ORB_Manager orb_manager_; /// File to output the IOR. FILE *ior_output_file_; }; #endif /* LOAD_BALANCING_SERVICE_H_ */