TAO_Implementation_Repository 4.0.3
|
ACE_Configuration backing store interface containing all ImR persistent information. More...
#include <Config_Backing_Store.h>
Public Member Functions | |
Config_Backing_Store (const Options &opts, CORBA::ORB_ptr orb, ACE_Configuration &config) | |
virtual | ~Config_Backing_Store () |
![]() | |
Locator_Repository (const Options &opts, CORBA::ORB_ptr orb) | |
virtual | ~Locator_Repository () |
virtual void | shutdown () |
int | unregister_if_address_reused (const ACE_CString &fqname, const char *partial_ior, ImR_Locator_i *imr_locator) |
int | add_server (const ACE_CString &fqname, const ImplementationRepository::StartupOptions &options) |
Add a new server to the Repository. | |
int | add_server (const ACE_CString &fqname, const ACE_CString &partial_ior, const ACE_CString &ior, ImplementationRepository::ServerObject_ptr svrobj) |
int | add_server_i (Server_Info *si) |
int | link_peers (Server_Info_Ptr base, const CORBA::StringSeq peers) |
int | add_activator (const ACE_CString &name, const CORBA::Long token, const ACE_CString &ior=ACE_CString(""), ImplementationRepository::Activator_ptr act=ImplementationRepository::Activator::_nil()) |
Add a new activator to the Repository. | |
int | update_server (const Server_Info_Ptr &info) |
Update the associated information. | |
int | update_activator (const Activator_Info_Ptr &info) |
Update the associated information. | |
virtual void | notify_remote_access (const char *id, ImplementationRepository::AAM_Status state) |
Update the peer's access state. | |
Server_Info_Ptr | get_active_server (const ACE_CString &name, int pid=0) |
Returns information related to startup. | |
Activator_Info_Ptr | get_activator (const ACE_CString &name) |
Returns information related to startup. | |
bool | has_activator (const ACE_CString &name) |
int | remove_server (const ACE_CString &name, ImR_Locator_i *imr_locator) |
Removes the server from the Repository. | |
int | remove_activator (const ACE_CString &name) |
Removes the activator from the Repository. | |
SIMap & | servers () |
Returns the internal hash map containing the server information. | |
const SIMap & | servers () const |
AIMap & | activators () |
Returns the internal hash map containing the activator information. | |
const AIMap & | activators () const |
virtual const ACE_TCHAR * | repo_mode () const =0 |
Indicate the persistence mode for the repository. | |
int | init (PortableServer::POA_ptr root_poa, PortableServer::POA_ptr imr_poa, const char *this_ior) |
Initialize the repo. | |
bool | multicast () const |
Indicate if multicast should be used. | |
virtual int | report_ior (PortableServer::POA_ptr imr_poa) |
report the ImR Locator's IOR | |
Protected Member Functions | |
virtual int | init_repo (PortableServer::POA_ptr imr_poa) |
virtual int | persistent_update (const Server_Info_Ptr &info, bool add) |
perform server persistent update | |
virtual int | persistent_update (const Activator_Info_Ptr &info, bool add) |
perform activator persistent update | |
virtual int | persistent_remove (const ACE_CString &name, bool activator) |
perform persistent remove | |
int | remove (const ACE_CString &name, const ACE_TCHAR *key) |
remove the section with the given name from the key section | |
![]() | |
virtual int | sync_load () |
virtual int | recover_ior () |
recover the ImR Locator's IOR from the persisted file | |
int | setup_multicast (ACE_Reactor *reactor, const char *imr_ior) |
void | teardown_multicast () |
bool | registered () const |
Protected Attributes | |
ACE_Configuration & | config_ |
the ACE_Configuration backing store | |
int | status_ |
the status of the config_ | |
![]() | |
const Options & | opts_ |
TAO_IOR_Multicast | ior_multicast_ |
const CORBA::ORB_var | orb_ |
CORBA::String_var | imr_ior_ |
Private Member Functions | |
void | loadServers () |
load all servers | |
void | loadActivators () |
load all activators | |
Additional Inherited Members | |
![]() | |
typedef ACE_Hash_Map_Manager_Ex< ACE_CString, Server_Info_Ptr, ACE_Hash< ACE_CString >, ACE_Equal_To< ACE_CString >, ACE_Null_Mutex > | SIMap |
typedef ACE_Hash_Map_Manager_Ex< ACE_CString, Activator_Info_Ptr, ACE_Hash< ACE_CString >, ACE_Equal_To< ACE_CString >, ACE_Null_Mutex > | AIMap |
![]() | |
static ACE_CString | lcase (const ACE_CString &s) |
Convert to lower case. | |
ACE_Configuration backing store interface containing all ImR persistent information.
Config_Backing_Store::Config_Backing_Store | ( | const Options & | opts, |
CORBA::ORB_ptr | orb, | ||
ACE_Configuration & | config ) |
|
virtual |
|
protectedvirtual |
perform config backing store specific initialization (loads servers and activators from the backing store)
Implements Locator_Repository.
|
private |
load all activators
|
private |
load all servers
|
protectedvirtual |
perform persistent remove
Implements Locator_Repository.
|
protectedvirtual |
perform activator persistent update
Implements Locator_Repository.
|
protectedvirtual |
perform server persistent update
Implements Locator_Repository.
|
protected |
remove the section with the given name from the key section
|
protected |
the ACE_Configuration backing store
|
protected |
the status of the config_