Ice 3.7 Slice API Reference
Loading...
Searching...
No Matches
Locator.ice
Go to the documentation of this file.
1//
2// Copyright (c) ZeroC, Inc. All rights reserved.
3//
4
5#pragma once
6
7[["cpp:dll-export:ICE_API"]]
8[["cpp:doxygen:include:Ice/Ice.h"]]
9[["cpp:header-ext:h"]]
10
11[["ice-prefix"]]
12
13[["js:module:ice"]]
14[["js:cjs-module"]]
15
16[["objc:dll-export:ICE_API"]]
17[["objc:header-dir:objc"]]
18
19[["python:pkgdir:Ice"]]
20
21#include <Ice/Identity.ice>
22#include <Ice/Process.ice>
23
24#ifndef __SLICE2JAVA_COMPAT__
25[["java:package:com.zeroc"]]
26#endif
27
28["objc:prefix:ICE"]
29module Ice
30{
31
38{
39}
40
50
60
67{
68}
69
76{
77}
78
79interface LocatorRegistry;
80
93interface Locator
94{
109 ["amd", "nonmutating", "cpp:const"] idempotent Object* findObjectById(Identity id)
111
125 ["amd", "nonmutating", "cpp:const"] idempotent Object* findAdapterById(string id)
127
135 ["nonmutating", "cpp:const"] idempotent LocatorRegistry* getRegistry();
136}
137
150{
170 ["amd"] idempotent void setAdapterDirectProxy(string id, Object* proxy)
172
198 ["amd"] idempotent void setReplicatedAdapterDirectProxy(string adapterId, string replicaGroupId, Object* p)
200
213 ["amd"] idempotent void setServerProcessProxy(string id, Process* proxy)
215}
216
227{
237}
238
239}
This exception is raised if a server tries to set endpoints for an adapter that is already active.
Definition Locator.ice:58
This exception is raised if an adapter cannot be found.
Definition Locator.ice:38
This exception is raised if the replica group provided by the server is invalid.
Definition Locator.ice:48
This exception is raised if an object cannot be found.
Definition Locator.ice:67
This exception is raised if a server cannot be found.
Definition Locator.ice:76
This interface should be implemented by services implementing the Ice::Locator interface.
Definition Locator.ice:227
Locator * getLocator()
Get the locator proxy implemented by the process hosting this finder object.
The Ice locator registry interface.
Definition Locator.ice:150
idempotent void setReplicatedAdapterDirectProxy(string adapterId, string replicaGroupId, Object *p)
Set the adapter endpoints with the locator registry.
idempotent void setServerProcessProxy(string id, Process *proxy)
Set the process proxy for a server.
idempotent void setAdapterDirectProxy(string id, Object *proxy)
Set the adapter endpoints with the locator registry.
The Ice locator interface.
Definition Locator.ice:94
idempotent Object * findObjectById(Identity id)
Find an object by identity and return a proxy that contains the adapter ID or endpoints which can be ...
idempotent Object * findAdapterById(string id)
Find an adapter by id and return a proxy that contains its endpoints.
idempotent LocatorRegistry * getRegistry()
Get the locator registry.
An administrative interface for process management.
Definition Process.ice:42
The Ice core library.
Definition BuiltinSequences.ice:27
The identity of an Ice object.
Definition Identity.ice:40