diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-03-07 21:21:58 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-03-07 21:21:58 +0000 |
commit | bf944d8c0ca4135a8a919668e89cffbd710ae3c0 (patch) | |
tree | 70f3e603dfc6fad9a07ee4736ef390cfe718df1c /TAO/performance-tests/Pluggable/PP_Test_Server.h | |
parent | 242a692cf449bc164cb7a69c2efcbf5f6f9e027f (diff) | |
download | ATCD-bf944d8c0ca4135a8a919668e89cffbd710ae3c0.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO/performance-tests/Pluggable/PP_Test_Server.h')
-rw-r--r-- | TAO/performance-tests/Pluggable/PP_Test_Server.h | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/TAO/performance-tests/Pluggable/PP_Test_Server.h b/TAO/performance-tests/Pluggable/PP_Test_Server.h new file mode 100644 index 00000000000..3dd33c53616 --- /dev/null +++ b/TAO/performance-tests/Pluggable/PP_Test_Server.h @@ -0,0 +1,79 @@ +// -*- c++ -*- +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// TAO/performance-tests/Pluggable +// +// = FILENAME +// PP_Test_Server.h +// +// = DESCRIPTION +// This class implements simple oneway and twoway no-op requests +// to time latency and overhead of the pluggable protocol functionality. +// +// = AUTHOR +// Jeff Parsons <parsons@cs.wustl.edu> +// +// ============================================================================ + +#ifndef _PP_TEST_SERVER_H +#define _PP_TEST_SERVER_H + +#include "ace/Get_Opt.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/TAO.h" +#include "PP_Test_i.h" + +class PP_Test_Server +{ + // = TITLE + // Defines a server class that implements the functionality + // of a server process as an object. + // + // = DESCRIPTION + // The interface is quite simple. A server program has to call + // init to initialize the server's state and then call run + // to run the orb. +public: + // = Initialization and termination methods. + PP_Test_Server (void); + // Default constructor + + ~PP_Test_Server (void); + // Destructor + + int init (int argc, + char **argv, + CORBA::Environment& env); + // Initialize the server state - parsing arguments, etc. + + int run (CORBA::Environment& env); + // Run the orb + +private: + int parse_args (void); + // Parses the commandline arguments. + + FILE* ior_output_file_; + // File to output the cubit factory IOR. + + TAO_ORB_Manager orb_manager_; + // The ORB manager. + + Pluggable_Test_Factory_i *factory_impl_; + // Implementation object of the Pluggable Test factory. + + int argc_; + // Number of commandline arguments. + + char **argv_; + // commandline arguments. +}; + +#endif /* _PP_TEST_SERVER_H */ |