#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
| virtual void MQUALIFIER zeus::TNaming::addRef |
( |
) |
const [virtual] |
| virtual Retval MQUALIFIER zeus::TNaming::askForInterface |
( |
const InterfaceID & |
rInterfaceID, |
|
|
IZUnknown *& |
rpIface |
|
) |
| [virtual] |
| bool zeus::TNaming::checkAndCreateLocalContext |
( |
) |
[inline, protected] |
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.
- Parameters:
-
| rAddress | : Address of the real server |
| uiPort | : Port of the real server |
| void TNaming::createLocalContext |
( |
) |
[protected] |
creates a local context. The local context is held in memory only.
| Retval TNaming::createNewInstance |
( |
TNaming *& |
rpObject ) |
[static] |
Creates a new naming instance
| void TNaming::disconnect |
( |
) |
|
Resets the naming service. All registered object will be released
| TNaming & zeus::TNaming::getInstance |
( |
) |
[inline, static] |
Returns the singleton of the naming service
- Returns:
- singleton
Returns the local context of the naming service
| Retval MQUALIFIER TNaming::getObjectNames |
( |
const IString & |
rQuery, |
|
|
IStringList & |
rNames |
|
) |
| [virtual] |
| bool MQUALIFIER zeus::TNaming::hasRemoteContext |
( |
) |
const [inline, virtual] |
| bool MQUALIFIER zeus::TNaming::isConnected |
( |
) |
const [inline, virtual] |
| Retval MQUALIFIER TNaming::lookupAny |
( |
const IString & |
rQuery, |
|
|
IRemoteObject *& |
rpObject |
|
) |
| [virtual] |
| Retval MQUALIFIER TNaming::lookupObjects |
( |
const IString & |
rQuery, |
|
|
IRemoteObjectList & |
rObjects |
|
) |
| [virtual] |
| Retval MQUALIFIER TNaming::rebind |
( |
const IString & |
rName, |
|
|
const IRemoteObject & |
rObject |
|
) |
| [virtual] |
| virtual void MQUALIFIER zeus::TNaming::release |
( |
) |
const [virtual] |
| void MQUALIFIER TNaming::releaseLocalContext |
( |
) |
[virtual] |
| void TNaming::setDelegationInterface |
( |
INaming * |
iface ) |
|
Sets the delegation interface
| Retval MQUALIFIER TNaming::unbind |
( |
const IString & |
rName ) |
[virtual] |
The documentation for this class was generated from the following files: