zeus::TNaming Class Reference
#include <Naming.h>
List of all members.
Detailed Description
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.
Constructor & Destructor Documentation
| TNaming::TNaming |
( |
|
) |
[protected] |
Creates the naming service
| TNaming::~TNaming |
( |
|
) |
[protected, virtual] |
Destroys the naming service
Member Function Documentation
| TNaming & zeus::TNaming::getInstance |
( |
|
) |
[inline, static] |
Returns the singleton of the naming service
- Returns:
- singleton
| Retval TNaming::createNewInstance |
( |
TNaming *& |
rpObject |
) |
[static] |
Creates a new naming instance
| 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.
- Parameters:
-
| rAddress | : Address of the real server |
| uiPort | : Port of the real server |
| void TNaming::disconnect |
( |
|
) |
|
Resets the naming service. All registered object will be released
Returns the local context of the naming service
| void TNaming::setDelegationInterface |
( |
INaming * |
iface |
) |
|
Sets the delegation interface
| bool MQUALIFIER zeus::TNaming::hasRemoteContext |
( |
|
) |
const [inline, virtual] |
| bool MQUALIFIER zeus::TNaming::isConnected |
( |
|
) |
const [inline, virtual] |
| void MQUALIFIER TNaming::releaseLocalContext |
( |
|
) |
[virtual] |
| Retval MQUALIFIER TNaming::rebind |
( |
const IString & |
rName, |
|
|
const IRemoteObject & |
rObject | |
|
) |
| | [virtual] |
| Retval MQUALIFIER TNaming::unbind |
( |
const IString & |
rName |
) |
[virtual] |
| Retval MQUALIFIER TNaming::lookupObjects |
( |
const IString & |
rQuery, |
|
|
IRemoteObjectList & |
rObjects | |
|
) |
| | [virtual] |
| Retval MQUALIFIER TNaming::lookupAny |
( |
const IString & |
rQuery, |
|
|
IRemoteObject *& |
rpObject | |
|
) |
| | [virtual] |
| Retval MQUALIFIER TNaming::getObjectNames |
( |
const IString & |
rQuery, |
|
|
IStringList & |
rNames | |
|
) |
| | [virtual] |
| virtual Retval MQUALIFIER zeus::TNaming::askForInterface |
( |
Uint |
uiInterfaceID, |
|
|
IZUnknown *& |
rpIface | |
|
) |
| | [virtual] |
| virtual void MQUALIFIER zeus::TNaming::addRef |
( |
|
) |
const [virtual] |
| virtual void MQUALIFIER zeus::TNaming::release |
( |
|
) |
const [virtual] |
| void TNaming::createLocalContext |
( |
|
) |
[protected] |
creates a local context. The local context is held in memory only.
| bool zeus::TNaming::checkAndCreateLocalContext |
( |
|
) |
[inline, protected] |
Checks and creates the local context if it's not available
The documentation for this class was generated from the following files: