summaryrefslogtreecommitdiff
path: root/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.cpp')
-rw-r--r--TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.cpp86
1 files changed, 0 insertions, 86 deletions
diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.cpp b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.cpp
deleted file mode 100644
index 1a81241a843..00000000000
--- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.cpp
+++ /dev/null
@@ -1,86 +0,0 @@
-// ============================================================================
-//
-// = LIBRARY
-// CORBA Visibroker marshal benchmark
-//
-// = FILENAME
-// visi_marshal_server.cpp
-//
-// = AUTHOR
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "visi_marshal_server.h"
-
-#if !defined (__ACE_INLINE__)
-#include "visi_marshal_server.i"
-#endif /* __ACE_INLINE__ */
-
-int
-Visi_Marshal_Server_Proxy::run (CORBA_Marshal_Proxy::OPTIONS &options,
- CORBA_Marshal_Proxy::RESULTS &results)
-{
- char **argv;
- int argc;
-
- // get the argument list to be passed on to the ORB_init method
- argv = options.orb_init_args (argc);
-
- // get the orb. Pass any ORB_init arguments
- this->orb_ = CORBA::ORB_init (argc, (char *const *)argv);
- if (this->orb_ == 0)
- {
- ACE_DEBUG ((LM_DEBUG, "ORB_init failed\n"));
- return -1;
- }
-
- // get the argument list to be passed on to the BOA_init method
- argv = options.orb_init_args (argc);
-
- // get the orb. Pass any ORB_init arguments
- this->boa_ = this->orb_->BOA_init (argc, (char *const *)argv);
- if (this->boa_ == 0)
- {
- ACE_DEBUG ((LM_DEBUG, "ORB_init failed\n"));
- return -1;
- }
-
- // tell the "results" object what file it must store the results into
- results.filename (options.filename ());
-
- // use SII or DII accordingly
- switch (options.policy ())
- {
- case CORBA_Marshal_Options::STATIC : // use SSI
- this->ssi_ = new Marshal_SSI_Impl (options.object_name ());
- // register with the BOA
- this->boa_->obj_is_ready (this->ssi_);
- break;
- case CORBA_Marshal_Options::DYNAMIC : // use DSI
- this->dsi_ = new Marshal_DSI_Impl (this->orb_, ACE_OS::strdup (options.object_name ()));
- // register with the BOA
- try {
- this->boa_->obj_is_ready (this->dsi_);
- }
- catch (CORBA::SystemException &se)
- {
- cerr << "system exception in obj_is_ready" << se << endl;
- }
- break;
- default:
- ACE_DEBUG ((LM_DEBUG, "bad policy\n"));
- return -1;
- }
-
- try {
- // call impl_is_ready
- this->boa_->impl_is_ready ();
- }
- catch (CORBA::SystemException &se)
- {
- cerr << "system exception: " << se << endl;
- }
- return 0;
-}
-