Ice 3.9
Slice API Reference
Loading...
Searching...
No Matches
LocatorRegistry.ice
1// Copyright (c) ZeroC, Inc.
2
3#pragma once
4
5[["cpp:dll-export:ICE_API"]]
6[["cpp:doxygen:include:Ice/Ice.h"]]
7[["cpp:header-ext:h"]]
8
9[["cpp:source-include:Ice/Process.h"]]
10
11[["js:module:@zeroc/ice"]]
12
13#include "Locator.ice"
14
15#ifdef __ICERPC__
16["cs:identifier:IceRpc.Ice"]
17#endif
18["java:identifier:com.zeroc.Ice"]
19module Ice
20{
21 interface Process;
22
23 /// The exception that is thrown when a server application tries to register endpoints for an object adapter that is
24 /// already active.
26 {
27 }
28
29 /// The exception that is thrown when the provided replica group is invalid.
31 {
32 }
33
34 /// The exception that is thrown when a server was not found.
36 {
37 }
38
39 /// A server application registers the endpoints of its indirect object adapters with the LocatorRegistry object.
41 {
42 /// Registers or unregisters the endpoints of an object adapter.
43 /// @param id The adapter ID.
44 /// @param proxy A dummy proxy created by the object adapter. @p proxy carries the object adapter's endpoints.
45 /// The locator considers an object adapter to be active after it has registered its endpoints.
46 /// When @p proxy is null, the endpoints are unregistered and the locator considers the object adapter inactive.
47 /// @throws AdapterNotFoundException Thrown when the locator only allows registered object adapters to register
48 /// their endpoints and no object adapter with this adapter ID was registered with the locator.
49 /// @throws AdapterAlreadyActiveException Thrown when an object adapter with the same adapter ID has already
50 /// registered its endpoints. Since this operation is marked idempotent, this exception may be thrown when the
51 /// Ice client runtime retries an invocation with a non-null @p proxy.
52 idempotent void setAdapterDirectProxy(string id, Object* proxy)
54
55 /// Registers or unregisters the endpoints of an object adapter. This object adapter is a member of a replica
56 /// group.
57 /// @param adapterId The adapter ID.
58 /// @param replicaGroupId The replica group ID.
59 /// @param proxy A dummy proxy created by the object adapter. @p proxy carries the object adapter's endpoints.
60 /// The locator considers an object adapter to be active after it has registered its endpoints. When @p proxy is
61 /// null, the endpoints are unregistered and the locator considers the object adapter inactive.
62 /// @throws AdapterNotFoundException Thrown when the locator only allows registered object adapters to register
63 /// their endpoints and no object adapter with this adapter ID was registered with the locator.
64 /// @throws AdapterAlreadyActiveException Thrown when an object adapter with the same adapter ID has already
65 /// registered its endpoints. Since this operation is marked idempotent, this exception may be thrown when the
66 /// Ice client runtime retries an invocation with a non-null @p proxy.
67 /// @throws InvalidReplicaGroupIdException Thrown when the given replica group does not match the replica group
68 /// associated with the adapter ID in the locator's database.
69 idempotent void setReplicatedAdapterDirectProxy(string adapterId, string replicaGroupId, Object* proxy)
71
72 /// Registers a proxy to the {@link Process} object of a server application.
73 /// @param id The server ID.
74 /// @param proxy A proxy to the {@link Process} object of the server. This proxy is never null.
75 /// @throws ServerNotFoundException Thrown when the locator does not know a server application with a server ID
76 /// of @p id.
77 idempotent void setServerProcessProxy(string id, Process* proxy)
79 }
80}
The exception that is thrown when a server application tries to register endpoints for an object adap...
The exception that is thrown by a Locator implementation when it cannot find an object adapter.
Definition Locator.ice:23
The exception that is thrown when the provided replica group is invalid.
The exception that is thrown when a server was not found.
idempotent void setServerProcessProxy(string id, Process *proxy)
Registers a proxy to the Process object of a server application.
idempotent void setReplicatedAdapterDirectProxy(string adapterId, string replicaGroupId, Object *proxy)
Registers or unregisters the endpoints of an object adapter.
idempotent void setAdapterDirectProxy(string id, Object *proxy)
Registers or unregisters the endpoints of an object adapter.
A server application registers the endpoints of its indirect object adapters with the LocatorRegistry...
A server application managed by a locator implementation such as IceGrid hosts a Process object and r...
Definition Process.ice:22
The Ice RPC framework.