NAME
ACE_CORBA_Handler -
Handle CORBA requests in conjunction with the ACE ACE_Reactor.
Note, do *NOT* inherit from this class! Instead, use the
ACE_MT_CORBA_HAndler and ACE_ST_CORBA_Handler as Singletons.
SYNOPSIS
#include <ace/CORBA_Handler.h>
class ACE_CORBA_Handler : public ACE_Service_Object
{
public:
virtual int activate_service (
const char *service_name,
const char *marker_name = 0,
const char *service_location = 0
);
virtual int deactivate_service (
const char *service_name = 0,
const char *marker_name = 0
);
void dump (void) const;
ACE_ALLOC_HOOK_DECLARE;
void reactor (ACE_Reactor *);
ACE_Reactor *reactor (void);
protected:
ACE_CORBA_Handler (void);
virtual ~ACE_CORBA_Handler (void);
virtual int register_service (
const char *service_name,
const char *marker_name,
const char *service_location
);
virtual int remove_service (
const char *service_name,
const char *marker_name = 0
);
ACE_Reactor *reactor_;
ssize_t reference_count_;
private:
ACE_CORBA_Handler (const ACE_CORBA_Handler &rhs);
const ACE_CORBA_Handler &operator= (const ACE_CORBA_Handler &rhs);
};
Activation and deactivation methods.
virtual int activate_service (
const char *service_name,
const char *marker_name = 0,
const char *service_location = 0
);
Activate and register service_name with the Orbix daemon. If
marker_name and service_location are != 0 then do a "putit"
to register this service with orbixd. This method also
increments the reference count of active services using the
ACE_ST_CORBA_Handler.
virtual int deactivate_service (
const char *service_name = 0,
const char *marker_name = 0
);
Decrement the reference count and free up all the
resources if this is the last service to be using
the ACE_ST_CORBA_Handler...
void dump (void) const;
Dump the state of an object.
ACE_ALLOC_HOOK_DECLARE;
Declare the dynamic allocation hooks.
void reactor (ACE_Reactor *);
Set the reactor instance.
ACE_Reactor *reactor (void);
Get the reactor instance.
Disallow assignment and initialization (this applies to derived
classes, as well!)
ACE_CORBA_Handler (const ACE_CORBA_Handler &rhs);
const ACE_CORBA_Handler &operator= (const ACE_CORBA_Handler &rhs);
AUTHOR
Douglas C. Schmidt (schmidt@cs.wustl.edu) and
Irfan Pyarali (irfan@wuerl.wustl.edu).
LIBRARY
ace