Package com.zeroc.Ice
Interface LocatorRegistry
- All Superinterfaces:
Object
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
Returns the Slice type ID of the most-derived interface supported by this object.default String[]
Returns the Slice type IDs of the interfaces supported by this object.static String
Returns the Slice type ID of the interface supported by this object.setAdapterDirectProxyAsync
(String id, ObjectPrx proxy, Current current) Set the adapter endpoints with the locator registry.setReplicatedAdapterDirectProxyAsync
(String adapterId, String replicaGroupId, ObjectPrx p, Current current) Set the adapter endpoints with the locator registry.setServerProcessProxyAsync
(String id, ProcessPrx proxy, Current current) Set the process proxy for a server.Methods inherited from interface com.zeroc.Ice.Object
ice_dispatch, ice_isA, ice_ping
-
Method Details
-
setAdapterDirectProxyAsync
CompletionStage<Void> setAdapterDirectProxyAsync(String id, ObjectPrx proxy, Current current) throws AdapterAlreadyActiveException, AdapterNotFoundException Set the adapter endpoints with the locator registry.- Parameters:
id
- The adapter id.proxy
- The adapter proxy (a dummy direct proxy created by the adapter). The direct proxy contains the adapter endpoints.current
- The Current object for the invocation.- Returns:
- A completion stage that the servant will complete when the invocation completes.
- Throws:
AdapterAlreadyActiveException
- Raised if an adapter with the same id is already active.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.
-
setReplicatedAdapterDirectProxyAsync
CompletionStage<Void> setReplicatedAdapterDirectProxyAsync(String adapterId, String replicaGroupId, ObjectPrx p, Current current) throws AdapterAlreadyActiveException, AdapterNotFoundException, InvalidReplicaGroupIdException Set the adapter endpoints with the locator registry.- Parameters:
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.current
- The Current object for the invocation.- Returns:
- A completion stage that the servant will complete when the invocation completes.
- Throws:
AdapterAlreadyActiveException
- Raised if an adapter with the same id is already active.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.InvalidReplicaGroupIdException
- Raised if the given replica group doesn't match the one registered with the locator registry for this object adapter.
-
setServerProcessProxyAsync
CompletionStage<Void> setServerProcessProxyAsync(String id, ProcessPrx proxy, Current current) throws ServerNotFoundException Set the process proxy for a server.- Parameters:
id
- The server id.proxy
- The process proxy.current
- The Current object for the invocation.- Returns:
- A completion stage that the servant will complete when the invocation completes.
- Throws:
ServerNotFoundException
- Raised if the server cannot be found.
-
ice_ids
Description copied from interface:Object
Returns the Slice type IDs of the interfaces supported by this object. -
ice_id
Description copied from interface:Object
Returns the Slice type ID of the most-derived interface supported by this object. -
ice_staticId
Description copied from interface:Object
Returns the Slice type ID of the interface supported by this object.- Returns:
- The return value is always ::Ice::Object.
-