Interface ILocatorRegistry
A server application registers the endpoints of its indirect object adapters with the LocatorRegistry object.
public interface ILocatorRegistry
Remarks
Use the methods of this interface to invoke operations on a remote Ice service that implements LocatorRegistry.
The Ice compiler generated this client-side interface from Ice interface ::Ice::LocatorRegistry.
Methods
SetAdapterDirectProxyAsync(string, IceObjectProxy?, IFeatureCollection?, CancellationToken)
Registers or unregisters the endpoints of an object adapter.
Task SetAdapterDirectProxyAsync(string id, IceObjectProxy? proxy, IFeatureCollection? features = null, CancellationToken cancellationToken = default)
Parameters
idstringThe adapter ID.
proxyIceObjectProxy?A dummy proxy created by the object adapter.
proxycarries the object adapter's endpoints. The locator considers an object adapter to be active after it has registered its endpoints. Whenproxyis null, the endpoints are unregistered and the locator considers the object adapter inactive.featuresIFeatureCollectionThe features of this invocation.
cancellationTokenCancellationTokenA cancellation token that receives the cancellation requests.
Returns
- Task
A task that completes when the response is received.
Exceptions
- DispatchException
Thrown when the dispatch of the operation failed. This exception is provided through the returned task; it's never thrown synchronously.
- 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-null
proxy. This exception is provided through the returned task; it's never thrown synchronously.- 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. This exception is provided through the returned task; it's never thrown synchronously.
SetReplicatedAdapterDirectProxyAsync(string, string, IceObjectProxy?, IFeatureCollection?, CancellationToken)
Registers or unregisters the endpoints of an object adapter. This object adapter is a member of a replica group.
Task SetReplicatedAdapterDirectProxyAsync(string adapterId, string replicaGroupId, IceObjectProxy? proxy, IFeatureCollection? features = null, CancellationToken cancellationToken = default)
Parameters
adapterIdstringThe adapter ID.
replicaGroupIdstringThe replica group ID.
proxyIceObjectProxy?A dummy proxy created by the object adapter.
proxycarries the object adapter's endpoints. The locator considers an object adapter to be active after it has registered its endpoints. Whenproxyis null, the endpoints are unregistered and the locator considers the object adapter inactive.featuresIFeatureCollectionThe features of this invocation.
cancellationTokenCancellationTokenA cancellation token that receives the cancellation requests.
Returns
- Task
A task that completes when the response is received.
Exceptions
- DispatchException
Thrown when the dispatch of the operation failed. This exception is provided through the returned task; it's never thrown synchronously.
- 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-null
proxy. This exception is provided through the returned task; it's never thrown synchronously.- 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. This exception is provided through the returned task; it's never thrown synchronously.
- InvalidReplicaGroupIdException
Thrown when the given replica group does not match the replica group associated with the adapter ID in the locator's database. This exception is provided through the returned task; it's never thrown synchronously.
SetServerProcessProxyAsync(string, ProcessProxy?, IFeatureCollection?, CancellationToken)
Registers a proxy to the ProcessProxy object of a server application.
Task SetServerProcessProxyAsync(string id, ProcessProxy? proxy, IFeatureCollection? features = null, CancellationToken cancellationToken = default)
Parameters
idstringThe server ID.
proxyProcessProxy?A proxy to the ProcessProxy object of the server. This proxy is never null.
featuresIFeatureCollectionThe features of this invocation.
cancellationTokenCancellationTokenA cancellation token that receives the cancellation requests.
Returns
- Task
A task that completes when the response is received.
Exceptions
- DispatchException
Thrown when the dispatch of the operation failed. This exception is provided through the returned task; it's never thrown synchronously.
- ServerNotFoundException
Thrown when the locator does not know a server application with a server ID of
id. This exception is provided through the returned task; it's never thrown synchronously.