Collaboration diagram for org::xmlBlaster::client::protocol::corba::NameServerControl:
Public Member Functions | ||||
NameServerControl (CORBA::ORB_ptr orb, std::string sep1="/", std::string sep2=".") | ||||
This contructor takes the orb (which must be a valid orb) and two std::string separators. | ||||
NameServerControl (CosNaming::NamingContext_var &relativeContext, std::string sep1="/", std::string sep2=".") | ||||
| ||||
CORBA::Object_ptr | resolve (const std::string &name) | |||
| ||||
CORBA::Object_ptr | resolve (CosNaming::Name &nameComponent) | |||
Used to resolve a given name. | ||||
CORBA::Object_ptr | resolve (const std::string &id, const std::string &kind) | |||
| ||||
CosNaming::NamingContext_ptr | getNamingService () | |||
Returns the naming service reference Caller needs to free instance (typically by assigning it to a _var). | ||||
Static Public Member Functions | ||||
static std::string | getString (CosNaming::Name nameComponent, std::string sep1="/", std::string sep2=".") | |||
Creates a std::string representation of a NameService name hierarchy. | ||||
static std::string | getString (const std::string &id, const std::string &kind, std::string sep2=".") | |||
Creates a std::string representation of a NameService name hierarchy. |
..). It is a helper which makes such accesses easier (and less exceptions to take care of).
Definition at line 36 of file NameServerControl.h.
org::xmlBlaster::client::protocol::corba::NameServerControl::NameServerControl | ( | CORBA::ORB_ptr | orb, | |
std::string | sep1 = "/" , |
|||
std::string | sep2 = "." | |||
) |
This contructor takes the orb (which must be a valid orb) and two std::string separators.
It retrieves a reference to the NameServer sep1: is the main separator, i.e. which separates the names from each other. sep2: is the std::string which separates the name (or id) from the kind
Definition at line 55 of file NameServerControl.h.
References to_string().
org::xmlBlaster::client::protocol::corba::NameServerControl::NameServerControl | ( | CosNaming::NamingContext_var & | relativeContext, | |
std::string | sep1 = "/" , |
|||
std::string | sep2 = "." | |||
) |
relativeContext | A relative context in the name service |
Definition at line 97 of file NameServerControl.h.
CORBA::Object_ptr org::xmlBlaster::client::protocol::corba::NameServerControl::resolve | ( | const std::string & | name | ) |
name | of type "xmlBlaster.MOM/heron.MOM" sep1="/", sep2="." |
On | problems or if reference is nil |
Definition at line 107 of file NameServerControl.h.
Referenced by org::xmlBlaster::client::protocol::corba::CorbaConnection::initAuthenticationService().
CORBA::Object_ptr org::xmlBlaster::client::protocol::corba::NameServerControl::resolve | ( | CosNaming::Name & | nameComponent | ) |
Used to resolve a given name.
Returns a reference to the object if an object with the given name exists. Otherwise returns zero. The caller is responsible to free the pointer.
nameComponent |
On | problems or if reference is nil |
Definition at line 128 of file NameServerControl.h.
References getString(), and to_string().
CORBA::Object_ptr org::xmlBlaster::client::protocol::corba::NameServerControl::resolve | ( | const std::string & | id, | |
const std::string & | kind | |||
) |
id | For example "xmlBlaster" |
kind | For example "MOM" |
Definition at line 163 of file NameServerControl.h.
CosNaming::NamingContext_ptr org::xmlBlaster::client::protocol::corba::NameServerControl::getNamingService | ( | ) |
Returns the naming service reference Caller needs to free instance (typically by assigning it to a _var).
Definition at line 175 of file NameServerControl.h.
static std::string org::xmlBlaster::client::protocol::corba::NameServerControl::getString | ( | CosNaming::Name | nameComponent, | |
std::string | sep1 = "/" , |
|||
std::string | sep2 = "." | |||
) | [static] |
Creates a std::string representation of a NameService name hierarchy.
This is useful for logging
Definition at line 184 of file NameServerControl.h.
Referenced by org::xmlBlaster::client::protocol::corba::CorbaConnection::initAuthenticationService(), and resolve().
static std::string org::xmlBlaster::client::protocol::corba::NameServerControl::getString | ( | const std::string & | id, | |
const std::string & | kind, | |||
std::string | sep2 = "." | |||
) | [static] |
Creates a std::string representation of a NameService name hierarchy.
This is useful for logging
id | "xmlBlaster" | |
kind | "MOM" |
Definition at line 204 of file NameServerControl.h.