Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches
LocatorRegistry.h
1// Copyright (c) ZeroC, Inc.
2
3// slice2cpp version 3.8.0
4// <auto-generated>Generated from Slice file 'LocatorRegistry.ice'.</auto-generated>
5// clang-format off
6
7#ifndef Ice_LocatorRegistry_h_
8#define Ice_LocatorRegistry_h_
9
11#include <Ice/Ice.h>
12#include "Locator.h"
13
14#ifndef ICE_DISABLE_VERSION
15# if ICE_INT_VERSION / 100 != 308
16# error Ice version mismatch!
17# endif
18# if ICE_INT_VERSION % 100 >= 50
19# error Beta header file detected
20# endif
21# if ICE_INT_VERSION % 100 < 0
22# error Ice patch level mismatch!
23# endif
24#endif
25
26// NOLINTBEGIN(modernize-concat-nested-namespaces)
27
28namespace Ice
29{
30 class ProcessPrx;
31
33}
34
35namespace Ice
36{
37 /// A server application registers the endpoints of its indirect object adapters with the LocatorRegistry object.
38 /// @remarks The Slice compiler generated this proxy class from Slice interface `::Ice::LocatorRegistry`.
39 /// @headerfile Ice/Ice.h
40 class ICE_API LocatorRegistryPrx : public Ice::Proxy<LocatorRegistryPrx, Ice::ObjectPrx>
41 {
42 public:
43 /// Constructs a proxy from a Communicator and a proxy string.
44 /// @param communicator The communicator of the new proxy.
45 /// @param proxyString The proxy string to parse.
46 LocatorRegistryPrx(const Ice::CommunicatorPtr& communicator, std::string_view proxyString) : Ice::ObjectPrx{communicator, proxyString} {} // NOLINT(modernize-use-equals-default)
47
48 /// Copy constructor. Constructs with a copy of the contents of @p other.
49 /// @param other The proxy to copy from.
50 LocatorRegistryPrx(const LocatorRegistryPrx& other) noexcept : Ice::ObjectPrx{other} {} // NOLINT(modernize-use-equals-default)
51
52 /// Move constructor. Constructs a proxy with the contents of @p other using move semantics.
53 /// @param other The proxy to move from.
54 LocatorRegistryPrx(LocatorRegistryPrx&& other) noexcept : Ice::ObjectPrx{std::move(other)} {} // NOLINT(modernize-use-equals-default)
55
56 ~LocatorRegistryPrx() override;
57
58 /// Copy assignment operator. Replaces the contents of this proxy with a copy of the contents of @p rhs.
59 /// @param rhs The proxy to copy from.
60 /// @return A reference to this proxy.
62 {
63 if (this != &rhs)
64 {
66 }
67 return *this;
68 }
69
70 /// Move assignment operator. Replaces the contents of this proxy with the contents of @p rhs using move semantics.
71 /// @param rhs The proxy to move from.
73 {
74 if (this != &rhs)
75 {
76 Ice::ObjectPrx::operator=(std::move(rhs));
77 }
78 return *this;
79 }
80
81 /// Registers or unregisters the endpoints of an object adapter.
82 /// @param id The adapter ID.
83 /// @param proxy A dummy proxy created by the object adapter. @p proxy carries the object adapter's endpoints.
84 /// The locator considers an object adapter to be active after it has registered its endpoints.
85 /// When @p proxy is null, the endpoints are unregistered and the locator considers the object adapter inactive.
86 /// @param context The request context.
87 /// @throws Ice::AdapterAlreadyActiveException Thrown when an object adapter with the same adapter ID has already
88 /// registered its endpoints. Since this operation is marked idempotent, this exception may be thrown when the
89 /// Ice client runtime retries an invocation with a non-null @p proxy.
90 /// @throws Ice::AdapterNotFoundException Thrown when the locator only allows registered object adapters to register
91 /// their endpoints and no object adapter with this adapter ID was registered with the locator.
92 void setAdapterDirectProxy(std::string_view id, const std::optional<Ice::ObjectPrx>& proxy, const Ice::Context& context = Ice::noExplicitContext) const;
93
94 /// Registers or unregisters the endpoints of an object adapter.
95 /// @param id The adapter ID.
96 /// @param proxy A dummy proxy created by the object adapter. @p proxy carries the object adapter's endpoints.
97 /// The locator considers an object adapter to be active after it has registered its endpoints.
98 /// When @p proxy is null, the endpoints are unregistered and the locator considers the object adapter inactive.
99 /// @param context The request context.
100 /// @return A future that becomes available when the invocation completes.
101 [[nodiscard]] std::future<void> setAdapterDirectProxyAsync(std::string_view id, const std::optional<Ice::ObjectPrx>& proxy, const Ice::Context& context = Ice::noExplicitContext) const;
102
103 /// Registers or unregisters the endpoints of an object adapter.
104 /// @param id The adapter ID.
105 /// @param proxy A dummy proxy created by the object adapter. @p proxy carries the object adapter's endpoints.
106 /// The locator considers an object adapter to be active after it has registered its endpoints.
107 /// When @p proxy is null, the endpoints are unregistered and the locator considers the object adapter inactive.
108 /// @param response The response callback.
109 /// @param exception The exception callback.
110 /// @param sent The sent callback.
111 /// @param context The request context.
112 /// @return A function that can be called to cancel the invocation locally.
113 // NOLINTNEXTLINE(modernize-use-nodiscard)
114 std::function<void()> setAdapterDirectProxyAsync(std::string_view id, const std::optional<Ice::ObjectPrx>& proxy, std::function<void()> response, std::function<void(std::exception_ptr)> exception = nullptr, std::function<void(bool)> sent = nullptr, const Ice::Context& context = Ice::noExplicitContext) const;
115
116 /// @private
117 void _iceI_setAdapterDirectProxy(const std::shared_ptr<IceInternal::OutgoingAsyncT<void>>&, std::string_view, const std::optional<Ice::ObjectPrx>&, const Ice::Context&) const;
118
119 /// Registers or unregisters the endpoints of an object adapter. This object adapter is a member of a replica
120 /// group.
121 /// @param adapterId The adapter ID.
122 /// @param replicaGroupId The replica group ID.
123 /// @param proxy A dummy proxy created by the object adapter. @p proxy carries the object adapter's endpoints.
124 /// The locator considers an object adapter to be active after it has registered its endpoints. When @p proxy is
125 /// null, the endpoints are unregistered and the locator considers the object adapter inactive.
126 /// @param context The request context.
127 /// @throws Ice::AdapterAlreadyActiveException Thrown when an object adapter with the same adapter ID has already
128 /// registered its endpoints. Since this operation is marked idempotent, this exception may be thrown when the
129 /// Ice client runtime retries an invocation with a non-null @p proxy.
130 /// @throws Ice::AdapterNotFoundException Thrown when the locator only allows registered object adapters to register
131 /// their endpoints and no object adapter with this adapter ID was registered with the locator.
132 /// @throws Ice::InvalidReplicaGroupIdException Thrown when the given replica group does not match the replica group
133 /// associated with the adapter ID in the locator's database.
134 void setReplicatedAdapterDirectProxy(std::string_view adapterId, std::string_view replicaGroupId, const std::optional<Ice::ObjectPrx>& proxy, const Ice::Context& context = Ice::noExplicitContext) const;
135
136 /// Registers or unregisters the endpoints of an object adapter. This object adapter is a member of a replica
137 /// group.
138 /// @param adapterId The adapter ID.
139 /// @param replicaGroupId The replica group ID.
140 /// @param proxy A dummy proxy created by the object adapter. @p proxy carries the object adapter's endpoints.
141 /// The locator considers an object adapter to be active after it has registered its endpoints. When @p proxy is
142 /// null, the endpoints are unregistered and the locator considers the object adapter inactive.
143 /// @param context The request context.
144 /// @return A future that becomes available when the invocation completes.
145 [[nodiscard]] std::future<void> setReplicatedAdapterDirectProxyAsync(std::string_view adapterId, std::string_view replicaGroupId, const std::optional<Ice::ObjectPrx>& proxy, const Ice::Context& context = Ice::noExplicitContext) const;
146
147 /// Registers or unregisters the endpoints of an object adapter. This object adapter is a member of a replica
148 /// group.
149 /// @param adapterId The adapter ID.
150 /// @param replicaGroupId The replica group ID.
151 /// @param proxy A dummy proxy created by the object adapter. @p proxy carries the object adapter's endpoints.
152 /// The locator considers an object adapter to be active after it has registered its endpoints. When @p proxy is
153 /// null, the endpoints are unregistered and the locator considers the object adapter inactive.
154 /// @param response The response callback.
155 /// @param exception The exception callback.
156 /// @param sent The sent callback.
157 /// @param context The request context.
158 /// @return A function that can be called to cancel the invocation locally.
159 // NOLINTNEXTLINE(modernize-use-nodiscard)
160 std::function<void()> setReplicatedAdapterDirectProxyAsync(std::string_view adapterId, std::string_view replicaGroupId, const std::optional<Ice::ObjectPrx>& proxy, std::function<void()> response, std::function<void(std::exception_ptr)> exception = nullptr, std::function<void(bool)> sent = nullptr, const Ice::Context& context = Ice::noExplicitContext) const;
161
162 /// @private
163 void _iceI_setReplicatedAdapterDirectProxy(const std::shared_ptr<IceInternal::OutgoingAsyncT<void>>&, std::string_view, std::string_view, const std::optional<Ice::ObjectPrx>&, const Ice::Context&) const;
164
165 /// Registers a proxy to the ::Ice::ProcessPrx object of a server application.
166 /// @param id The server ID.
167 /// @param proxy A proxy to the ::Ice::ProcessPrx object of the server. This proxy is never null.
168 /// @param context The request context.
169 /// @throws Ice::ServerNotFoundException Thrown when the locator does not know a server application with a server ID
170 /// of @p id.
171 void setServerProcessProxy(std::string_view id, const std::optional<ProcessPrx>& proxy, const Ice::Context& context = Ice::noExplicitContext) const;
172
173 /// Registers a proxy to the ::Ice::ProcessPrx object of a server application.
174 /// @param id The server ID.
175 /// @param proxy A proxy to the ::Ice::ProcessPrx object of the server. This proxy is never null.
176 /// @param context The request context.
177 /// @return A future that becomes available when the invocation completes.
178 [[nodiscard]] std::future<void> setServerProcessProxyAsync(std::string_view id, const std::optional<ProcessPrx>& proxy, const Ice::Context& context = Ice::noExplicitContext) const;
179
180 /// Registers a proxy to the ::Ice::ProcessPrx object of a server application.
181 /// @param id The server ID.
182 /// @param proxy A proxy to the ::Ice::ProcessPrx object of the server. This proxy is never null.
183 /// @param response The response callback.
184 /// @param exception The exception callback.
185 /// @param sent The sent callback.
186 /// @param context The request context.
187 /// @return A function that can be called to cancel the invocation locally.
188 // NOLINTNEXTLINE(modernize-use-nodiscard)
189 std::function<void()> setServerProcessProxyAsync(std::string_view id, const std::optional<ProcessPrx>& proxy, std::function<void()> response, std::function<void(std::exception_ptr)> exception = nullptr, std::function<void(bool)> sent = nullptr, const Ice::Context& context = Ice::noExplicitContext) const;
190
191 /// @private
192 void _iceI_setServerProcessProxy(const std::shared_ptr<IceInternal::OutgoingAsyncT<void>>&, std::string_view, const std::optional<ProcessPrx>&, const Ice::Context&) const;
193
194 /// Gets the type ID of the associated Slice interface.
195 /// @return The string `"::Ice::LocatorRegistry"`.
196 static const char* ice_staticId() noexcept;
197
198 /// @private
199 static LocatorRegistryPrx _fromReference(IceInternal::ReferencePtr ref) { return LocatorRegistryPrx{std::move(ref)}; }
200
201 protected:
202 /// @private
203 LocatorRegistryPrx() = default;
204
205 /// @private
206 explicit LocatorRegistryPrx(IceInternal::ReferencePtr&& ref) : Ice::ObjectPrx{std::move(ref)}
207 {
208 }
209 };
210}
211
212namespace Ice
213{
214 /// The exception that is thrown when a server application tries to register endpoints for an object adapter that is
215 /// already active.
216 /// @remarks The Slice compiler generated this exception class from Slice exception `::Ice::AdapterAlreadyActiveException`.
217 /// @headerfile Ice/Ice.h
219 {
220 public:
221 /// Gets the type ID of the associated Slice exception.
222 /// @return The string `"::Ice::AdapterAlreadyActiveException"`.
223 static const char* ice_staticId() noexcept;
224
225 [[nodiscard]] const char* ice_id() const noexcept override;
226
227 void ice_throw() const override;
228
229 protected:
230 /// @private
231 void _writeImpl(Ice::OutputStream*) const override;
232
233 /// @private
234 void _readImpl(Ice::InputStream*) override;
235 };
236
237 /// The exception that is thrown when the provided replica group is invalid.
238 /// @remarks The Slice compiler generated this exception class from Slice exception `::Ice::InvalidReplicaGroupIdException`.
239 /// @headerfile Ice/Ice.h
241 {
242 public:
243 /// Gets the type ID of the associated Slice exception.
244 /// @return The string `"::Ice::InvalidReplicaGroupIdException"`.
245 static const char* ice_staticId() noexcept;
246
247 [[nodiscard]] const char* ice_id() const noexcept override;
248
249 void ice_throw() const override;
250
251 protected:
252 /// @private
253 void _writeImpl(Ice::OutputStream*) const override;
254
255 /// @private
256 void _readImpl(Ice::InputStream*) override;
257 };
258
259 /// The exception that is thrown when a server was not found.
260 /// @remarks The Slice compiler generated this exception class from Slice exception `::Ice::ServerNotFoundException`.
261 /// @headerfile Ice/Ice.h
263 {
264 public:
265 /// Gets the type ID of the associated Slice exception.
266 /// @return The string `"::Ice::ServerNotFoundException"`.
267 static const char* ice_staticId() noexcept;
268
269 [[nodiscard]] const char* ice_id() const noexcept override;
270
271 void ice_throw() const override;
272
273 protected:
274 /// @private
275 void _writeImpl(Ice::OutputStream*) const override;
276
277 /// @private
278 void _readImpl(Ice::InputStream*) override;
279 };
280}
281
282namespace Ice
283{
284 /// A server application registers the endpoints of its indirect object adapters with the LocatorRegistry object.
285 /// @remarks The Slice compiler generated this skeleton class from Slice interface `::Ice::LocatorRegistry`.
286 /// @headerfile Ice/Ice.h
287 class ICE_API LocatorRegistry : public virtual Ice::Object
288 {
289 public:
290 /// The associated proxy type.
292
293 /// Dispatches an incoming request to one of the member functions of this generated class, based on the operation name carried by the request.
294 /// @param request The incoming request.
295 /// @param sendResponse The callback to send the response.
296 void dispatch(IncomingRequest& request, std::function<void(OutgoingResponse)> sendResponse) override;
297
298 [[nodiscard]] std::vector<std::string> ice_ids(const Ice::Current& current) const override;
299
300 [[nodiscard]] std::string ice_id(const Ice::Current& current) const override;
301
302 /// Registers or unregisters the endpoints of an object adapter.
303 /// @param id The adapter ID.
304 /// @param proxy A dummy proxy created by the object adapter. @p proxy carries the object adapter's endpoints.
305 /// The locator considers an object adapter to be active after it has registered its endpoints.
306 /// When @p proxy is null, the endpoints are unregistered and the locator considers the object adapter inactive.
307 /// @param current The Current object of the incoming request.
308 /// @throws Ice::AdapterAlreadyActiveException Thrown when an object adapter with the same adapter ID has already
309 /// registered its endpoints. Since this operation is marked idempotent, this exception may be thrown when the
310 /// Ice client runtime retries an invocation with a non-null @p proxy.
311 /// @throws Ice::AdapterNotFoundException Thrown when the locator only allows registered object adapters to register
312 /// their endpoints and no object adapter with this adapter ID was registered with the locator.
313 virtual void setAdapterDirectProxy(std::string id, std::optional<Ice::ObjectPrx> proxy, const Ice::Current& current) = 0;
314
315 /// @private
316 void _iceD_setAdapterDirectProxy(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
317
318 /// Registers or unregisters the endpoints of an object adapter. This object adapter is a member of a replica
319 /// group.
320 /// @param adapterId The adapter ID.
321 /// @param replicaGroupId The replica group ID.
322 /// @param proxy A dummy proxy created by the object adapter. @p proxy carries the object adapter's endpoints.
323 /// The locator considers an object adapter to be active after it has registered its endpoints. When @p proxy is
324 /// null, the endpoints are unregistered and the locator considers the object adapter inactive.
325 /// @param current The Current object of the incoming request.
326 /// @throws Ice::AdapterAlreadyActiveException Thrown when an object adapter with the same adapter ID has already
327 /// registered its endpoints. Since this operation is marked idempotent, this exception may be thrown when the
328 /// Ice client runtime retries an invocation with a non-null @p proxy.
329 /// @throws Ice::AdapterNotFoundException Thrown when the locator only allows registered object adapters to register
330 /// their endpoints and no object adapter with this adapter ID was registered with the locator.
331 /// @throws Ice::InvalidReplicaGroupIdException Thrown when the given replica group does not match the replica group
332 /// associated with the adapter ID in the locator's database.
333 virtual void setReplicatedAdapterDirectProxy(std::string adapterId, std::string replicaGroupId, std::optional<Ice::ObjectPrx> proxy, const Ice::Current& current) = 0;
334
335 /// @private
336 void _iceD_setReplicatedAdapterDirectProxy(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
337
338 /// Registers a proxy to the ::Ice::ProcessPrx object of a server application.
339 /// @param id The server ID.
340 /// @param proxy A proxy to the ::Ice::ProcessPrx object of the server. This proxy is never null.
341 /// @param current The Current object of the incoming request.
342 /// @throws Ice::ServerNotFoundException Thrown when the locator does not know a server application with a server ID
343 /// of @p id.
344 virtual void setServerProcessProxy(std::string id, std::optional<ProcessPrx> proxy, const Ice::Current& current) = 0;
345
346 /// @private
347 void _iceD_setServerProcessProxy(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
348
349 /// Gets the type ID of the associated Slice interface.
350 /// @return The string `"::Ice::LocatorRegistry"`.
351 static const char* ice_staticId() noexcept;
352 };
353
354 /// A shared pointer to a LocatorRegistry.
355 using LocatorRegistryPtr = std::shared_ptr<LocatorRegistry>;
356}
357
358namespace Ice
359{
360 /// A server application registers the endpoints of its indirect object adapters with the LocatorRegistry object.
361 /// @remarks The Slice compiler generated this skeleton class from Slice interface `::Ice::LocatorRegistry`.
362 /// @headerfile Ice/Ice.h
363 class ICE_API AsyncLocatorRegistry : public virtual Ice::Object
364 {
365 public:
366 /// The associated proxy type.
368
369 /// Dispatches an incoming request to one of the member functions of this generated class, based on the operation name carried by the request.
370 /// @param request The incoming request.
371 /// @param sendResponse The callback to send the response.
372 void dispatch(IncomingRequest& request, std::function<void(OutgoingResponse)> sendResponse) override;
373
374 [[nodiscard]] std::vector<std::string> ice_ids(const Ice::Current& current) const override;
375
376 [[nodiscard]] std::string ice_id(const Ice::Current& current) const override;
377
378 /// Registers or unregisters the endpoints of an object adapter.
379 /// @param id The adapter ID.
380 /// @param proxy A dummy proxy created by the object adapter. @p proxy carries the object adapter's endpoints.
381 /// The locator considers an object adapter to be active after it has registered its endpoints.
382 /// When @p proxy is null, the endpoints are unregistered and the locator considers the object adapter inactive.
383 /// @param response The response callback.
384 /// @param exception The exception callback.
385 /// @param current The Current object of the incoming request.
386 /// @throws Ice::AdapterAlreadyActiveException Thrown when an object adapter with the same adapter ID has already
387 /// registered its endpoints. Since this operation is marked idempotent, this exception may be thrown when the
388 /// Ice client runtime retries an invocation with a non-null @p proxy.
389 /// @throws Ice::AdapterNotFoundException Thrown when the locator only allows registered object adapters to register
390 /// their endpoints and no object adapter with this adapter ID was registered with the locator.
391 virtual void setAdapterDirectProxyAsync(std::string id, std::optional<Ice::ObjectPrx> proxy, std::function<void()> response, std::function<void(std::exception_ptr)> exception, const Ice::Current& current) = 0;
392
393 /// @private
394 void _iceD_setAdapterDirectProxy(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
395
396 /// Registers or unregisters the endpoints of an object adapter. This object adapter is a member of a replica
397 /// group.
398 /// @param adapterId The adapter ID.
399 /// @param replicaGroupId The replica group ID.
400 /// @param proxy A dummy proxy created by the object adapter. @p proxy carries the object adapter's endpoints.
401 /// The locator considers an object adapter to be active after it has registered its endpoints. When @p proxy is
402 /// null, the endpoints are unregistered and the locator considers the object adapter inactive.
403 /// @param response The response callback.
404 /// @param exception The exception callback.
405 /// @param current The Current object of the incoming request.
406 /// @throws Ice::AdapterAlreadyActiveException Thrown when an object adapter with the same adapter ID has already
407 /// registered its endpoints. Since this operation is marked idempotent, this exception may be thrown when the
408 /// Ice client runtime retries an invocation with a non-null @p proxy.
409 /// @throws Ice::AdapterNotFoundException Thrown when the locator only allows registered object adapters to register
410 /// their endpoints and no object adapter with this adapter ID was registered with the locator.
411 /// @throws Ice::InvalidReplicaGroupIdException Thrown when the given replica group does not match the replica group
412 /// associated with the adapter ID in the locator's database.
413 virtual void setReplicatedAdapterDirectProxyAsync(std::string adapterId, std::string replicaGroupId, std::optional<Ice::ObjectPrx> proxy, std::function<void()> response, std::function<void(std::exception_ptr)> exception, const Ice::Current& current) = 0;
414
415 /// @private
416 void _iceD_setReplicatedAdapterDirectProxy(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
417
418 /// Registers a proxy to the ::Ice::ProcessPrx object of a server application.
419 /// @param id The server ID.
420 /// @param proxy A proxy to the ::Ice::ProcessPrx object of the server. This proxy is never null.
421 /// @param response The response callback.
422 /// @param exception The exception callback.
423 /// @param current The Current object of the incoming request.
424 /// @throws Ice::ServerNotFoundException Thrown when the locator does not know a server application with a server ID
425 /// of @p id.
426 virtual void setServerProcessProxyAsync(std::string id, std::optional<ProcessPrx> proxy, std::function<void()> response, std::function<void(std::exception_ptr)> exception, const Ice::Current& current) = 0;
427
428 /// @private
429 void _iceD_setServerProcessProxy(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
430
431 /// Gets the type ID of the associated Slice interface.
432 /// @return The string `"::Ice::LocatorRegistry"`.
433 static const char* ice_staticId() noexcept;
434 };
435
436 /// A shared pointer to an AsyncLocatorRegistry.
438}
439
440// NOLINTEND(modernize-concat-nested-namespaces)
441
442#include <Ice/PopDisableWarnings.h>
443#endif
void ice_throw() const override
Throws this exception.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
The exception that is thrown when a server application tries to register endpoints for an object adap...
std::string ice_id(const Ice::Current &current) const override
Gets the type ID of the most-derived Slice interface supported by this object.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
std::vector< std::string > ice_ids(const Ice::Current &current) const override
Gets the Slice interfaces supported by this object as a list of Slice type IDs.
virtual void setAdapterDirectProxyAsync(std::string id, std::optional< Ice::ObjectPrx > proxy, std::function< void()> response, std::function< void(std::exception_ptr)> exception, const Ice::Current &current)=0
Registers or unregisters the endpoints of an object adapter.
void dispatch(IncomingRequest &request, std::function< void(OutgoingResponse)> sendResponse) override
Dispatches an incoming request to one of the member functions of this generated class,...
virtual void setServerProcessProxyAsync(std::string id, std::optional< ProcessPrx > proxy, std::function< void()> response, std::function< void(std::exception_ptr)> exception, const Ice::Current &current)=0
Registers a proxy to the Ice::ProcessPrx object of a server application.
virtual void setReplicatedAdapterDirectProxyAsync(std::string adapterId, std::string replicaGroupId, std::optional< Ice::ObjectPrx > proxy, std::function< void()> response, std::function< void(std::exception_ptr)> exception, const Ice::Current &current)=0
Registers or unregisters the endpoints of an object adapter.
LocatorRegistryPrx ProxyType
The associated proxy type.
A server application registers the endpoints of its indirect object adapters with the LocatorRegistry...
Represents a request received by a connection.
Represents a byte buffer used for unmarshaling data encoded using the Slice encoding.
Definition InputStream.h:50
const char * ice_id() const noexcept override
Returns the type ID of this exception.
void ice_throw() const override
Throws this exception.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
The exception that is thrown when the provided replica group is invalid.
void setAdapterDirectProxy(std::string_view id, const std::optional< Ice::ObjectPrx > &proxy, const Ice::Context &context=Ice::noExplicitContext) const
Registers or unregisters the endpoints of an object adapter.
LocatorRegistryPrx(LocatorRegistryPrx &&other) noexcept
Move constructor.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
LocatorRegistryPrx(const Ice::CommunicatorPtr &communicator, std::string_view proxyString)
Constructs a proxy from a Communicator and a proxy string.
LocatorRegistryPrx & operator=(LocatorRegistryPrx &&rhs) noexcept
Move assignment operator.
void setServerProcessProxy(std::string_view id, const std::optional< ProcessPrx > &proxy, const Ice::Context &context=Ice::noExplicitContext) const
Registers a proxy to the Ice::ProcessPrx object of a server application.
std::function< void()> setReplicatedAdapterDirectProxyAsync(std::string_view adapterId, std::string_view replicaGroupId, const std::optional< Ice::ObjectPrx > &proxy, std::function< void()> response, std::function< void(std::exception_ptr)> exception=nullptr, std::function< void(bool)> sent=nullptr, const Ice::Context &context=Ice::noExplicitContext) const
Registers or unregisters the endpoints of an object adapter.
std::function< void()> setAdapterDirectProxyAsync(std::string_view id, const std::optional< Ice::ObjectPrx > &proxy, std::function< void()> response, std::function< void(std::exception_ptr)> exception=nullptr, std::function< void(bool)> sent=nullptr, const Ice::Context &context=Ice::noExplicitContext) const
Registers or unregisters the endpoints of an object adapter.
void setReplicatedAdapterDirectProxy(std::string_view adapterId, std::string_view replicaGroupId, const std::optional< Ice::ObjectPrx > &proxy, const Ice::Context &context=Ice::noExplicitContext) const
Registers or unregisters the endpoints of an object adapter.
LocatorRegistryPrx & operator=(const LocatorRegistryPrx &rhs) noexcept
Copy assignment operator.
LocatorRegistryPrx(const LocatorRegistryPrx &other) noexcept
Copy constructor.
std::future< void > setAdapterDirectProxyAsync(std::string_view id, const std::optional< Ice::ObjectPrx > &proxy, const Ice::Context &context=Ice::noExplicitContext) const
Registers or unregisters the endpoints of an object adapter.
std::future< void > setServerProcessProxyAsync(std::string_view id, const std::optional< ProcessPrx > &proxy, const Ice::Context &context=Ice::noExplicitContext) const
Registers a proxy to the Ice::ProcessPrx object of a server application.
std::future< void > setReplicatedAdapterDirectProxyAsync(std::string_view adapterId, std::string_view replicaGroupId, const std::optional< Ice::ObjectPrx > &proxy, const Ice::Context &context=Ice::noExplicitContext) const
Registers or unregisters the endpoints of an object adapter.
std::function< void()> setServerProcessProxyAsync(std::string_view id, const std::optional< ProcessPrx > &proxy, std::function< void()> response, std::function< void(std::exception_ptr)> exception=nullptr, std::function< void(bool)> sent=nullptr, const Ice::Context &context=Ice::noExplicitContext) const
Registers a proxy to the Ice::ProcessPrx object of a server application.
A server application registers the endpoints of its indirect object adapters with the LocatorRegistry...
virtual void setServerProcessProxy(std::string id, std::optional< ProcessPrx > proxy, const Ice::Current &current)=0
Registers a proxy to the Ice::ProcessPrx object of a server application.
LocatorRegistryPrx ProxyType
The associated proxy type.
std::vector< std::string > ice_ids(const Ice::Current &current) const override
Gets the Slice interfaces supported by this object as a list of Slice type IDs.
std::string ice_id(const Ice::Current &current) const override
Gets the type ID of the most-derived Slice interface supported by this object.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
virtual void setAdapterDirectProxy(std::string id, std::optional< Ice::ObjectPrx > proxy, const Ice::Current &current)=0
Registers or unregisters the endpoints of an object adapter.
virtual void setReplicatedAdapterDirectProxy(std::string adapterId, std::string replicaGroupId, std::optional< Ice::ObjectPrx > proxy, const Ice::Current &current)=0
Registers or unregisters the endpoints of an object adapter.
void dispatch(IncomingRequest &request, std::function< void(OutgoingResponse)> sendResponse) override
Dispatches an incoming request to one of the member functions of this generated class,...
A server application registers the endpoints of its indirect object adapters with the LocatorRegistry...
ObjectPrx & operator=(const ObjectPrx &rhs) noexcept=default
Copy assignment operator.
The base class for all Ice proxies.
Definition Proxy.h:232
The base class for servants.
Definition Object.h:21
Represents the response to an incoming request.
Represents a byte buffer used for marshaling data using the Slice encoding.
A server application managed by a locator implementation such as IceGrid hosts a Process object and r...
Definition Process.h:40
Provides typed proxy functions.
Definition Proxy.h:45
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
void ice_throw() const override
Throws this exception.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
The exception that is thrown when a server was not found.
Abstract base class for all exceptions defined in Slice.
std::shared_ptr< Communicator > CommunicatorPtr
A shared pointer to a Communicator.
const Context noExplicitContext
Marker value used to indicate that no explicit request context was passed to a proxy invocation.
std::shared_ptr< LocatorRegistry > LocatorRegistryPtr
A shared pointer to a LocatorRegistry.
std::map< std::string, std::string, std::less<> > Context
Represents additional information carried by an Ice request.
Definition Context.h:34
std::shared_ptr< AsyncLocatorRegistry > AsyncLocatorRegistryPtr
A shared pointer to an AsyncLocatorRegistry.
The Ice RPC framework.
Definition SampleEvent.h:66
Provides information about an incoming request being dispatched.
Definition Current.h:18