#include <Repository.h>
Collaboration diagram for Server_Repository:

Public Types | |
| typedef ACE_Hash_Map_Entry< ACE_TString, Server_Info *> | HASH_IMR_ENTRY |
| typedef ACE_Hash_Map_Manager_Ex< ACE_TString, Server_Info *, ACE_Hash< ACE_TString >, ACE_Equal_To< ACE_TString >, ACE_Null_Mutex > | HASH_IMR_MAP |
| typedef ACE_Hash_Map_Iterator_Ex< ACE_TString, Server_Info *, ACE_Hash< ACE_TString >, ACE_Equal_To< ACE_TString >, ACE_Null_Mutex > | HASH_IMR_ITER |
Public Methods | |
| Server_Repository () | |
| Default Constructor. More... | |
| ~Server_Repository () | |
| Destructor. More... | |
| int | init () |
| Initializes the Server Repository. More... | |
| int | add (const ACE_TString POA_name, const ACE_TString logical_server_name, const ACE_TString startup_command, const ImplementationRepository::EnvironmentList environment_vars, const ACE_TString working_dir, const ImplementationRepository::ActivationMode activation) |
| Add a new server to the Repository. More... | |
| int | update (const ACE_TString POA_name, const ACE_TString location, const ACE_TString server_object_ior) |
| Update the associated process information. More... | |
| int | get_startup_info (const ACE_TString POA_name, ACE_TString &logical_server_name, ACE_TString &startup_command, ImplementationRepository::EnvironmentList &environment_vars, ACE_TString &working_dir, ImplementationRepository::ActivationMode &activation) |
| Returns information related to startup. More... | |
| int | get_running_info (const ACE_TString POA_name, ACE_TString &location, ACE_TString &server_object_ior) |
| Returns information related to a running copy. More... | |
| int | starting_up (const ACE_TString POA_name, int new_value) |
| Checks the starting_up_ variable in the Server_Info and returns the previous value or -1 if the POA_name wasn't found. More... | |
| int | starting_up (const ACE_TString POA_name) |
| Same as above but does not alter the value. More... | |
| int | remove (const ACE_TString POA_name) |
| Removes the server from the Repository. More... | |
| HASH_IMR_ITER * | new_iterator () |
| Returns a new iterator that travels over the repository. More... | |
| size_t | get_repository_size () |
| Returns the number of entries in the repository. More... | |
Private Attributes | |
| HASH_IMR_MAP | repository_ |
| ACE_Configuration_Section_Key | servers_ |
Handles the storage, updating, and startup of servers.
|
|
|
|
|
|
|
|
|
|
|
Default Constructor.
|
|
|
Destructor.
|
|
||||||||||||||||||||||||||||
|
Add a new server to the Repository.
|
|
|
Returns the number of entries in the repository.
|
|
||||||||||||||||
|
Returns information related to a running copy.
|
|
||||||||||||||||||||||||||||
|
Returns information related to startup.
|
|
|
Initializes the Server Repository.
|
|
|
Returns a new iterator that travels over the repository.
|
|
|
Removes the server from the Repository.
|
|
|
Same as above but does not alter the value.
|
|
||||||||||||
|
Checks the starting_up_ variable in the Server_Info and returns the previous value or -1 if the POA_name wasn't found.
|
|
||||||||||||||||
|
Update the associated process information.
|
|
|
|
|
|
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001