Ice 3.8
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["java:identifier:com.zeroc.Ice"]
16module Ice
17{
18 interface Process;
19
20 /// The exception that is thrown when a server application tries to register endpoints for an object adapter that is
21 /// already active.
23 {
24 }
25
26 /// The exception that is thrown when the provided replica group is invalid.
28 {
29 }
30
31 /// The exception that is thrown when a server was not found.
33 {
34 }
35
36 /// A server application registers the endpoints of its indirect object adapters with the LocatorRegistry object.
38 {
39 /// Registers or unregisters the endpoints of an object adapter.
40 /// @param id The adapter ID.
41 /// @param proxy A dummy proxy created by the object adapter. @p proxy carries the object adapter's endpoints.
42 /// The locator considers an object adapter to be active after it has registered its endpoints.
43 /// When @p proxy is null, the endpoints are unregistered and the locator considers the object adapter inactive.
44 /// @throws AdapterNotFoundException Thrown when the locator only allows registered object adapters to register
45 /// their endpoints and no object adapter with this adapter ID was registered with the locator.
46 /// @throws AdapterAlreadyActiveException Thrown when an object adapter with the same adapter ID has already
47 /// registered its endpoints. Since this operation is marked idempotent, this exception may be thrown when the
48 /// Ice client runtime retries an invocation with a non-null @p proxy.
49 ["amd"] idempotent void setAdapterDirectProxy(string id, Object* proxy)
51
52 /// Registers or unregisters the endpoints of an object adapter. This object adapter is a member of a replica
53 /// group.
54 /// @param adapterId The adapter ID.
55 /// @param replicaGroupId The replica group ID.
56 /// @param proxy A dummy proxy created by the object adapter. @p proxy carries the object adapter's endpoints.
57 /// The locator considers an object adapter to be active after it has registered its endpoints. When @p proxy is
58 /// null, the endpoints are unregistered and the locator considers the object adapter inactive.
59 /// @throws AdapterNotFoundException Thrown when the locator only allows registered object adapters to register
60 /// their endpoints and no object adapter with this adapter ID was registered with the locator.
61 /// @throws AdapterAlreadyActiveException Thrown when an object adapter with the same adapter ID has already
62 /// registered its endpoints. Since this operation is marked idempotent, this exception may be thrown when the
63 /// Ice client runtime retries an invocation with a non-null @p proxy.
64 /// @throws InvalidReplicaGroupIdException Thrown when the given replica group does not match the replica group
65 /// associated with the adapter ID in the locator's database.
66 ["amd"] idempotent void setReplicatedAdapterDirectProxy(string adapterId, string replicaGroupId, Object* proxy)
68
69 /// Registers a proxy to the {@link Process} object of a server application.
70 /// @param id The server ID.
71 /// @param proxy A proxy to the {@link Process} object of the server. This proxy is never null.
72 /// @throws ServerNotFoundException Thrown when the locator does not know a server application with a server ID
73 /// of @p id.
74 ["amd"] idempotent void setServerProcessProxy(string id, Process* proxy)
76 }
77}
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 with t...
Definition Locator.ice:21
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:19
The Ice RPC framework.