Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ setReplicatedAdapterDirectProxyAsync()

virtual void Ice::LocatorRegistry::setReplicatedAdapterDirectProxyAsync ( std::string adapterId,
std::string replicaGroupId,
std::optional< Ice::ObjectPrx > proxy,
std::function< void()> response,
std::function< void(std::exception_ptr)> exception,
const Ice::Current & current )
pure virtual

Registers or unregisters the endpoints of an object adapter.

This object adapter is a member of a replica group.

Parameters
adapterIdThe adapter ID.
replicaGroupIdThe replica group ID.
proxyA dummy proxy created by the object adapter. proxy carries the object adapter's endpoints. The locator considers an object adapter to be active after it has registered its endpoints. When proxy is null, the endpoints are unregistered and the locator considers the object adapter inactive.
responseThe response callback.
exceptionThe exception callback.
currentThe Current object of the incoming request.
Exceptions
Ice::AdapterAlreadyActiveExceptionThrown when an object adapter with the same adapter ID has already registered its endpoints. Since this operation is marked idempotent, this exception may be thrown when the Ice client runtime retries an invocation with a non-null proxy.
Ice::AdapterNotFoundExceptionThrown when the locator only allows registered object adapters to register their endpoints and no object adapter with this adapter ID was registered with the locator.
Ice::InvalidReplicaGroupIdExceptionThrown when the given replica group does not match the replica group associated with the adapter ID in the locator's database.