#include <ORB_Manager.h>
Collaboration diagram for TAO_ORB_Manager:
Public Methods | |
TAO_ORB_Manager (CORBA::ORB_ptr orb=0, PortableServer::POA_ptr poa=0, PortableServer::POAManager_ptr poa_manager=0) | |
Constructor. More... | |
int | init (int &argc, char *argv[] ACE_ENV_ARG_DECL_WITH_DEFAULTS) |
Initialize the ORB/root POA, using the supplied command line arguments or the default ORB components. More... | |
int | init (int &argc, char *argv[], const char *orb_name ACE_ENV_ARG_DECL_WITH_DEFAULTS) |
Initialize the ORB/root POA, using the supplied command line arguments or the default ORB components. More... | |
int | init_child_poa (int &argc, char *argv[], const char *poa_name ACE_ENV_ARG_DECL_WITH_DEFAULTS) |
Creates a child poa under the root poa with PERSISTENT and USER_ID policies. More... | |
int | init_child_poa (int &argc, char *argv[], const char *poa_name, const char *orb_name ACE_ENV_ARG_DECL_WITH_DEFAULTS) |
Creates a child poa under the root poa with PERSISTENT and USER_ID policies. More... | |
int | fini (ACE_ENV_SINGLE_ARG_DECL) |
Shut down. More... | |
~TAO_ORB_Manager (void) | |
Destructor. More... | |
int | activate_poa_manager (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) |
Put POA manager into the <Active> state, so that incoming corba requests are processed. More... | |
char * | activate (PortableServer::Servant servant ACE_ENV_ARG_DECL_WITH_DEFAULTS) |
Activate <servant>, using the POA <activate_object> call. More... | |
void | deactivate (const char *id ACE_ENV_ARG_DECL_WITH_DEFAULTS) |
Deactivate object in RootPOA. More... | |
char * | activate_under_child_poa (const char *object_name, PortableServer::Servant servant ACE_ENV_ARG_DECL_WITH_DEFAULTS) |
Precondition: init_child_poa has been called. More... | |
void | deactivate_under_child_poa (const char *id ACE_ENV_ARG_DECL_WITH_DEFAULTS) |
Deactivate object in child POA. More... | |
int | run (ACE_Time_Value &tv ACE_ENV_ARG_DECL_WITH_DEFAULTS) |
Run the ORB event loop with the specified <tv> time value. More... | |
int | run (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) |
CORBA::ORB_ptr | orb (void) |
Accessor which returns the ORB pointer. More... | |
PortableServer::POA_ptr | root_poa (void) |
Accessor which returns the root poa. More... | |
PortableServer::POA_ptr | child_poa (void) |
Accessor which returns the child poa. More... | |
PortableServer::POAManager_ptr | poa_manager (void) |
Accessor which returns the poa manager. More... | |
Protected Attributes | |
CORBA::ORB_var | orb_ |
The ORB. More... | |
PortableServer::POA_var | poa_ |
The POA for this ORB. More... | |
PortableServer::POA_var | child_poa_ |
Child poa under the root POA. More... | |
PortableServer::POAManager_var | poa_manager_ |
The POA manager of poa_. More... |
This class is a TAO extension that makes it easier to write CORBA applications. It's just a wrapper and doesn't do anything special within the ORB itself.
|
Constructor.
|
|
Destructor.
|
|
Activate <servant>, using the POA <activate_object> call. Users can call this method multiple times to activate multiple objects.
|
|
Put POA manager into the <Active> state, so that incoming corba requests are processed. This method is useful for clients, which are not going to enter "orb->run" loop, yet may want to service incoming requests while waiting for a result of CORBA call on a server.
|
|
Precondition: init_child_poa has been called. Activate <servant> using the POA <activate_object_with_id> created from the string <object_name>. Users should call this to activate objects under the child_poa.
|
|
Accessor which returns the child poa. Following the normal CORBA memory management rules of return values from functions, this function duplicates the poa return value before returning it.
|
|
Deactivate object in RootPOA.
|
|
Deactivate object in child POA.
|
|
Shut down. Invoke the destroy() methods on the orb and poa.
|
|
Initialize the ORB/root POA, using the supplied command line arguments or the default ORB components.
|
|
Initialize the ORB/root POA, using the supplied command line arguments or the default ORB components.
|
|
Creates a child poa under the root poa with PERSISTENT and USER_ID policies. Call this if you want a <child_poa> with the above policies, otherwise call init. Returns -1 on failure. |
|
Creates a child poa under the root poa with PERSISTENT and USER_ID policies. Call this if you want a <child_poa> with the above policies, otherwise call init.
|
|
Accessor which returns the ORB pointer. Following the normal CORBA memory management rules of return values from functions, this function duplicates the orb return value before returning it.
|
|
Accessor which returns the poa manager. Following the normal CORBA memory management rules of return values from functions, this function duplicates the poa manager return value before returning it.
|
|
Accessor which returns the root poa. Following the normal CORBA memory management rules of return values from functions, this function duplicates the poa return value before returning it.
|
|
|
|
Run the ORB event loop with the specified <tv> time value.
|
|
Child poa under the root POA.
|
|
The ORB.
|
|
The POA for this ORB.
|
|
The POA manager of poa_.
|