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