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