summaryrefslogtreecommitdiff
path: root/TAO/examples/Load_Balancing/Identity_Server.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Load_Balancing/Identity_Server.h')
-rw-r--r--TAO/examples/Load_Balancing/Identity_Server.h83
1 files changed, 0 insertions, 83 deletions
diff --git a/TAO/examples/Load_Balancing/Identity_Server.h b/TAO/examples/Load_Balancing/Identity_Server.h
deleted file mode 100644
index 1068a4fc12d..00000000000
--- a/TAO/examples/Load_Balancing/Identity_Server.h
+++ /dev/null
@@ -1,83 +0,0 @@
-// $Id$
-// -*- C++ -*-
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/examples/Load_Balancing
-//
-// = FILENAME
-// Identity_Server.h
-//
-// = DESCRIPTION
-// Driver for identity server, which is used to test/demonstrate
-// the functionality of the Load Balancing service.
-//
-// = AUTHORS
-// Marina Spivak <marina@cs.wustl.edu>
-//
-// ============================================================================
-
-#ifndef IDENTITY_SERVER_H_
-#define IDENTITY_SERVER_H_
-
-#include "tao/TAO.h"
-#include "Load_BalancerC.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-class Identity_Server
-{
- // =TITLE
- // Contacts the <Object_Group_Factory> in the Load Balancing Server
- // to create two <Object_Group>s, one round robin and one random.
- // Then, creates a number of <Identity> objects and registers them with
- // the created <Object_Group>s in a manner specified by the
- // commandline arguments.
- //
-public:
-
- Identity_Server (void);
- // Default constructor.
-
- ~Identity_Server (void);
- // Destructor.
-
- int init (int argc, char *argv[]);
- // Performs all the initializations necessary before going into the
- // ORB event loop.
-
- int run (CORBA::Environment &ACE_TRY_ENV);
- // Run the server.
-
-private:
- int parse_args (int argc, char *argv[]);
- // Parses the commandline arguments.
-
- void create_objects (size_t number_of_objects,
- Load_Balancer::Object_Group_ptr group,
- CORBA::Environment &ACE_TRY_ENV);
- // Creates the specified number of identity objects, and registers
- // each one with the provided <Object_Group>. Identity servants are
- // given names
- //"Identity object 1" .... "Identity object <number_of_objects>".
-
- TAO_ORB_Manager orb_manager_;
- // The ORB manager.
-
- const char *group_factory_ior_;
- // The ior of the <Object_Group_Factory> object we shall use to
- // create <Object_Group>s to load balance our <Identity> objects.
-
- size_t random_objects_;
- // Number of <Identity> objects to create for registering with
- // the random <Object_Group>. The default value is 5.
-
- size_t rr_objects_;
- // Number of <Identity> objects to create for registering with the
- // round robin <Object_Group>. The default value is 5.
-};
-
-#endif /* IDENTITY_SERVER_H_ */