- All Superinterfaces:
Object
A server application registers the endpoints of its indirect object adapters with the LocatorRegistry object.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult
-
Method Summary
Modifier and TypeMethodDescriptiondefault CompletionStage<OutgoingResponse>
dispatch
(IncomingRequest request) Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.static String
Gets the type ID of the associated Slice interface.setAdapterDirectProxyAsync
(String id, ObjectPrx proxy, Current current) Registers or unregisters the endpoints of an object adapter.setReplicatedAdapterDirectProxyAsync
(String adapterId, String replicaGroupId, ObjectPrx proxy, Current current) Registers or unregisters the endpoints of an object adapter.setServerProcessProxyAsync
(String id, ProcessPrx proxy, Current current) Registers a proxy to theProcessPrx
object of a server application.
-
Method Details
-
setAdapterDirectProxyAsync
CompletionStage<Void> setAdapterDirectProxyAsync(String id, ObjectPrx proxy, Current current) throws AdapterNotFoundException, AdapterAlreadyActiveException Registers or unregisters the endpoints of an object adapter.- Parameters:
id
- The adapter ID.proxy
- A 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. Whenproxy
is null, the endpoints are unregistered and the locator considers the object adapter inactive.current
- The Current object of the incoming request.- Returns:
- A completion stage that the servant will complete when the invocation completes.
- Throws:
AdapterAlreadyActiveException
- Thrown 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-nullproxy
.AdapterNotFoundException
- Thrown 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.
-
setReplicatedAdapterDirectProxyAsync
CompletionStage<Void> setReplicatedAdapterDirectProxyAsync(String adapterId, String replicaGroupId, ObjectPrx proxy, Current current) throws AdapterNotFoundException, AdapterAlreadyActiveException, InvalidReplicaGroupIdException Registers or unregisters the endpoints of an object adapter. This object adapter is a member of a replica group.- Parameters:
adapterId
- The adapter ID.replicaGroupId
- The replica group ID.proxy
- A 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. Whenproxy
is null, the endpoints are unregistered and the locator considers the object adapter inactive.current
- The Current object of the incoming request.- Returns:
- A completion stage that the servant will complete when the invocation completes.
- Throws:
AdapterAlreadyActiveException
- Thrown 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-nullproxy
.AdapterNotFoundException
- Thrown 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.InvalidReplicaGroupIdException
- Thrown when the given replica group does not match the replica group associated with the adapter ID in the locator's database.
-
setServerProcessProxyAsync
CompletionStage<Void> setServerProcessProxyAsync(String id, ProcessPrx proxy, Current current) throws ServerNotFoundException Registers a proxy to theProcessPrx
object of a server application.- Parameters:
id
- The server ID.proxy
- A proxy to theProcessPrx
object of the server. This proxy is never null.current
- The Current object of the incoming request.- Returns:
- A completion stage that the servant will complete when the invocation completes.
- Throws:
ServerNotFoundException
- Thrown when the locator does not know a server application with a server ID ofid
.
-
ice_staticId
Gets the type ID of the associated Slice interface.- Returns:
- the string "::Ice::LocatorRegistry"
-
dispatch
Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.- Specified by:
dispatch
in interfaceObject
- Parameters:
request
- the incoming request- Returns:
- the outgoing response
- Throws:
UserException
- if aUserException
is thrown, Ice will marshal it as the response payload.
-