Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches
LocatorRegistry.h
1// Copyright (c) ZeroC, Inc.
2
3// slice2cpp version 3.8.3
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 < 3
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. The Ice runtime calls this function from an Ice thread pool
109 /// thread. If you set Ice::InitializationData::executor, the executor determines the thread that executes this
110 /// function.
111 /// @param exception The exception callback. The Ice runtime calls this function from an Ice thread pool
112 /// thread. If you set Ice::InitializationData::executor, the executor determines the thread that executes this
113 /// function.
114 /// @param sent The sent callback. The Ice runtime calls this function when the request is accepted by the
115 /// transport. When the request is accepted synchronously, the Ice runtime calls this function from the current
116 /// thread and passes `true` as argument. When the request is accepted asynchronously, the Ice runtime calls
117 /// this function from an Ice thread pool thread and passes `false` as argument. If you set
118 /// Ice::InitializationData::executor, the executor determines the thread that executes this function in the
119 /// asynchronous case.
120 /// @param context The request context.
121 /// @return A function that can be called to cancel the invocation locally.
122 // NOLINTNEXTLINE(modernize-use-nodiscard)
123 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;
124
125 /// @private
126 void _iceI_setAdapterDirectProxy(const std::shared_ptr<IceInternal::OutgoingAsyncT<void>>&, std::string_view, const std::optional<Ice::ObjectPrx>&, const Ice::Context&) const;
127
128 /// Registers or unregisters the endpoints of an object adapter. This object adapter is a member of a replica
129 /// group.
130 /// @param adapterId The adapter ID.
131 /// @param replicaGroupId The replica group ID.
132 /// @param proxy A dummy proxy created by the object adapter. @p proxy carries the object adapter's endpoints.
133 /// The locator considers an object adapter to be active after it has registered its endpoints. When @p proxy is
134 /// null, the endpoints are unregistered and the locator considers the object adapter inactive.
135 /// @param context The request context.
136 /// @throws Ice::AdapterAlreadyActiveException Thrown when an object adapter with the same adapter ID has already
137 /// registered its endpoints. Since this operation is marked idempotent, this exception may be thrown when the
138 /// Ice client runtime retries an invocation with a non-null @p proxy.
139 /// @throws Ice::AdapterNotFoundException Thrown when the locator only allows registered object adapters to register
140 /// their endpoints and no object adapter with this adapter ID was registered with the locator.
141 /// @throws Ice::InvalidReplicaGroupIdException Thrown when the given replica group does not match the replica group
142 /// associated with the adapter ID in the locator's database.
143 void setReplicatedAdapterDirectProxy(std::string_view adapterId, std::string_view replicaGroupId, const std::optional<Ice::ObjectPrx>& proxy, const Ice::Context& context = Ice::noExplicitContext) const;
144
145 /// Registers or unregisters the endpoints of an object adapter. This object adapter is a member of a replica
146 /// group.
147 /// @param adapterId The adapter ID.
148 /// @param replicaGroupId The replica group ID.
149 /// @param proxy A dummy proxy created by the object adapter. @p proxy carries the object adapter's endpoints.
150 /// The locator considers an object adapter to be active after it has registered its endpoints. When @p proxy is
151 /// null, the endpoints are unregistered and the locator considers the object adapter inactive.
152 /// @param context The request context.
153 /// @return A future that becomes available when the invocation completes.
154 [[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;
155
156 /// Registers or unregisters the endpoints of an object adapter. This object adapter is a member of a replica
157 /// group.
158 /// @param adapterId The adapter ID.
159 /// @param replicaGroupId The replica group ID.
160 /// @param proxy A dummy proxy created by the object adapter. @p proxy carries the object adapter's endpoints.
161 /// The locator considers an object adapter to be active after it has registered its endpoints. When @p proxy is
162 /// null, the endpoints are unregistered and the locator considers the object adapter inactive.
163 /// @param response The response callback. The Ice runtime calls this function from an Ice thread pool
164 /// thread. If you set Ice::InitializationData::executor, the executor determines the thread that executes this
165 /// function.
166 /// @param exception The exception callback. The Ice runtime calls this function from an Ice thread pool
167 /// thread. If you set Ice::InitializationData::executor, the executor determines the thread that executes this
168 /// function.
169 /// @param sent The sent callback. The Ice runtime calls this function when the request is accepted by the
170 /// transport. When the request is accepted synchronously, the Ice runtime calls this function from the current
171 /// thread and passes `true` as argument. When the request is accepted asynchronously, the Ice runtime calls
172 /// this function from an Ice thread pool thread and passes `false` as argument. If you set
173 /// Ice::InitializationData::executor, the executor determines the thread that executes this function in the
174 /// asynchronous case.
175 /// @param context The request context.
176 /// @return A function that can be called to cancel the invocation locally.
177 // NOLINTNEXTLINE(modernize-use-nodiscard)
178 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;
179
180 /// @private
181 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;
182
183 /// Registers a proxy to the ::Ice::ProcessPrx object of a server application.
184 /// @param id The server ID.
185 /// @param proxy A proxy to the ::Ice::ProcessPrx object of the server. This proxy is never null.
186 /// @param context The request context.
187 /// @throws Ice::ServerNotFoundException Thrown when the locator does not know a server application with a server ID
188 /// of @p id.
189 void setServerProcessProxy(std::string_view id, const std::optional<ProcessPrx>& proxy, const Ice::Context& context = Ice::noExplicitContext) const;
190
191 /// Registers a proxy to the ::Ice::ProcessPrx object of a server application.
192 /// @param id The server ID.
193 /// @param proxy A proxy to the ::Ice::ProcessPrx object of the server. This proxy is never null.
194 /// @param context The request context.
195 /// @return A future that becomes available when the invocation completes.
196 [[nodiscard]] std::future<void> setServerProcessProxyAsync(std::string_view id, const std::optional<ProcessPrx>& proxy, const Ice::Context& context = Ice::noExplicitContext) const;
197
198 /// Registers a proxy to the ::Ice::ProcessPrx object of a server application.
199 /// @param id The server ID.
200 /// @param proxy A proxy to the ::Ice::ProcessPrx object of the server. This proxy is never null.
201 /// @param response The response callback. The Ice runtime calls this function from an Ice thread pool
202 /// thread. If you set Ice::InitializationData::executor, the executor determines the thread that executes this
203 /// function.
204 /// @param exception The exception callback. The Ice runtime calls this function from an Ice thread pool
205 /// thread. If you set Ice::InitializationData::executor, the executor determines the thread that executes this
206 /// function.
207 /// @param sent The sent callback. The Ice runtime calls this function when the request is accepted by the
208 /// transport. When the request is accepted synchronously, the Ice runtime calls this function from the current
209 /// thread and passes `true` as argument. When the request is accepted asynchronously, the Ice runtime calls
210 /// this function from an Ice thread pool thread and passes `false` as argument. If you set
211 /// Ice::InitializationData::executor, the executor determines the thread that executes this function in the
212 /// asynchronous case.
213 /// @param context The request context.
214 /// @return A function that can be called to cancel the invocation locally.
215 // NOLINTNEXTLINE(modernize-use-nodiscard)
216 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;
217
218 /// @private
219 void _iceI_setServerProcessProxy(const std::shared_ptr<IceInternal::OutgoingAsyncT<void>>&, std::string_view, const std::optional<ProcessPrx>&, const Ice::Context&) const;
220
221 /// Gets the type ID of the associated Slice interface.
222 /// @return The string `"::Ice::LocatorRegistry"`.
223 static const char* ice_staticId() noexcept;
224
225 /// @private
226 static LocatorRegistryPrx _fromReference(IceInternal::ReferencePtr ref) { return LocatorRegistryPrx{std::move(ref)}; }
227
228 protected:
229 /// @private
230 LocatorRegistryPrx() = default;
231
232 /// @private
233 explicit LocatorRegistryPrx(IceInternal::ReferencePtr&& ref) : Ice::ObjectPrx{std::move(ref)}
234 {
235 }
236 };
237}
238
239namespace Ice
240{
241 /// The exception that is thrown when a server application tries to register endpoints for an object adapter that is
242 /// already active.
243 /// @remarks The Slice compiler generated this exception class from Slice exception `::Ice::AdapterAlreadyActiveException`.
244 /// @headerfile Ice/Ice.h
246 {
247 public:
248 /// Gets the type ID of the associated Slice exception.
249 /// @return The string `"::Ice::AdapterAlreadyActiveException"`.
250 static const char* ice_staticId() noexcept;
251
252 [[nodiscard]] const char* ice_id() const noexcept override;
253
254 void ice_throw() const override;
255
256 protected:
257 /// @private
258 void _writeImpl(Ice::OutputStream*) const override;
259
260 /// @private
261 void _readImpl(Ice::InputStream*) override;
262 };
263
264 /// The exception that is thrown when the provided replica group is invalid.
265 /// @remarks The Slice compiler generated this exception class from Slice exception `::Ice::InvalidReplicaGroupIdException`.
266 /// @headerfile Ice/Ice.h
268 {
269 public:
270 /// Gets the type ID of the associated Slice exception.
271 /// @return The string `"::Ice::InvalidReplicaGroupIdException"`.
272 static const char* ice_staticId() noexcept;
273
274 [[nodiscard]] const char* ice_id() const noexcept override;
275
276 void ice_throw() const override;
277
278 protected:
279 /// @private
280 void _writeImpl(Ice::OutputStream*) const override;
281
282 /// @private
283 void _readImpl(Ice::InputStream*) override;
284 };
285
286 /// The exception that is thrown when a server was not found.
287 /// @remarks The Slice compiler generated this exception class from Slice exception `::Ice::ServerNotFoundException`.
288 /// @headerfile Ice/Ice.h
290 {
291 public:
292 /// Gets the type ID of the associated Slice exception.
293 /// @return The string `"::Ice::ServerNotFoundException"`.
294 static const char* ice_staticId() noexcept;
295
296 [[nodiscard]] const char* ice_id() const noexcept override;
297
298 void ice_throw() const override;
299
300 protected:
301 /// @private
302 void _writeImpl(Ice::OutputStream*) const override;
303
304 /// @private
305 void _readImpl(Ice::InputStream*) override;
306 };
307}
308
309namespace Ice
310{
311 /// A server application registers the endpoints of its indirect object adapters with the LocatorRegistry object.
312 /// @remarks The Slice compiler generated this skeleton class from Slice interface `::Ice::LocatorRegistry`.
313 /// @headerfile Ice/Ice.h
314 class ICE_API LocatorRegistry : public virtual Ice::Object
315 {
316 public:
317 /// The associated proxy type.
319
320 /// Dispatches an incoming request to one of the member functions of this generated class, based on the operation name carried by the request.
321 /// @param request The incoming request.
322 /// @param sendResponse The callback to send the response.
323 void dispatch(IncomingRequest& request, std::function<void(OutgoingResponse)> sendResponse) override;
324
325 [[nodiscard]] std::vector<std::string> ice_ids(const Ice::Current& current) const override;
326
327 [[nodiscard]] std::string ice_id(const Ice::Current& current) const override;
328
329 /// Registers or unregisters the endpoints of an object adapter.
330 /// @param id The adapter ID.
331 /// @param proxy A dummy proxy created by the object adapter. @p proxy carries the object adapter's endpoints.
332 /// The locator considers an object adapter to be active after it has registered its endpoints.
333 /// When @p proxy is null, the endpoints are unregistered and the locator considers the object adapter inactive.
334 /// @param current The Current object of the incoming request.
335 /// @throws Ice::AdapterAlreadyActiveException Thrown when an object adapter with the same adapter ID has already
336 /// registered its endpoints. Since this operation is marked idempotent, this exception may be thrown when the
337 /// Ice client runtime retries an invocation with a non-null @p proxy.
338 /// @throws Ice::AdapterNotFoundException Thrown when the locator only allows registered object adapters to register
339 /// their endpoints and no object adapter with this adapter ID was registered with the locator.
340 virtual void setAdapterDirectProxy(std::string id, std::optional<Ice::ObjectPrx> proxy, const Ice::Current& current) = 0;
341
342 /// @private
343 void _iceD_setAdapterDirectProxy(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
344
345 /// Registers or unregisters the endpoints of an object adapter. This object adapter is a member of a replica
346 /// group.
347 /// @param adapterId The adapter ID.
348 /// @param replicaGroupId The replica group ID.
349 /// @param proxy A dummy proxy created by the object adapter. @p proxy carries the object adapter's endpoints.
350 /// The locator considers an object adapter to be active after it has registered its endpoints. When @p proxy is
351 /// null, the endpoints are unregistered and the locator considers the object adapter inactive.
352 /// @param current The Current object of the incoming request.
353 /// @throws Ice::AdapterAlreadyActiveException Thrown when an object adapter with the same adapter ID has already
354 /// registered its endpoints. Since this operation is marked idempotent, this exception may be thrown when the
355 /// Ice client runtime retries an invocation with a non-null @p proxy.
356 /// @throws Ice::AdapterNotFoundException Thrown when the locator only allows registered object adapters to register
357 /// their endpoints and no object adapter with this adapter ID was registered with the locator.
358 /// @throws Ice::InvalidReplicaGroupIdException Thrown when the given replica group does not match the replica group
359 /// associated with the adapter ID in the locator's database.
360 virtual void setReplicatedAdapterDirectProxy(std::string adapterId, std::string replicaGroupId, std::optional<Ice::ObjectPrx> proxy, const Ice::Current& current) = 0;
361
362 /// @private
363 void _iceD_setReplicatedAdapterDirectProxy(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
364
365 /// Registers a proxy to the ::Ice::ProcessPrx object of a server application.
366 /// @param id The server ID.
367 /// @param proxy A proxy to the ::Ice::ProcessPrx object of the server. This proxy is never null.
368 /// @param current The Current object of the incoming request.
369 /// @throws Ice::ServerNotFoundException Thrown when the locator does not know a server application with a server ID
370 /// of @p id.
371 virtual void setServerProcessProxy(std::string id, std::optional<ProcessPrx> proxy, const Ice::Current& current) = 0;
372
373 /// @private
374 void _iceD_setServerProcessProxy(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
375
376 /// Gets the type ID of the associated Slice interface.
377 /// @return The string `"::Ice::LocatorRegistry"`.
378 static const char* ice_staticId() noexcept;
379 };
380
381 /// A shared pointer to a LocatorRegistry.
382 using LocatorRegistryPtr = std::shared_ptr<LocatorRegistry>;
383}
384
385namespace Ice
386{
387 /// A server application registers the endpoints of its indirect object adapters with the LocatorRegistry object.
388 /// @remarks The Slice compiler generated this skeleton class from Slice interface `::Ice::LocatorRegistry`.
389 /// @headerfile Ice/Ice.h
390 class ICE_API AsyncLocatorRegistry : public virtual Ice::Object
391 {
392 public:
393 /// The associated proxy type.
395
396 /// Dispatches an incoming request to one of the member functions of this generated class, based on the operation name carried by the request.
397 /// @param request The incoming request.
398 /// @param sendResponse The callback to send the response.
399 void dispatch(IncomingRequest& request, std::function<void(OutgoingResponse)> sendResponse) override;
400
401 [[nodiscard]] std::vector<std::string> ice_ids(const Ice::Current& current) const override;
402
403 [[nodiscard]] std::string ice_id(const Ice::Current& current) const override;
404
405 /// Registers or unregisters the endpoints of an object adapter.
406 /// @param id The adapter ID.
407 /// @param proxy A dummy proxy created by the object adapter. @p proxy carries the object adapter's endpoints.
408 /// The locator considers an object adapter to be active after it has registered its endpoints.
409 /// When @p proxy is null, the endpoints are unregistered and the locator considers the object adapter inactive.
410 /// @param response The response callback.
411 /// @param exception The exception callback.
412 /// @param current The Current object of the incoming request.
413 /// @throws Ice::AdapterAlreadyActiveException Thrown when an object adapter with the same adapter ID has already
414 /// registered its endpoints. Since this operation is marked idempotent, this exception may be thrown when the
415 /// Ice client runtime retries an invocation with a non-null @p proxy.
416 /// @throws Ice::AdapterNotFoundException Thrown when the locator only allows registered object adapters to register
417 /// their endpoints and no object adapter with this adapter ID was registered with the locator.
418 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;
419
420 /// @private
421 void _iceD_setAdapterDirectProxy(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
422
423 /// Registers or unregisters the endpoints of an object adapter. This object adapter is a member of a replica
424 /// group.
425 /// @param adapterId The adapter ID.
426 /// @param replicaGroupId The replica group ID.
427 /// @param proxy A dummy proxy created by the object adapter. @p proxy carries the object adapter's endpoints.
428 /// The locator considers an object adapter to be active after it has registered its endpoints. When @p proxy is
429 /// null, the endpoints are unregistered and the locator considers the object adapter inactive.
430 /// @param response The response callback.
431 /// @param exception The exception callback.
432 /// @param current The Current object of the incoming request.
433 /// @throws Ice::AdapterAlreadyActiveException Thrown when an object adapter with the same adapter ID has already
434 /// registered its endpoints. Since this operation is marked idempotent, this exception may be thrown when the
435 /// Ice client runtime retries an invocation with a non-null @p proxy.
436 /// @throws Ice::AdapterNotFoundException Thrown when the locator only allows registered object adapters to register
437 /// their endpoints and no object adapter with this adapter ID was registered with the locator.
438 /// @throws Ice::InvalidReplicaGroupIdException Thrown when the given replica group does not match the replica group
439 /// associated with the adapter ID in the locator's database.
440 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;
441
442 /// @private
443 void _iceD_setReplicatedAdapterDirectProxy(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
444
445 /// Registers a proxy to the ::Ice::ProcessPrx object of a server application.
446 /// @param id The server ID.
447 /// @param proxy A proxy to the ::Ice::ProcessPrx object of the server. This proxy is never null.
448 /// @param response The response callback.
449 /// @param exception The exception callback.
450 /// @param current The Current object of the incoming request.
451 /// @throws Ice::ServerNotFoundException Thrown when the locator does not know a server application with a server ID
452 /// of @p id.
453 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;
454
455 /// @private
456 void _iceD_setServerProcessProxy(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
457
458 /// Gets the type ID of the associated Slice interface.
459 /// @return The string `"::Ice::LocatorRegistry"`.
460 static const char* ice_staticId() noexcept;
461 };
462
463 /// A shared pointer to an AsyncLocatorRegistry.
465}
466
467// NOLINTEND(modernize-concat-nested-namespaces)
468
469#include <Ice/PopDisableWarnings.h>
470#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:265
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:48
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