Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches
Locator.h
1// Copyright (c) ZeroC, Inc.
2
3// slice2cpp version 3.8.0-alpha.0
4// <auto-generated>Generated from Slice file 'Locator.ice'.</auto-generated>
5// clang-format off
6
7#ifndef Ice_Locator_h_
8#define Ice_Locator_h_
9
11#include <Ice/Ice.h>
12#include "Identity.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{
25
26 class LocatorPrx;
27
28 class LocatorFinderPrx;
29}
30
31namespace Ice
32{
33 /// Client applications use the Locator object to resolve Ice indirect proxies. This object also allows
34 /// server applications to retrieve a proxy to the associated LocatorRegistryPrx object where they can register
35 /// their object adapters.
36 /// @headerfile Ice/Ice.h
37 class ICE_API LocatorPrx : public Ice::Proxy<LocatorPrx, Ice::ObjectPrx>
38 {
39 public:
40 /// Constructs a proxy from a Communicator and a proxy string.
41 /// @param communicator The communicator of the new proxy.
42 /// @param proxyString The proxy string to parse.
43 LocatorPrx(const Ice::CommunicatorPtr& communicator, std::string_view proxyString) : Ice::ObjectPrx{communicator, proxyString} {} // NOLINT(modernize-use-equals-default)
44
45 /// Copy constructor. Constructs with a copy of the contents of @p other.
46 /// @param other The proxy to copy from.
47 LocatorPrx(const LocatorPrx& other) noexcept : Ice::ObjectPrx{other} {} // NOLINT(modernize-use-equals-default)
48
49 /// Move constructor. Constructs a proxy with the contents of @p other using move semantics.
50 /// @param other The proxy to move from.
51 LocatorPrx(LocatorPrx&& other) noexcept : Ice::ObjectPrx{std::move(other)} {} // NOLINT(modernize-use-equals-default)
52
53 ~LocatorPrx() override;
54
55 /// Copy assignment operator. Replaces the contents of this proxy with a copy of the contents of @p rhs.
56 /// @param rhs The proxy to copy from.
57 /// @return A reference to this proxy.
58 LocatorPrx& operator=(const LocatorPrx& rhs) noexcept
59 {
60 if (this != &rhs)
61 {
63 }
64 return *this;
65 }
66
67 /// Move assignment operator. Replaces the contents of this proxy with the contents of @p rhs using move semantics.
68 /// @param rhs The proxy to move from.
70 {
71 if (this != &rhs)
72 {
73 Ice::ObjectPrx::operator=(std::move(rhs));
74 }
75 return *this;
76 }
77
78 /// Finds an object by identity and returns a dummy proxy with the endpoint(s) that can be used to reach this
79 /// object. This dummy proxy may be an indirect proxy that requires further resolution using
80 /// ::Ice::LocatorPrx::findAdapterById.
81 /// @param id The identity.
82 /// @param context The request context.
83 /// @return A dummy proxy, or null if an object with the requested identity was not found.
84 /// @throws Ice::ObjectNotFoundException Thrown when an object with the requested identity was not found. The caller
85 /// should treat this exception like a null return value.
86 std::optional<Ice::ObjectPrx> findObjectById(const Identity& id, const Ice::Context& context = Ice::noExplicitContext) const; // NOLINT(modernize-use-nodiscard)
87
88 /// Finds an object by identity and returns a dummy proxy with the endpoint(s) that can be used to reach this
89 /// object. This dummy proxy may be an indirect proxy that requires further resolution using
90 /// ::Ice::LocatorPrx::findAdapterById.
91 /// @param id The identity.
92 /// @param context The request context.
93 /// @return A future that becomes available when the invocation completes. This future holds:
94 /// - A dummy proxy, or null if an object with the requested identity was not found.
95 [[nodiscard]] std::future<std::optional<Ice::ObjectPrx>> findObjectByIdAsync(const Identity& id, const Ice::Context& context = Ice::noExplicitContext) const;
96
97 /// Finds an object by identity and returns a dummy proxy with the endpoint(s) that can be used to reach this
98 /// object. This dummy proxy may be an indirect proxy that requires further resolution using
99 /// ::Ice::LocatorPrx::findAdapterById.
100 /// @param id The identity.
101 /// @param response The response callback. It accepts:
102 /// - A dummy proxy, or null if an object with the requested identity was not found.
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()> findObjectByIdAsync(const Identity& id, std::function<void(std::optional<Ice::ObjectPrx>)> 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_findObjectById(const std::shared_ptr<IceInternal::OutgoingAsyncT<std::optional<Ice::ObjectPrx>>>&, const Identity&, const Ice::Context&) const;
112
113 /// Finds an object adapter by adapter ID and returns a dummy proxy with the object adapter's endpoint(s).
114 /// @param id The adapter ID.
115 /// @param context The request context.
116 /// @return A dummy proxy with the adapter's endpoints, or null if an object adapter with @p id was not found.
117 /// @throws Ice::AdapterNotFoundException Thrown when an object adapter with this adapter ID was not found. The
118 /// caller should treat this exception like a null return value.
119 std::optional<Ice::ObjectPrx> findAdapterById(std::string_view id, const Ice::Context& context = Ice::noExplicitContext) const; // NOLINT(modernize-use-nodiscard)
120
121 /// Finds an object adapter by adapter ID and returns a dummy proxy with the object adapter's endpoint(s).
122 /// @param id The adapter ID.
123 /// @param context The request context.
124 /// @return A future that becomes available when the invocation completes. This future holds:
125 /// - A dummy proxy with the adapter's endpoints, or null if an object adapter with @p id was not found.
126 [[nodiscard]] std::future<std::optional<Ice::ObjectPrx>> findAdapterByIdAsync(std::string_view id, const Ice::Context& context = Ice::noExplicitContext) const;
127
128 /// Finds an object adapter by adapter ID and returns a dummy proxy with the object adapter's endpoint(s).
129 /// @param id The adapter ID.
130 /// @param response The response callback. It accepts:
131 /// - A dummy proxy with the adapter's endpoints, or null if an object adapter with @p id was not found.
132 /// @param exception The exception callback.
133 /// @param sent The sent callback.
134 /// @param context The request context.
135 /// @return A function that can be called to cancel the invocation locally.
136 // NOLINTNEXTLINE(modernize-use-nodiscard)
137 std::function<void()> findAdapterByIdAsync(std::string_view id, std::function<void(std::optional<Ice::ObjectPrx>)> response, std::function<void(std::exception_ptr)> exception = nullptr, std::function<void(bool)> sent = nullptr, const Ice::Context& context = Ice::noExplicitContext) const;
138
139 /// @private
140 void _iceI_findAdapterById(const std::shared_ptr<IceInternal::OutgoingAsyncT<std::optional<Ice::ObjectPrx>>>&, std::string_view, const Ice::Context&) const;
141
142 /// Gets a proxy to the locator registry.
143 /// @param context The request context.
144 /// @return A proxy to the locator registry, or null if this locator has no associated registry.
145 std::optional<LocatorRegistryPrx> getRegistry(const Ice::Context& context = Ice::noExplicitContext) const; // NOLINT(modernize-use-nodiscard)
146
147 /// Gets a proxy to the locator registry.
148 /// @param context The request context.
149 /// @return A future that becomes available when the invocation completes. This future holds:
150 /// - A proxy to the locator registry, or null if this locator has no associated registry.
151 [[nodiscard]] std::future<std::optional<LocatorRegistryPrx>> getRegistryAsync(const Ice::Context& context = Ice::noExplicitContext) const;
152
153 /// Gets a proxy to the locator registry.
154 /// @param response The response callback. It accepts:
155 /// - A proxy to the locator registry, or null if this locator has no associated registry.
156 /// @param exception The exception callback.
157 /// @param sent The sent callback.
158 /// @param context The request context.
159 /// @return A function that can be called to cancel the invocation locally.
160 // NOLINTNEXTLINE(modernize-use-nodiscard)
161 std::function<void()> getRegistryAsync(std::function<void(std::optional<::Ice::LocatorRegistryPrx>)> response, std::function<void(std::exception_ptr)> exception = nullptr, std::function<void(bool)> sent = nullptr, const Ice::Context& context = Ice::noExplicitContext) const;
162
163 /// @private
164 void _iceI_getRegistry(const std::shared_ptr<IceInternal::OutgoingAsyncT<std::optional<LocatorRegistryPrx>>>&, const Ice::Context&) const;
165
166 /// Gets the type ID of the associated Slice interface.
167 /// @return The string `"::Ice::Locator"`.
168 static const char* ice_staticId() noexcept;
169
170 /// @private
171 static LocatorPrx _fromReference(IceInternal::ReferencePtr ref) { return LocatorPrx{std::move(ref)}; }
172
173 protected:
174 /// @private
175 LocatorPrx() = default;
176
177 /// @private
178 explicit LocatorPrx(IceInternal::ReferencePtr&& ref) : Ice::ObjectPrx{std::move(ref)}
179 {
180 }
181 };
182
183 /// Provides access to a LocatorPrx object via a fixed identity.
184 /// A LocatorFinder is always registered with identity `Ice/LocatorFinder`. This allows clients to obtain the
185 /// associated Locator proxy with just the endpoint information of the object. For example, you can use the
186 /// LocatorFinder proxy `Ice/LocatorFinder:tcp -h somehost -p 4061` to get the Locator proxy
187 /// `MyIceGrid/Locator:tcp -h somehost -p 4061`.
188 /// @headerfile Ice/Ice.h
189 class ICE_API LocatorFinderPrx : public Ice::Proxy<LocatorFinderPrx, Ice::ObjectPrx>
190 {
191 public:
192 /// Constructs a proxy from a Communicator and a proxy string.
193 /// @param communicator The communicator of the new proxy.
194 /// @param proxyString The proxy string to parse.
195 LocatorFinderPrx(const Ice::CommunicatorPtr& communicator, std::string_view proxyString) : Ice::ObjectPrx{communicator, proxyString} {} // NOLINT(modernize-use-equals-default)
196
197 /// Copy constructor. Constructs with a copy of the contents of @p other.
198 /// @param other The proxy to copy from.
199 LocatorFinderPrx(const LocatorFinderPrx& other) noexcept : Ice::ObjectPrx{other} {} // NOLINT(modernize-use-equals-default)
200
201 /// Move constructor. Constructs a proxy with the contents of @p other using move semantics.
202 /// @param other The proxy to move from.
203 LocatorFinderPrx(LocatorFinderPrx&& other) noexcept : Ice::ObjectPrx{std::move(other)} {} // NOLINT(modernize-use-equals-default)
204
205 ~LocatorFinderPrx() override;
206
207 /// Copy assignment operator. Replaces the contents of this proxy with a copy of the contents of @p rhs.
208 /// @param rhs The proxy to copy from.
209 /// @return A reference to this proxy.
211 {
212 if (this != &rhs)
213 {
215 }
216 return *this;
217 }
218
219 /// Move assignment operator. Replaces the contents of this proxy with the contents of @p rhs using move semantics.
220 /// @param rhs The proxy to move from.
222 {
223 if (this != &rhs)
224 {
225 Ice::ObjectPrx::operator=(std::move(rhs));
226 }
227 return *this;
228 }
229
230 /// Gets a proxy to the associated ::Ice::LocatorPrx. The proxy might point to several replicas.
231 /// @param context The request context.
232 /// @return The locator proxy. This proxy is never null.
233 std::optional<LocatorPrx> getLocator(const Ice::Context& context = Ice::noExplicitContext) const; // NOLINT(modernize-use-nodiscard)
234
235 /// Gets a proxy to the associated ::Ice::LocatorPrx. The proxy might point to several replicas.
236 /// @param context The request context.
237 /// @return A future that becomes available when the invocation completes. This future holds:
238 /// - The locator proxy. This proxy is never null.
239 [[nodiscard]] std::future<std::optional<LocatorPrx>> getLocatorAsync(const Ice::Context& context = Ice::noExplicitContext) const;
240
241 /// Gets a proxy to the associated ::Ice::LocatorPrx. The proxy might point to several replicas.
242 /// @param response The response callback. It accepts:
243 /// - The locator proxy. This proxy is never null.
244 /// @param exception The exception callback.
245 /// @param sent The sent callback.
246 /// @param context The request context.
247 /// @return A function that can be called to cancel the invocation locally.
248 // NOLINTNEXTLINE(modernize-use-nodiscard)
249 std::function<void()> getLocatorAsync(std::function<void(std::optional<::Ice::LocatorPrx>)> response, std::function<void(std::exception_ptr)> exception = nullptr, std::function<void(bool)> sent = nullptr, const Ice::Context& context = Ice::noExplicitContext) const;
250
251 /// @private
252 void _iceI_getLocator(const std::shared_ptr<IceInternal::OutgoingAsyncT<std::optional<LocatorPrx>>>&, const Ice::Context&) const;
253
254 /// Gets the type ID of the associated Slice interface.
255 /// @return The string `"::Ice::LocatorFinder"`.
256 static const char* ice_staticId() noexcept;
257
258 /// @private
259 static LocatorFinderPrx _fromReference(IceInternal::ReferencePtr ref) { return LocatorFinderPrx{std::move(ref)}; }
260
261 protected:
262 /// @private
263 LocatorFinderPrx() = default;
264
265 /// @private
266 explicit LocatorFinderPrx(IceInternal::ReferencePtr&& ref) : Ice::ObjectPrx{std::move(ref)}
267 {
268 }
269 };
270}
271
272namespace Ice
273{
274 /// The exception that is thrown by a LocatorPrx implementation when it cannot find an object adapter with the
275 /// provided adapter ID.
276 /// @headerfile Ice/Ice.h
278 {
279 public:
280 /// Gets the type ID of the associated Slice exception.
281 /// @return The string `"::Ice::AdapterNotFoundException"`.
282 static const char* ice_staticId() noexcept;
283
284 [[nodiscard]] const char* ice_id() const noexcept override;
285
286 void ice_throw() const override;
287
288 protected:
289 /// @private
290 void _writeImpl(Ice::OutputStream*) const override;
291
292 /// @private
293 void _readImpl(Ice::InputStream*) override;
294 };
295
296 /// The exception that is thrown by a LocatorPrx implementation when it cannot find an object with the provided
297 /// identity.
298 /// @headerfile Ice/Ice.h
300 {
301 public:
302 /// Gets the type ID of the associated Slice exception.
303 /// @return The string `"::Ice::ObjectNotFoundException"`.
304 static const char* ice_staticId() noexcept;
305
306 [[nodiscard]] const char* ice_id() const noexcept override;
307
308 void ice_throw() const override;
309
310 protected:
311 /// @private
312 void _writeImpl(Ice::OutputStream*) const override;
313
314 /// @private
315 void _readImpl(Ice::InputStream*) override;
316 };
317}
318
319namespace Ice
320{
321 /// Client applications use the Locator object to resolve Ice indirect proxies. This object also allows
322 /// server applications to retrieve a proxy to the associated LocatorRegistryPrx object where they can register
323 /// their object adapters.
324 /// @headerfile Ice/Ice.h
325 class ICE_API Locator : public virtual Ice::Object
326 {
327 public:
328 /// The associated proxy type.
330
331 /// Dispatches an incoming request to one of the member functions of this generated class, based on the operation name carried by the request.
332 /// @param request The incoming request.
333 /// @param sendResponse The callback to send the response.
334 void dispatch(IncomingRequest& request, std::function<void(OutgoingResponse)> sendResponse) override;
335
336 [[nodiscard]] std::vector<std::string> ice_ids(const Ice::Current& current) const override;
337
338 [[nodiscard]] std::string ice_id(const Ice::Current& current) const override;
339
340 /// Finds an object by identity and returns a dummy proxy with the endpoint(s) that can be used to reach this
341 /// object. This dummy proxy may be an indirect proxy that requires further resolution using
342 /// ::Ice::LocatorPrx::findAdapterById.
343 /// @param id The identity.
344 /// @param response The response callback. It accepts:
345 /// - A dummy proxy, or null if an object with the requested identity was not found.
346 /// @param exception The exception callback.
347 /// @param current The Current object of the incoming request.
348 /// @throws Ice::ObjectNotFoundException Thrown when an object with the requested identity was not found. The caller
349 /// should treat this exception like a null return value.
350 virtual void findObjectByIdAsync(Identity id, std::function<void(const std::optional<Ice::ObjectPrx>& returnValue)> response, std::function<void(std::exception_ptr)> exception, const Ice::Current& current) const = 0;
351
352 /// @private
353 void _iceD_findObjectById(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>) const;
354
355 /// Finds an object adapter by adapter ID and returns a dummy proxy with the object adapter's endpoint(s).
356 /// @param id The adapter ID.
357 /// @param response The response callback. It accepts:
358 /// - A dummy proxy with the adapter's endpoints, or null if an object adapter with @p id was not found.
359 /// @param exception The exception callback.
360 /// @param current The Current object of the incoming request.
361 /// @throws Ice::AdapterNotFoundException Thrown when an object adapter with this adapter ID was not found. The
362 /// caller should treat this exception like a null return value.
363 virtual void findAdapterByIdAsync(std::string id, std::function<void(const std::optional<Ice::ObjectPrx>& returnValue)> response, std::function<void(std::exception_ptr)> exception, const Ice::Current& current) const = 0;
364
365 /// @private
366 void _iceD_findAdapterById(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>) const;
367
368 /// Gets a proxy to the locator registry.
369 /// @param current The Current object of the incoming request.
370 /// @return A proxy to the locator registry, or null if this locator has no associated registry.
371 [[nodiscard]] virtual std::optional<LocatorRegistryPrx> getRegistry(const Ice::Current& current) const = 0;
372
373 /// @private
374 void _iceD_getRegistry(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>) const;
375
376 /// Gets the type ID of the associated Slice interface.
377 /// @return The string `"::Ice::Locator"`.
378 static const char* ice_staticId() noexcept;
379 };
380
381 /// A shared pointer to a Locator.
382 using LocatorPtr = std::shared_ptr<Locator>;
383
384 /// Provides access to a LocatorPrx object via a fixed identity.
385 /// A LocatorFinder is always registered with identity `Ice/LocatorFinder`. This allows clients to obtain the
386 /// associated Locator proxy with just the endpoint information of the object. For example, you can use the
387 /// LocatorFinder proxy `Ice/LocatorFinder:tcp -h somehost -p 4061` to get the Locator proxy
388 /// `MyIceGrid/Locator:tcp -h somehost -p 4061`.
389 /// @headerfile Ice/Ice.h
390 class ICE_API LocatorFinder : 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 /// Gets a proxy to the associated ::Ice::LocatorPrx. The proxy might point to several replicas.
406 /// @param current The Current object of the incoming request.
407 /// @return The locator proxy. This proxy is never null.
408 virtual std::optional<LocatorPrx> getLocator(const Ice::Current& current) = 0;
409
410 /// @private
411 void _iceD_getLocator(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
412
413 /// Gets the type ID of the associated Slice interface.
414 /// @return The string `"::Ice::LocatorFinder"`.
415 static const char* ice_staticId() noexcept;
416 };
417
418 /// A shared pointer to a LocatorFinder.
419 using LocatorFinderPtr = std::shared_ptr<LocatorFinder>;
420}
421
422// NOLINTEND(modernize-concat-nested-namespaces)
423
424#include <Ice/PopDisableWarnings.h>
425#endif
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 by a LocatorPrx implementation when it cannot find an object adapter wit...
Definition Locator.h:278
Represents a request received by a connection.
Represents a byte buffer used for unmarshaling data encoded using the Slice encoding.
Definition InputStream.h:50
LocatorFinderPrx & operator=(LocatorFinderPrx &&rhs) noexcept
Move assignment operator.
Definition Locator.h:221
LocatorFinderPrx(const Ice::CommunicatorPtr &communicator, std::string_view proxyString)
Constructs a proxy from a Communicator and a proxy string.
Definition Locator.h:195
std::function< void()> getLocatorAsync(std::function< void(std::optional<::Ice::LocatorPrx >)> response, std::function< void(std::exception_ptr)> exception=nullptr, std::function< void(bool)> sent=nullptr, const Ice::Context &context=Ice::noExplicitContext) const
Gets a proxy to the associated Ice::LocatorPrx.
LocatorFinderPrx(const LocatorFinderPrx &other) noexcept
Copy constructor.
Definition Locator.h:199
std::optional< LocatorPrx > getLocator(const Ice::Context &context=Ice::noExplicitContext) const
Gets a proxy to the associated Ice::LocatorPrx.
LocatorFinderPrx & operator=(const LocatorFinderPrx &rhs) noexcept
Copy assignment operator.
Definition Locator.h:210
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
LocatorFinderPrx(LocatorFinderPrx &&other) noexcept
Move constructor.
Definition Locator.h:203
std::future< std::optional< LocatorPrx > > getLocatorAsync(const Ice::Context &context=Ice::noExplicitContext) const
Gets a proxy to the associated Ice::LocatorPrx.
Provides access to a LocatorPrx object via a fixed identity.
Definition Locator.h:190
virtual std::optional< LocatorPrx > getLocator(const Ice::Current &current)=0
Gets a proxy to the associated Ice::LocatorPrx.
std::vector< std::string > ice_ids(const Ice::Current &current) const override
Gets the Slice interfaces supported by this object as a list of type IDs.
void dispatch(IncomingRequest &request, std::function< void(OutgoingResponse)> sendResponse) override
Dispatches an incoming request to one of the member functions of this generated class,...
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
LocatorFinderPrx ProxyType
The associated proxy type.
Definition Locator.h:394
std::string ice_id(const Ice::Current &current) const override
Gets the type ID of the most-derived Slice interface supported by this object.
Provides access to a LocatorPrx object via a fixed identity.
Definition Locator.h:391
std::optional< Ice::ObjectPrx > findObjectById(const Identity &id, const Ice::Context &context=Ice::noExplicitContext) const
Finds an object by identity and returns a dummy proxy with the endpoint(s) that can be used to reach ...
LocatorPrx & operator=(const LocatorPrx &rhs) noexcept
Copy assignment operator.
Definition Locator.h:58
std::optional< LocatorRegistryPrx > getRegistry(const Ice::Context &context=Ice::noExplicitContext) const
Gets a proxy to the locator registry.
LocatorPrx(const LocatorPrx &other) noexcept
Copy constructor.
Definition Locator.h:47
std::future< std::optional< Ice::ObjectPrx > > findAdapterByIdAsync(std::string_view id, const Ice::Context &context=Ice::noExplicitContext) const
Finds an object adapter by adapter ID and returns a dummy proxy with the object adapter's endpoint(s)...
LocatorPrx & operator=(LocatorPrx &&rhs) noexcept
Move assignment operator.
Definition Locator.h:69
std::function< void()> getRegistryAsync(std::function< void(std::optional<::Ice::LocatorRegistryPrx >)> response, std::function< void(std::exception_ptr)> exception=nullptr, std::function< void(bool)> sent=nullptr, const Ice::Context &context=Ice::noExplicitContext) const
Gets a proxy to the locator registry.
std::function< void()> findAdapterByIdAsync(std::string_view id, std::function< void(std::optional< Ice::ObjectPrx >)> response, std::function< void(std::exception_ptr)> exception=nullptr, std::function< void(bool)> sent=nullptr, const Ice::Context &context=Ice::noExplicitContext) const
Finds an object adapter by adapter ID and returns a dummy proxy with the object adapter's endpoint(s)...
std::optional< Ice::ObjectPrx > findAdapterById(std::string_view id, const Ice::Context &context=Ice::noExplicitContext) const
Finds an object adapter by adapter ID and returns a dummy proxy with the object adapter's endpoint(s)...
std::function< void()> findObjectByIdAsync(const Identity &id, std::function< void(std::optional< Ice::ObjectPrx >)> response, std::function< void(std::exception_ptr)> exception=nullptr, std::function< void(bool)> sent=nullptr, const Ice::Context &context=Ice::noExplicitContext) const
Finds an object by identity and returns a dummy proxy with the endpoint(s) that can be used to reach ...
std::future< std::optional< Ice::ObjectPrx > > findObjectByIdAsync(const Identity &id, const Ice::Context &context=Ice::noExplicitContext) const
Finds an object by identity and returns a dummy proxy with the endpoint(s) that can be used to reach ...
LocatorPrx(LocatorPrx &&other) noexcept
Move constructor.
Definition Locator.h:51
LocatorPrx(const Ice::CommunicatorPtr &communicator, std::string_view proxyString)
Constructs a proxy from a Communicator and a proxy string.
Definition Locator.h:43
std::future< std::optional< LocatorRegistryPrx > > getRegistryAsync(const Ice::Context &context=Ice::noExplicitContext) const
Gets a proxy to the locator registry.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
Client applications use the Locator object to resolve Ice indirect proxies.
Definition Locator.h:38
A server application registers the endpoints of its indirect object adapters with the LocatorRegistry...
virtual void findObjectByIdAsync(Identity id, std::function< void(const std::optional< Ice::ObjectPrx > &returnValue)> response, std::function< void(std::exception_ptr)> exception, const Ice::Current &current) const =0
Finds an object by identity and returns a dummy proxy with the endpoint(s) that can be used to reach ...
std::vector< std::string > ice_ids(const Ice::Current &current) const override
Gets the Slice interfaces supported by this object as a list of type IDs.
void dispatch(IncomingRequest &request, std::function< void(OutgoingResponse)> sendResponse) override
Dispatches an incoming request to one of the member functions of this generated class,...
LocatorPrx ProxyType
The associated proxy type.
Definition Locator.h:329
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
virtual std::optional< LocatorRegistryPrx > getRegistry(const Ice::Current &current) const =0
Gets a proxy to the locator registry.
std::string ice_id(const Ice::Current &current) const override
Gets the type ID of the most-derived Slice interface supported by this object.
virtual void findAdapterByIdAsync(std::string id, std::function< void(const std::optional< Ice::ObjectPrx > &returnValue)> response, std::function< void(std::exception_ptr)> exception, const Ice::Current &current) const =0
Finds an object adapter by adapter ID and returns a dummy proxy with the object adapter's endpoint(s)...
Client applications use the Locator object to resolve Ice indirect proxies.
Definition Locator.h:326
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 by a LocatorPrx implementation when it cannot find an object with the pr...
Definition Locator.h:300
ObjectPrx & operator=(const ObjectPrx &rhs) noexcept=default
Copy assignment operator.
The base class for all Ice proxies.
Definition Proxy.h:232
Object() noexcept=default
Default constructor.
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.
Provides typed proxy functions.
Definition Proxy.h:45
Abstract base class for all Ice 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< LocatorFinder > LocatorFinderPtr
A shared pointer to a LocatorFinder.
Definition Locator.h:419
std::shared_ptr< Locator > LocatorPtr
A shared pointer to a Locator.
Definition Locator.h:382
std::map< std::string, std::string, std::less<> > Context
Represents additional information carried by an Ice request.
Definition Context.h:28
The Ice RPC framework.
Definition SampleEvent.h:59
Provides information about an incoming request being dispatched.
Definition Current.h:18
Represents the identity of an Ice object.
Definition Identity.h:40