summaryrefslogtreecommitdiff
path: root/ACE/TAO/examples/Load_Balancing/Load_Balancing_Service.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/TAO/examples/Load_Balancing/Load_Balancing_Service.h')
-rw-r--r--ACE/TAO/examples/Load_Balancing/Load_Balancing_Service.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/ACE/TAO/examples/Load_Balancing/Load_Balancing_Service.h b/ACE/TAO/examples/Load_Balancing/Load_Balancing_Service.h
new file mode 100644
index 00000000000..db4c2373723
--- /dev/null
+++ b/ACE/TAO/examples/Load_Balancing/Load_Balancing_Service.h
@@ -0,0 +1,61 @@
+// $Id$
+// -*- C++ -*-
+
+// ============================================================================
+//
+// = LIBRARY
+// TAO/examples/Load_Balancing
+//
+// = FILENAME
+// Load_Balancing_Service.h
+//
+// = DESCRIPTION
+// Driver for Load Balancing service.
+//
+// = AUTHORS
+// Marina Spivak <marina@cs.wustl.edu>
+//
+// ============================================================================
+
+#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
+{
+ // =TITLE
+ // Server, which creates and initializes a
+ // <Load_Balancer::Object_Group_Factory>
+ // object, and runs the orb loop.
+public:
+
+ Load_Balancing_Service (void);
+ // Default constructor.
+
+ ~Load_Balancing_Service (void);
+ // Destructor.
+
+ int init (int argc, ACE_TCHAR *argv[]);
+ // Initialize the <Load_Balancing_Service>: initializes the ORB, parses
+ // arguments, creates a servant ...
+
+ int run (void);
+ // Run the server.
+
+private:
+ int parse_args (int argc, ACE_TCHAR *argv[]);
+ // Parses the commandline arguments.
+
+ TAO_ORB_Manager orb_manager_;
+ // The ORB manager.
+
+ FILE *ior_output_file_;
+ // File to output the <Object_Group_Factory> IOR.
+};
+
+#endif /* LOAD_BALANCING_SERVICE_H_ */