Interface ILocatorRegistry
A server application registers the server addresses of its indirect object adapters with the LocatorRegistry service.
public interface ILocatorRegistry
Remarks
The Slice compiler generated this client-side interface from Slice interface Ice::LocatorRegistry.
It's implemented by LocatorRegistryProxy.
Methods
SetAdapterDirectProxyAsync(string, ServiceAddress?, IFeatureCollection?, CancellationToken)
Registers or unregisters the server addresses of an object adapter.
Task SetAdapterDirectProxyAsync(string id, ServiceAddress? proxy = null, IFeatureCollection? features = null, CancellationToken cancellationToken = default)
Parameters
idstringThe adapter ID.
proxyServiceAddressA dummy service address created by the object adapter. proxy carries the object adapter's server addresses. The locator considers an object adapter to be active after it has registered its server addresses. When proxy is null, the server addresses are unregistered and the locator considers the object adapter inactive.
featuresIFeatureCollectionThe invocation features.
cancellationTokenCancellationTokenA cancellation token that receives the cancellation requests.
Returns
- Task
A task that completes when the response is received.
Exceptions
- AdapterNotFoundException
Thrown if the locator only allows registered object adapters to register their active server addresses and no object adapter with this adapter ID was registered with the locator.
- AdapterAlreadyActiveException
Thrown if an object adapter with the same adapter ID has already registered its server addresses.
SetReplicatedAdapterDirectProxyAsync(string, string, ServiceAddress?, IFeatureCollection?, CancellationToken)
Registers or unregisters the server addresses of an object adapter. This object adapter is a member of a replica group.
Task SetReplicatedAdapterDirectProxyAsync(string adapterId, string replicaGroupId, ServiceAddress? proxy = null, IFeatureCollection? features = null, CancellationToken cancellationToken = default)
Parameters
adapterIdstringThe adapter ID.
replicaGroupIdstringThe replica group ID.
proxyServiceAddressA dummy service address created by the object adapter. proxy carries the object adapter's server addresses. The locator considers an object adapter to be active after it has registered its server addresses. When proxy is null, the server addresses are unregistered and the locator considers the object adapter inactive.
featuresIFeatureCollectionThe invocation features.
cancellationTokenCancellationTokenA cancellation token that receives the cancellation requests.
Returns
- Task
A task that completes when the response is received.
Exceptions
- AdapterNotFoundException
Thrown if the locator only allows registered object adapters to register their active server addresses and no object adapter with this adapter ID was registered with the locator.
- AdapterAlreadyActiveException
Thrown if an object adapter with the same adapter ID has already registered its server addresses.
- InvalidReplicaGroupIdException
Thrown if the given replica group does not match the replica group associated with the adapter ID in the locator's database.
SetServerProcessProxyAsync(string, ProcessProxy, IFeatureCollection?, CancellationToken)
Registers a proxy for the IProcess service of a server application.
Task SetServerProcessProxyAsync(string serverId, ProcessProxy proxy, IFeatureCollection? features = null, CancellationToken cancellationToken = default)
Parameters
serverIdstringThe server ID.
proxyProcessProxyA proxy for the Process service of the server application.
featuresIFeatureCollectionThe invocation features.
cancellationTokenCancellationTokenA cancellation token that receives the cancellation requests.
Returns
- Task
A task that completes when the response is received.
Exceptions
- ServerNotFoundException
Thrown if the locator does not know a server application with this server ID.