Ice 3.7 C++11 API Reference
|
The Ice locator registry interface. More...
#include <Ice/Ice.h>
Public Types | |
using | ProxyType = LocatorRegistryPrx |
Public Member Functions | |
virtual ::std::string | ice_id (const Current ¤t) const override |
Obtains a Slice type ID representing the most-derived interface supported by this object. More... | |
virtual ::std::vector<::std::string > | ice_ids (const Current ¤t) const override |
Obtains a list of the Slice type IDs representing the interfaces supported by this object. More... | |
virtual bool | ice_isA (::std::string id, const Current ¤t) const override |
Determines whether this object supports an interface with the given Slice type ID. More... | |
virtual void | setAdapterDirectProxyAsync (::std::string id, ::std::shared_ptr< ObjectPrx > proxy, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> exception, const Current ¤t)=0 |
Set the adapter endpoints with the locator registry. More... | |
virtual void | setReplicatedAdapterDirectProxyAsync (::std::string adapterId, ::std::string replicaGroupId, ::std::shared_ptr< ObjectPrx > p, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> exception, const Current ¤t)=0 |
Set the adapter endpoints with the locator registry. More... | |
virtual void | setServerProcessProxyAsync (::std::string id, ::std::shared_ptr< ProcessPrx > proxy, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> exception, const Current ¤t)=0 |
Set the process proxy for a server. More... | |
![]() | |
virtual bool | ice_dispatch (Ice::Request &request, std::function< bool()> response=nullptr, std::function< bool(std::exception_ptr)> error=nullptr) |
Dispatches an invocation to a servant. More... | |
virtual bool | ice_isA (std::string s, const Current ¤t) const |
Tests whether this object supports a specific Slice interface. More... | |
virtual void | ice_ping (const Current ¤t) const |
Tests whether this object can be reached. More... | |
virtual | ~Object ()=default |
Static Public Member Functions | |
static const ::std::string & | ice_staticId () |
Obtains the Slice type ID corresponding to this class. More... | |
![]() | |
static const std::string & | ice_staticId () |
Obtains the Slice type ID of this type. More... | |
The Ice locator registry interface.
This interface is used by servers to register adapter endpoints with the locator.
The LocatorRegistry interface is intended to be used by Ice internals and by locator implementations. Regular user code should not attempt to use any functionality of this interface directly.
|
overridevirtual |
Obtains a Slice type ID representing the most-derived interface supported by this object.
current | The Current object for the invocation. |
Reimplemented from Ice::Object.
|
overridevirtual |
Obtains a list of the Slice type IDs representing the interfaces supported by this object.
current | The Current object for the invocation. |
Reimplemented from Ice::Object.
|
overridevirtual |
Determines whether this object supports an interface with the given Slice type ID.
id | The fully-scoped Slice type ID. |
current | The Current object for the invocation. |
|
static |
Obtains the Slice type ID corresponding to this class.
|
pure virtual |
Set the adapter endpoints with the locator registry.
id | The adapter id. |
proxy | The adapter proxy (a dummy direct proxy created by the adapter). The direct proxy contains the adapter endpoints. |
response | The response callback. |
exception | The exception callback. |
current | The Current object for the invocation. |
Ice::AdapterAlreadyActiveException | Raised if an adapter with the same id is already active. |
Ice::AdapterNotFoundException | Raised if the adapter cannot be found, or if the locator only allows registered adapters to set their active proxy and the adapter is not registered with the locator. |
|
pure virtual |
Set the adapter endpoints with the locator registry.
adapterId | The adapter id. |
replicaGroupId | The replica group id. |
p | The adapter proxy (a dummy direct proxy created by the adapter). The direct proxy contains the adapter endpoints. |
response | The response callback. |
exception | The exception callback. |
current | The Current object for the invocation. |
Ice::AdapterAlreadyActiveException | Raised if an adapter with the same id is already active. |
Ice::AdapterNotFoundException | Raised if the adapter cannot be found, or if the locator only allows registered adapters to set their active proxy and the adapter is not registered with the locator. |
Ice::InvalidReplicaGroupIdException | Raised if the given replica group doesn't match the one registered with the locator registry for this object adapter. |
|
pure virtual |
Set the process proxy for a server.
id | The server id. |
proxy | The process proxy. |
response | The response callback. |
exception | The exception callback. |
current | The Current object for the invocation. |
Ice::ServerNotFoundException | Raised if the server cannot be found. |