ZeusBase-Library
2.0.4
|
#include <Naming.h>
Public Member Functions | |
Retval | connect (const TString &rAddress, Uint uiPort) |
void | disconnect () |
Retval | getLocalContext (INamedContext *&rpContext) |
void | setDelegationInterface (INaming *pIface) |
virtual bool MQUALIFIER | hasRemoteContext () const |
virtual bool MQUALIFIER | isConnected () const |
virtual void MQUALIFIER | releaseLocalContext () |
virtual Retval MQUALIFIER | bind (const IString &rName, const IRemoteObject &rObject) |
virtual Retval MQUALIFIER | rebind (const IString &rName, const IRemoteObject &rObject) |
virtual Retval MQUALIFIER | unbind (const IString &rName) |
virtual Retval MQUALIFIER | lookup (const IString &rQuery, IRemoteObject *&rpObject) |
virtual Retval MQUALIFIER | lookupObjects (const IString &rQuery, IRemoteObjectList &rObjects) |
virtual Retval MQUALIFIER | lookupAny (const IString &rQuery, IRemoteObject *&rpObject) |
virtual Retval MQUALIFIER | getObjectNames (const IString &rQuery, IStringList &rNames) |
virtual Retval MQUALIFIER | askForInterface (const InterfaceID &rInterfaceID, IZUnknown *&rpIface) |
virtual void MQUALIFIER | addRef () const |
virtual void MQUALIFIER | release () const |
Public Member Functions inherited from zeus::TZObject | |
TZObject () | |
TZObject (const TString &strName) | |
TZObject (const IString &strName) | |
Uint | getHash () const |
TString | toString () const |
virtual TString | getObjName () const |
virtual void | setObjName (const TString &name) |
Static Public Member Functions | |
static TNaming & | getInstance () |
static Retval | createNewInstance (TNaming *&rpObject) |
Protected Member Functions | |
void | createLocalContext () |
bool | checkAndCreateLocalContext () |
TNaming () | |
virtual | ~TNaming () |
Protected Member Functions inherited from zeus::TZObject | |
virtual | ~TZObject () |
TZObject (const TZObject &rObject) | |
TZObject & | operator= (const TZObject &rObject) |
Int | getRefCounter () const |
Additional Inherited Members | |
Protected Attributes inherited from zeus::TZObject | |
Uint | m_uiID |
The Naming class is used as a singleton to access the zeus naming server. The naming server provides a nice registration directory for remote objects. The user of a remote object can simple lookup. The naming API represents the initial or root context of the naming server.
If the naming API is not connected to a server it work locally. It builds a local directory structure. This is useful for testing and designing remote objects without configuring any server.
|
protected |
Creates the naming service
|
protectedvirtual |
Destroys the naming service
|
virtual |
Reimplemented from zeus::TZObject.
|
virtual |
Reimplemented from zeus::TZObject.
|
virtual |
Implements zeus::INamedContext.
|
inlineprotected |
Checks and creates the local context if it's not available
Retval TNaming::connect | ( | const TString & | rAddress, |
Uint | uiPort | ||
) |
This creates a stub of the naming server to access a remote naming service. This method fails if the useRemote() method wasnt called before.
rAddress | : Address of the real server |
uiPort | : Port of the real server |
|
protected |
creates a local context. The local context is held in memory only.
|
static |
Creates a new naming instance
void TNaming::disconnect | ( | ) |
Resets the naming service. All registered object will be released
|
inlinestatic |
Returns the singleton of the naming service
Retval TNaming::getLocalContext | ( | INamedContext *& | rpContext | ) |
Returns the local context of the naming service
|
virtual |
Implements zeus::INamedContext.
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Implements zeus::INamedContext.
|
virtual |
Implements zeus::INamedContext.
|
virtual |
Implements zeus::INamedContext.
|
virtual |
Implements zeus::INamedContext.
|
virtual |
Reimplemented from zeus::TZObject.
|
virtual |
void TNaming::setDelegationInterface | ( | INaming * | iface | ) |
Sets the delegation interface
|
virtual |
Implements zeus::INamedContext.