summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/Cubit/TAO/MT_Cubit/server.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/performance-tests/Cubit/TAO/MT_Cubit/server.h')
-rw-r--r--TAO/performance-tests/Cubit/TAO/MT_Cubit/server.h175
1 files changed, 0 insertions, 175 deletions
diff --git a/TAO/performance-tests/Cubit/TAO/MT_Cubit/server.h b/TAO/performance-tests/Cubit/TAO/MT_Cubit/server.h
deleted file mode 100644
index 412d4285950..00000000000
--- a/TAO/performance-tests/Cubit/TAO/MT_Cubit/server.h
+++ /dev/null
@@ -1,175 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests
-//
-// = FILENAME
-// server.h
-//
-// = AUTHOR
-// Andy Gokhale, Sumedh Mungee, and Sergio Flores-Gaitan
-//
-// ============================================================================
-
-// ACE includes.
-#include "ace/Get_Opt.h"
-#include "ace/Log_Msg.h"
-#include "ace/ARGV.h"
-#include "ace/Sched_Params.h"
-#include "orbsvcs/CosNamingC.h"
-
-// TAO includes.
-#include "tao/corba.h"
-
-// MT Cubit application includes.
-#include "cubit_i.h"
-
-#if defined (VME_DRIVER)
-#include <hostLib.h>
-extern "C" STATUS vmeDrv (void);
-extern "C" STATUS vmeDevCreate (char *);
-#endif /* VME_DRIVER */
-
-// Global Variables
-static CORBA::String key = CORBA::String ("Cubit");
-
-// Size of the string for holding the stringified object reference.
-// Sumedh, what is the rationale for a string of size 30? Can you use
-// a more general parameter instead? Perhaps this needs to go into
-// TAO somewhere?
-const u_int OBJECT_STRING_SIZE = 30;
-
-#if !defined (ACE_HAS_THREADS)
-class NOOP_ACE_Barrier
-{
-public:
- NOOP_ACE_Barrier (int ) {}
- void wait (void) {}
-};
-#define ACE_Barrier NOOP_ACE_Barrier
-#endif /* ACE_HAS_THREADS */
-
-class Cubit_Task : public ACE_Task<ACE_NULL_SYNCH>
- // = TITLE
- // Encapsulates an ORB for the Cubit application.
-{
- public:
- Cubit_Task (const char *args,
- const char* orbname,
- u_int num_of_objs,
- ACE_Barrier *barrier,
- u_int task_id);
- // Constructor.
-
- virtual int svc (void);
- // Active Object entry point.
-
- CORBA::String get_servant_ior (u_int index);
-
-protected:
- Cubit_Task (void);
- // No-op constructor.
-
-private:
- int initialize_orb (void);
- // Initialize the ORB, and POA.
-
- int create_servants (void);
- // Create the servants
-
- char *orbname_;
- // Name of the ORB.
-
- char *orbargs_;
- // ORB arguments.
-
- u_int num_of_objs_;
- // Number of objects we're managing.
-
- CORBA::ORB_var orb_;
- // Pointer to the ORB
-
- PortableServer::POA_var root_poa_;
- // Pointer to the Root POA
-
- PortableServer::POA_var poa_;
- // Pointer to the child POA used on the application.
-
- PortableServer::POAManager_var poa_manager_;
- // The POA Manager for both the root POA and the child POA.
-
- Cubit_i **servants_;
- // Array to hold the servants
-
- ACE_Barrier *barrier_;
- // Barrier for the multiple servants to synchronize after
- // binding to the orb.
-
- CORBA::String * servants_iors_;
- // ior strings of the servants
-
- CosNaming::NamingContext_var naming_context_;
- // Object reference to the naming service
-
- u_int task_id_;
- // id used for naming service object name.
-
- CosNaming::NamingContext_var mt_cubit_context_;
- // context where all MT Cubit objects will be created.
-};
-
-class Cubit_Factory_Task : public ACE_Task<ACE_NULL_SYNCH>
- // = TITLE
- // Encapsulates an ORB for the Cubit Factory application.
-{
-public:
- Cubit_Factory_Task (const char *args,
- const char* orbname,
- CORBA::String * cubits,
- u_int num_of_objs);
- // Constructor.
-
- virtual int svc (void);
- // Active Object entry point.
-
-protected:
- Cubit_Factory_Task (void);
- // No-op constructor.
-
-private:
- int initialize_orb (void);
- // Initialize the ORB, and POA.
-
- int create_factory (void);
- // activates the factory in the poa.
-
- char *orbname_;
- // Name of the ORB.
-
- char *orbargs_;
- // ORB arguments.
-
- CORBA::ORB_var orb_;
- // Pointer to the ORB
-
- PortableServer::POA_var root_poa_;
- // Pointer to the Root POA
-
- PortableServer::POA_var poa_;
- // Pointer to the child POA used on the application.
-
- PortableServer::POAManager_var poa_manager_;
- // The POA Manager for both the root POA and the child POA.
-
- CORBA::String * cubits_;
- // Array of cubit ior strings
-
- Cubit_Factory_i * cubit_factory_;
- // cubit factory object
-
- u_int num_of_objs_;
- // number of cubit objects we have ior's for.
-};
-