TAO_CosTrader  2.4.2
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
TAO_Trading_Loader Class Reference

#include <Trading_Loader.h>

Inheritance diagram for TAO_Trading_Loader:
Inheritance graph
[legend]
Collaboration diagram for TAO_Trading_Loader:
Collaboration graph
[legend]

Public Member Functions

 TAO_Trading_Loader (void)
 Constructor. More...
 
 ~TAO_Trading_Loader (void)
 Destructor. More...
 
virtual int init (int argc, ACE_TCHAR *argv[])
 
virtual int fini (void)
 
int run (void)
 Run the Trading Service. More...
 
CORBA::Object_ptr create_object (CORBA::ORB_ptr orb, int argc, ACE_TCHAR *argv[])
 
- Public Member Functions inherited from TAO_Object_Loader
virtual ~TAO_Object_Loader (void)
 
- Public Member Functions inherited from ACE_Service_Object
 ACE_Service_Object (ACE_Reactor *=0)
 
virtual ~ACE_Service_Object (void)
 
virtual int suspend (void)
 
virtual int resume (void)
 
- Public Member Functions inherited from ACE_Event_Handler
virtual ~ACE_Event_Handler (void)
 
virtual ACE_HANDLE get_handle (void) const
 
virtual void set_handle (ACE_HANDLE)
 
virtual int priority (void) const
 
virtual void priority (int priority)
 
virtual int handle_input (ACE_HANDLE fd=ACE_INVALID_HANDLE)
 
virtual int handle_output (ACE_HANDLE fd=ACE_INVALID_HANDLE)
 
virtual int handle_exception (ACE_HANDLE fd=ACE_INVALID_HANDLE)
 
virtual int handle_timeout (const ACE_Time_Value &current_time, const void *act=0)
 
virtual int handle_exit (ACE_Process *)
 
virtual int handle_close (ACE_HANDLE handle, ACE_Reactor_Mask close_mask)
 
virtual int handle_signal (int signum, siginfo_t *=0, ucontext_t *=0)
 
virtual int resume_handler (void)
 
virtual int handle_qos (ACE_HANDLE=ACE_INVALID_HANDLE)
 
virtual int handle_group_qos (ACE_HANDLE=ACE_INVALID_HANDLE)
 
virtual void reactor (ACE_Reactor *reactor)
 
virtual ACE_Reactorreactor (void) const
 
virtual ACE_Reactor_Timer_Interfacereactor_timer_interface (void) const
 
virtual Reference_Count add_reference (void)
 
virtual Reference_Count remove_reference (void)
 
Reference_Counting_Policyreference_counting_policy (void)
 
- Public Member Functions inherited from ACE_Shared_Object
 ACE_Shared_Object (void)
 
virtual ~ACE_Shared_Object (void)
 
virtual int info (ACE_TCHAR **info_string, size_t length=0) const
 

Protected Member Functions

int init_multicast_server (void)
 
int bootstrap_to_federation (void)
 Bootstrap to another trader, and attach to its trader network. More...
 
int parse_args (int &argc, ACE_TCHAR *argv[])
 Parses the command line arguments. More...
 
- Protected Member Functions inherited from ACE_Event_Handler
 ACE_Event_Handler (ACE_Reactor *=0, int priority=ACE_Event_Handler::LO_PRIORITY)
 

Protected Attributes

TAO_ORB_Manager orb_manager_
 The ORB manager. More...
 
auto_ptr< TAO_Trader_Factory::TAO_TRADERtrader_
 Pointer to the linked trader. More...
 
TAO_Service_Type_Repository type_repos_
 Service Type Repository used by the trading service. More...
 
CORBA::String_var ior_
 IOR of the trader kept around for handiness purposes. More...
 
CORBA::Boolean federate_
 Flag indicating whether this trader should join the federation. More...
 
FILE * ior_output_file_
 File to output the Naming Service IOR. More...
 
CORBA::String_var name_
 Name of this trading service: "hostname:pid". More...
 
TAO_IOR_Multicast ior_multicast_
 
CORBA::Boolean bootstrapper_
 Flag inidicating whether we're the trader others are bootstrapping to. More...
 
- Protected Attributes inherited from ACE_Event_Handler
Atomic_Reference_Count reference_count_
 

Private Member Functions

 TAO_Trading_Loader (const TAO_Trading_Loader &)
 
TAO_Trading_Loaderoperator= (const TAO_Trading_Loader &)
 

Additional Inherited Members

- Public Types inherited from ACE_Event_Handler
typedef long Reference_Count
 
- Static Public Member Functions inherited from ACE_Event_Handler
static ACE_THR_FUNC_RETURN read_adapter (void *event_handler)
 
static int register_stdin_handler (ACE_Event_Handler *eh, ACE_Reactor *reactor, ACE_Thread_Manager *thr_mgr, int flags=THR_DETACHED)
 
static int remove_stdin_handler (ACE_Reactor *reactor, ACE_Thread_Manager *thr_mgr)
 
- Public Attributes inherited from ACE_Service_Object
 ACE_ALLOC_HOOK_DECLARE
 
- Public Attributes inherited from ACE_Event_Handler
 LO_PRIORITY
 
 HI_PRIORITY
 
 NULL_MASK
 
 READ_MASK
 
 WRITE_MASK
 
 EXCEPT_MASK
 
 ACCEPT_MASK
 
 CONNECT_MASK
 
 TIMER_MASK
 
 QOS_MASK
 
 GROUP_QOS_MASK
 
 SIGNAL_MASK
 
 ALL_EVENTS_MASK
 
 RWE_MASK
 
 DONT_CALL
 
 ACE_EVENT_HANDLER_NOT_RESUMED
 
 ACE_REACTOR_RESUMES_HANDLER
 
 ACE_APPLICATION_RESUMES_HANDLER
 
- Protected Types inherited from ACE_Event_Handler
typedef ACE_Atomic_Op< ACE_SYNCH_MUTEX, Reference_CountAtomic_Reference_Count
 

Constructor & Destructor Documentation

TAO_Trading_Loader::TAO_Trading_Loader ( void  )

Constructor.

TAO_Trading_Loader::~TAO_Trading_Loader ( void  )

Destructor.

TAO_Trading_Loader::TAO_Trading_Loader ( const TAO_Trading_Loader )
private

Member Function Documentation

int TAO_Trading_Loader::bootstrap_to_federation ( void  )
protected

Bootstrap to another trader, and attach to its trader network.

CORBA::Object_ptr TAO_Trading_Loader::create_object ( CORBA::ORB_ptr  orb,
int  argc,
ACE_TCHAR argv[] 
)
virtual

This function call initializes the Trading Service given a reference to the ORB and the command line parameters.

Implements TAO_Object_Loader.

int TAO_Trading_Loader::fini ( void  )
virtual

Called by the Service Configurator framework to remove the Event Service. Defined in <ace/Service_Config.h>

Reimplemented from ACE_Shared_Object.

int TAO_Trading_Loader::init ( int  argc,
ACE_TCHAR argv[] 
)
virtual

Called by the Service Configurator framework to initialize the Event Service. Defined in <ace/Service_Config.h>

Reimplemented from ACE_Shared_Object.

int TAO_Trading_Loader::init_multicast_server ( void  )
protected

Enable the Trading Service to answer multicast requests for its IOR.

TAO_Trading_Loader& TAO_Trading_Loader::operator= ( const TAO_Trading_Loader )
private
int TAO_Trading_Loader::parse_args ( int &  argc,
ACE_TCHAR argv[] 
)
protected

Parses the command line arguments.

int TAO_Trading_Loader::run ( void  )

Run the Trading Service.

Member Data Documentation

CORBA::Boolean TAO_Trading_Loader::bootstrapper_
protected

Flag inidicating whether we're the trader others are bootstrapping to.

CORBA::Boolean TAO_Trading_Loader::federate_
protected

Flag indicating whether this trader should join the federation.

CORBA::String_var TAO_Trading_Loader::ior_
protected

IOR of the trader kept around for handiness purposes.

TAO_IOR_Multicast TAO_Trading_Loader::ior_multicast_
protected

Event handler that responds to resolve_initial_references requests.

FILE* TAO_Trading_Loader::ior_output_file_
protected

File to output the Naming Service IOR.

CORBA::String_var TAO_Trading_Loader::name_
protected

Name of this trading service: "hostname:pid".

TAO_ORB_Manager TAO_Trading_Loader::orb_manager_
protected

The ORB manager.

auto_ptr<TAO_Trader_Factory::TAO_TRADER> TAO_Trading_Loader::trader_
protected

Pointer to the linked trader.

TAO_Service_Type_Repository TAO_Trading_Loader::type_repos_
protected

Service Type Repository used by the trading service.


The documentation for this class was generated from the following files: