#include <ImR_Activator_i.h>
Inheritance diagram for ImR_Activator_i:
Public Methods | |
ImR_Activator_i (void) | |
~ImR_Activator_i (void) | |
char * | find_ior (const char *object_name ACE_ENV_ARG_DECL) throw (CORBA::SystemException, ImplementationRepository::NotFound) |
IOR_LookupTable_Callback method. Will return an IOR. | |
virtual void | activate_server (const char *server ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw ( CORBA::SystemException, ImplementationRepository::NotFound, ImplementationRepository::CannotActivate ) |
Starts up the server <server> if not already running. | |
virtual void | register_server (const char *server, const ImplementationRepository::StartupOptions &options ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw ( CORBA::SystemException, ImplementationRepository::AlreadyRegistered, ImplementationRepository::NotFound ) |
virtual void | reregister_server (const char *server, const ImplementationRepository::StartupOptions &options ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, ImplementationRepository::AlreadyRegistered, ImplementationRepository::NotFound ) |
Updates the startup information about the server <server>. | |
virtual void | remove_server (const char *server ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, ImplementationRepository::NotFound) |
Removes the server <server> from the repository. | |
virtual void | shutdown_server (const char *server ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, ImplementationRepository::NotFound) |
Attempts to gracefully shut down the server,. | |
virtual void | server_is_running (const char *server, const char *partial_ior, ImplementationRepository::ServerObject_ptr server_object ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, ImplementationRepository::NotFound) |
virtual void | server_is_shutting_down (const char *server ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, ImplementationRepository::NotFound) |
What the server should call before it shuts down. | |
virtual void | find (const char *server, ImplementationRepository::ServerInformation_out info ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, ImplementationRepository::NotFound) |
Returns the startup information for a server. | |
virtual void | list (CORBA::ULong how_many, ImplementationRepository::ServerInformationList_out server_list, ImplementationRepository::ServerInformationIterator_out server_iterator ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException) |
virtual char * | activate_server_with_startup (const char *server, int check_startup ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw ( CORBA::SystemException, ImplementationRepository::NotFound, ImplementationRepository::CannotActivate ) |
int | init (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) |
Initialize the Server state - parsing arguments and waiting. | |
int | fini (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) |
Cleans up any state created by init (). | |
int | run (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) |
Runs the orb. | |
Private Methods | |
char * | activate_server_i (const char *server, int check_startup ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw ( CORBA::SystemException, ImplementationRepository::NotFound, ImplementationRepository::CannotActivate ) |
void | start_server_i (const char *server ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw ( CORBA::SystemException, ImplementationRepository::NotFound, ImplementationRepository::CannotActivate ) |
This method starts the server process. | |
int | ready_check (const char *server) throw (CORBA::SystemException, ImplementationRepository::NotFound) |
Private Attributes | |
ACE_Process_Manager | process_mgr_ |
The Process Manager. | |
Server_Repository | repository_ |
Repository containing information about each server. | |
PortableServer::POA_var | root_poa_ |
The Root POA for this ORB. | |
PortableServer::POA_var | imr_poa_ |
Implementation Repository's POA. | |
CORBA::Long | registration_token_ |
ACE_CString | name_ |
This class provides the interface for the various activities that can be done by the ImR_Activator.
|
|
|
|
|
Starts up the server <server> if not already running.
Implements POA_ImplementationRepository::Administration. |
|
|
|
Implementation of activate_server. <check_startup> is a flag to check the activation mode before attempting to start it. |
|
Returns the startup information for a server.
Implements POA_ImplementationRepository::Administration. |
|
IOR_LookupTable_Callback method. Will return an IOR.
Implements POA_ImplementationRepository::Administration. |
|
Cleans up any state created by init ().
|
|
Initialize the Server state - parsing arguments and waiting.
|
|
Used to access the list of servers registered. May also return an iterator which can be used to access more than <how_many> of them. Implements POA_ImplementationRepository::Administration. |
|
This method will continuously ping a server and either return when it responds to the ping or return -1 if it times out. |
|
Adds the server to the repository and registers the startup information about the server <server>. Implements POA_ImplementationRepository::Administration. |
|
Removes the server <server> from the repository.
Implements POA_ImplementationRepository::Administration. |
|
Updates the startup information about the server <server>.
Implements POA_ImplementationRepository::Administration. |
|
Runs the orb.
|
|
Called by the server to update transient information such as current location of the <server> and its ServerObject. Implements POA_ImplementationRepository::Administration. |
|
What the server should call before it shuts down.
Implements POA_ImplementationRepository::Administration. |
|
Attempts to gracefully shut down the server,. Attempt to gracefully shut down the server, if that fails, will try to do it ungracefully. Implements POA_ImplementationRepository::Administration. |
|
This method starts the server process.
|
|
Implementation Repository's POA.
|
|
|
|
The Process Manager.
|
|
We're given a token when registering with the locator, which we must use when unregistering. |
|
Repository containing information about each server.
|
|
The Root POA for this ORB.
|