summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/Trading_Service/Trading_Service.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/Trading_Service/Trading_Service.h')
-rw-r--r--TAO/orbsvcs/Trading_Service/Trading_Service.h99
1 files changed, 0 insertions, 99 deletions
diff --git a/TAO/orbsvcs/Trading_Service/Trading_Service.h b/TAO/orbsvcs/Trading_Service/Trading_Service.h
deleted file mode 100644
index 55210166821..00000000000
--- a/TAO/orbsvcs/Trading_Service/Trading_Service.h
+++ /dev/null
@@ -1,99 +0,0 @@
-// $Id$
-
-// ========================================================================
-//
-// = BINARY
-// trader
-//
-// = FILENAME
-// Trading_Service.h
-//
-// = AUTHOR
-// Seth Widoff <sbw1@cs.wustl.edu>
-//
-// =======================================================================
-
-#if !defined (_TRADING_SERVICE_H)
-#define _TRADING_SERVICE_H
-
-#include "tao/TAO.h"
-#include "ace/Auto_Ptr.h"
-#include "orbsvcs/IOR_Multicast.h"
-#include "orbsvcs/Trader/Trader.h"
-#include "orbsvcs/Trader/Service_Type_Repository.h"
-
-class Trading_Service;
-
-class Trading_Shutdown : public ACE_Event_Handler
-{
-public:
-
- Trading_Shutdown (Trading_Service& trader);
-
- virtual int handle_signal (int, siginfo_t*, ucontext_t*);
-
-private:
-
- Trading_Service& trader_;
- ACE_Sig_Handler shutdown_;
-};
-
-
-class Trading_Service
-// = TITLE
-// A class that initializes a Trading Service instance.
-{
-public:
-
- Trading_Service (void);
- // Default constructor.
-
- ~Trading_Service (void);
- // Destructor
-
- int init (int argc, char* argv[]);
- // Initialize the Trading Service with arguments.
-
- int run (void);
- // Run the Trading Service.
-
- int shutdown (void);
-
-private:
-
- int init_multicast_server (void);
- // Enable the Trading Service to answer multicast requests for its IOR.
-
- int bootstrap_to_federation (void);
- // Bootstrap to another trader, and attach to its trader network.
-
- int parse_args (int& argc, char *argv[]);
- // parses the arguments.
-
- TAO_ORB_Manager orb_manager_;
- // The ORB manager.
-
- TAO_Service_Type_Repository type_repos_;
- // Service Type Repository used by the trading service.
-
- auto_ptr<TAO_Trader_Factory::TAO_TRADER> trader_;
- // Pointer to the linked trader.
-
- CORBA::String_var name_;
- // Name of this trading service: "hostname:pid".
-
- CORBA::String_var ior_;
- // IOR of the trader kept around for handiness purposes.
-
- CORBA::Boolean federate_;
- // Flag indicating whether this trader should join the federation.
-
- CORBA::Boolean bootstrapper_;
- // Flag inidicating whether we're the trader others are bootstrapping to.
-
- TAO_IOR_Multicast ior_multicast_;
- // Event handler that responds to resolve_initial_references requests.
-};
-
-
-#endif /* _TRADING_SERVICE_H */