21 #ifndef __IceStorm_Election_h__
22 #define __IceStorm_Election_h__
24 #include <IceUtil/PushDisableWarnings.h>
25 #include <Ice/ProxyF.h>
26 #include <Ice/ObjectF.h>
27 #include <Ice/ValueF.h>
28 #include <Ice/Exception.h>
29 #include <Ice/LocalObject.h>
30 #include <Ice/StreamHelpers.h>
31 #include <Ice/Comparable.h>
32 #include <Ice/Proxy.h>
33 #include <Ice/Object.h>
34 #include <Ice/GCObject.h>
35 #include <Ice/Value.h>
36 #include <Ice/Incoming.h>
37 #include <Ice/FactoryTableInit.h>
38 #include <IceUtil/ScopedArray.h>
39 #include <Ice/Optional.h>
40 #include <Ice/ExceptionHelpers.h>
41 #include <Ice/Identity.h>
42 #include <Ice/BuiltinSequences.h>
45 #include <IceUtil/UndefSysMacros.h>
47 #ifndef ICE_IGNORE_VERSION
48 # if ICE_INT_VERSION / 100 != 307
49 # error Ice version mismatch!
51 # if ICE_INT_VERSION % 100 > 50
52 # error Beta header file detected
54 # if ICE_INT_VERSION % 100 < 0
55 # error Ice patch level mismatch!
59 #ifdef ICE_CPP11_MAPPING // C++11 mapping
64 class ReplicaObserver;
66 class TopicManagerSync;
81 std::tuple<const ::Ice::Identity&, const ::IceStorm::SubscriberRecordSeq&> ice_tuple()
const
87 using TopicContentSeq = ::std::vector<::IceStormElection::TopicContent>;
89 class ObserverInconsistencyException :
public ::Ice::UserExceptionHelper<ObserverInconsistencyException, ::Ice::UserException>
104 std::tuple<const ::std::string&> ice_tuple()
const
109 static const ::std::string& ice_staticId();
114 static ObserverInconsistencyException _iceS_ObserverInconsistencyException_init;
127 ::std::shared_ptr<::IceStormElection::NodePrx>
n;
129 std::tuple<const int&, const ::std::shared_ptr<::IceStormElection::NodePrx>&> ice_tuple()
const
131 return std::tie(
id,
n);
135 using NodeInfoSeq = ::std::vector<::IceStormElection::NodeInfo>;
142 std::tuple<const int&, const ::IceStormElection::LogUpdate&> ice_tuple()
const
144 return std::tie(
id,
llu);
148 using GroupInfoSeq = ::std::vector<::IceStormElection::GroupInfo>;
155 ::std::shared_ptr<::Ice::ObjectPrx>
replica;
166 using Ice::operator<;
167 using Ice::operator<=;
168 using Ice::operator>;
169 using Ice::operator>=;
170 using Ice::operator==;
171 using Ice::operator!=;
178 class ReplicaObserver :
public virtual ::Ice::Object
184 virtual bool ice_isA(::std::string, const ::Ice::Current&)
const override;
185 virtual ::std::vector<::std::string>
ice_ids(const ::Ice::Current&)
const override;
186 virtual ::std::string
ice_id(const ::Ice::Current&)
const override;
191 bool _iceD_init(::IceInternal::Incoming&, const ::Ice::Current&);
205 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&)
override;
208 class TopicManagerSync :
public virtual ::Ice::Object
214 virtual bool ice_isA(::std::string, const ::Ice::Current&)
const override;
215 virtual ::std::vector<::std::string>
ice_ids(const ::Ice::Current&)
const override;
216 virtual ::std::string
ice_id(const ::Ice::Current&)
const override;
220 struct GetContentResult
229 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&)
override;
232 class Node :
public virtual ::Ice::Object
238 virtual bool ice_isA(::std::string, const ::Ice::Current&)
const override;
239 virtual ::std::vector<::std::string>
ice_ids(const ::Ice::Current&)
const override;
240 virtual ::std::string
ice_id(const ::Ice::Current&)
const override;
244 virtual void invitation(
int, ::std::string, const ::Ice::Current&) = 0;
247 virtual void ready(
int, ::std::string, ::std::shared_ptr<::Ice::ObjectPrx>,
int,
long long int, const ::Ice::Current&) = 0;
248 bool _iceD_ready(::IceInternal::Incoming&, const ::Ice::Current&);
251 bool _iceD_accept(::IceInternal::Incoming&, const ::Ice::Current&);
256 virtual bool areYouThere(::std::string,
int, const ::Ice::Current&)
const = 0;
259 virtual ::std::shared_ptr<::Ice::ObjectPrx>
sync(const ::Ice::Current&)
const = 0;
260 bool _iceD_sync(::IceInternal::Incoming&, const ::Ice::Current&)
const;
263 bool _iceD_nodes(::IceInternal::Incoming&, const ::Ice::Current&)
const;
265 virtual ::IceStormElection::QueryInfo
query(const ::Ice::Current&)
const = 0;
266 bool _iceD_query(::IceInternal::Incoming&, const ::Ice::Current&)
const;
268 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&)
override;
276 class ReplicaObserverPrx :
public virtual ::Ice::Proxy<ReplicaObserverPrx, ::Ice::ObjectPrx>
282 _makePromiseOutgoing<void>(
true,
this, &IceStormElection::ReplicaObserverPrx::_iceI_init, iceP_llu, iceP_content, context).get();
285 template<
template<
typename>
class P = ::std::promise>
287 -> decltype(::std::declval<P<void>>().get_future())
289 return _makePromiseOutgoing<void, P>(
false,
this, &IceStormElection::ReplicaObserverPrx::_iceI_init, iceP_llu, iceP_content, context);
292 ::std::function<void()>
294 ::std::function<
void()> response,
295 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
296 ::std::function<
void(
bool)> sent =
nullptr,
297 const ::Ice::Context& context = Ice::noExplicitContext)
299 return _makeLamdaOutgoing<void>(response, ex, sent,
this, &IceStormElection::ReplicaObserverPrx::_iceI_init, iceP_llu, iceP_content, context);
304 void createTopic(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_name, const ::Ice::Context& context = Ice::noExplicitContext)
306 _makePromiseOutgoing<void>(
true,
this, &IceStormElection::ReplicaObserverPrx::_iceI_createTopic, iceP_llu, iceP_name, context).get();
309 template<
template<
typename>
class P = ::std::promise>
310 auto createTopicAsync(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_name, const ::Ice::Context& context = Ice::noExplicitContext)
311 -> decltype(::std::declval<P<void>>().get_future())
313 return _makePromiseOutgoing<void, P>(
false,
this, &IceStormElection::ReplicaObserverPrx::_iceI_createTopic, iceP_llu, iceP_name, context);
316 ::std::function<void()>
317 createTopicAsync(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_name,
318 ::std::function<
void()> response,
319 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
320 ::std::function<
void(
bool)> sent =
nullptr,
321 const ::Ice::Context& context = Ice::noExplicitContext)
323 return _makeLamdaOutgoing<void>(response, ex, sent,
this, &IceStormElection::ReplicaObserverPrx::_iceI_createTopic, iceP_llu, iceP_name, context);
326 void _iceI_createTopic(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::IceStormElection::LogUpdate&, const ::std::string&, const ::Ice::Context&);
328 void destroyTopic(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_name, const ::Ice::Context& context = Ice::noExplicitContext)
330 _makePromiseOutgoing<void>(
true,
this, &IceStormElection::ReplicaObserverPrx::_iceI_destroyTopic, iceP_llu, iceP_name, context).get();
333 template<
template<
typename>
class P = ::std::promise>
334 auto destroyTopicAsync(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_name, const ::Ice::Context& context = Ice::noExplicitContext)
335 -> decltype(::std::declval<P<void>>().get_future())
337 return _makePromiseOutgoing<void, P>(
false,
this, &IceStormElection::ReplicaObserverPrx::_iceI_destroyTopic, iceP_llu, iceP_name, context);
340 ::std::function<void()>
341 destroyTopicAsync(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_name,
342 ::std::function<
void()> response,
343 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
344 ::std::function<
void(
bool)> sent =
nullptr,
345 const ::Ice::Context& context = Ice::noExplicitContext)
347 return _makeLamdaOutgoing<void>(response, ex, sent,
this, &IceStormElection::ReplicaObserverPrx::_iceI_destroyTopic, iceP_llu, iceP_name, context);
350 void _iceI_destroyTopic(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::IceStormElection::LogUpdate&, const ::std::string&, const ::Ice::Context&);
352 void addSubscriber(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_topic, const ::IceStorm::SubscriberRecord& iceP_record, const ::Ice::Context& context = Ice::noExplicitContext)
354 _makePromiseOutgoing<void>(
true,
this, &IceStormElection::ReplicaObserverPrx::_iceI_addSubscriber, iceP_llu, iceP_topic, iceP_record, context).get();
357 template<
template<
typename>
class P = ::std::promise>
358 auto addSubscriberAsync(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_topic, const ::IceStorm::SubscriberRecord& iceP_record, const ::Ice::Context& context = Ice::noExplicitContext)
359 -> decltype(::std::declval<P<void>>().get_future())
361 return _makePromiseOutgoing<void, P>(
false,
this, &IceStormElection::ReplicaObserverPrx::_iceI_addSubscriber, iceP_llu, iceP_topic, iceP_record, context);
364 ::std::function<void()>
365 addSubscriberAsync(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_topic, const ::IceStorm::SubscriberRecord& iceP_record,
366 ::std::function<
void()> response,
367 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
368 ::std::function<
void(
bool)> sent =
nullptr,
369 const ::Ice::Context& context = Ice::noExplicitContext)
371 return _makeLamdaOutgoing<void>(response, ex, sent,
this, &IceStormElection::ReplicaObserverPrx::_iceI_addSubscriber, iceP_llu, iceP_topic, iceP_record, context);
374 void _iceI_addSubscriber(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::IceStormElection::LogUpdate&, const ::std::string&, const ::IceStorm::SubscriberRecord&, const ::Ice::Context&);
376 void removeSubscriber(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_topic, const ::Ice::IdentitySeq& iceP_subscribers, const ::Ice::Context& context = Ice::noExplicitContext)
378 _makePromiseOutgoing<void>(
true,
this, &IceStormElection::ReplicaObserverPrx::_iceI_removeSubscriber, iceP_llu, iceP_topic, iceP_subscribers, context).get();
381 template<
template<
typename>
class P = ::std::promise>
382 auto removeSubscriberAsync(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_topic, const ::Ice::IdentitySeq& iceP_subscribers, const ::Ice::Context& context = Ice::noExplicitContext)
383 -> decltype(::std::declval<P<void>>().get_future())
385 return _makePromiseOutgoing<void, P>(
false,
this, &IceStormElection::ReplicaObserverPrx::_iceI_removeSubscriber, iceP_llu, iceP_topic, iceP_subscribers, context);
388 ::std::function<void()>
389 removeSubscriberAsync(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_topic, const ::Ice::IdentitySeq& iceP_subscribers,
390 ::std::function<
void()> response,
391 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
392 ::std::function<
void(
bool)> sent =
nullptr,
393 const ::Ice::Context& context = Ice::noExplicitContext)
395 return _makeLamdaOutgoing<void>(response, ex, sent,
this, &IceStormElection::ReplicaObserverPrx::_iceI_removeSubscriber, iceP_llu, iceP_topic, iceP_subscribers, context);
398 void _iceI_removeSubscriber(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::IceStormElection::LogUpdate&, const ::std::string&, const ::Ice::IdentitySeq&, const ::Ice::Context&);
400 static const ::std::string& ice_staticId();
405 friend ::std::shared_ptr<ReplicaObserverPrx> IceInternal::createProxy<ReplicaObserverPrx>();
407 virtual ::std::shared_ptr<::Ice::ObjectPrx> _newInstance()
const override;
410 class TopicManagerSyncPrx :
public virtual ::Ice::Proxy<TopicManagerSyncPrx, ::Ice::ObjectPrx>
416 auto result = _makePromiseOutgoing<::IceStormElection::TopicManagerSync::GetContentResult>(
true,
this, &IceStormElection::TopicManagerSyncPrx::_iceI_getContent, context).get();
417 iceP_llu = ::std::move(result.llu);
418 iceP_content = ::std::move(result.content);
421 template<
template<
typename>
class P = ::std::promise>
422 auto getContentAsync(const ::Ice::Context& context = Ice::noExplicitContext)
423 -> decltype(::std::declval<P<::IceStormElection::TopicManagerSync::GetContentResult>>().get_future())
425 return _makePromiseOutgoing<::IceStormElection::TopicManagerSync::GetContentResult, P>(
false,
this, &IceStormElection::TopicManagerSyncPrx::_iceI_getContent, context);
428 ::std::function<void()>
430 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
431 ::std::function<
void(
bool)> sent =
nullptr,
432 const ::Ice::Context& context = Ice::noExplicitContext)
434 auto responseCb = [response](::IceStormElection::TopicManagerSync::GetContentResult && result)
436 response(::std::move(result.llu), ::std::move(result.content));
438 return _makeLamdaOutgoing<::IceStormElection::TopicManagerSync::GetContentResult>(responseCb, ex, sent,
this, &IceStormElection::TopicManagerSyncPrx::_iceI_getContent, context);
441 void _iceI_getContent(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::IceStormElection::TopicManagerSync::GetContentResult>>&, const ::Ice::Context&);
443 static const ::std::string& ice_staticId();
448 friend ::std::shared_ptr<TopicManagerSyncPrx> IceInternal::createProxy<TopicManagerSyncPrx>();
450 virtual ::std::shared_ptr<::Ice::ObjectPrx> _newInstance()
const override;
453 class NodePrx :
public virtual ::Ice::Proxy<NodePrx, ::Ice::ObjectPrx>
457 void invitation(
int iceP_j, const ::std::string& iceP_gn, const ::Ice::Context& context = Ice::noExplicitContext)
459 _makePromiseOutgoing<void>(
true,
this, &IceStormElection::NodePrx::_iceI_invitation, iceP_j, iceP_gn, context).get();
462 template<
template<
typename>
class P = ::std::promise>
463 auto invitationAsync(
int iceP_j, const ::std::string& iceP_gn, const ::Ice::Context& context = Ice::noExplicitContext)
464 -> decltype(::std::declval<P<void>>().get_future())
466 return _makePromiseOutgoing<void, P>(
false,
this, &IceStormElection::NodePrx::_iceI_invitation, iceP_j, iceP_gn, context);
469 ::std::function<void()>
470 invitationAsync(
int iceP_j, const ::std::string& iceP_gn,
471 ::std::function<
void()> response,
472 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
473 ::std::function<
void(
bool)> sent =
nullptr,
474 const ::Ice::Context& context = Ice::noExplicitContext)
476 return _makeLamdaOutgoing<void>(response, ex, sent,
this, &IceStormElection::NodePrx::_iceI_invitation, iceP_j, iceP_gn, context);
479 void _iceI_invitation(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&,
int, const ::std::string&, const ::Ice::Context&);
481 void ready(
int iceP_j, const ::std::string& iceP_gn, const ::std::shared_ptr<::Ice::ObjectPrx>& iceP_coordinator,
int iceP_max,
long long int iceP_generation, const ::Ice::Context& context = Ice::noExplicitContext)
483 _makePromiseOutgoing<void>(
true,
this, &IceStormElection::NodePrx::_iceI_ready, iceP_j, iceP_gn, iceP_coordinator, iceP_max, iceP_generation, context).get();
486 template<
template<
typename>
class P = ::std::promise>
487 auto readyAsync(
int iceP_j, const ::std::string& iceP_gn, const ::std::shared_ptr<::Ice::ObjectPrx>& iceP_coordinator,
int iceP_max,
long long int iceP_generation, const ::Ice::Context& context = Ice::noExplicitContext)
488 -> decltype(::std::declval<P<void>>().get_future())
490 return _makePromiseOutgoing<void, P>(
false,
this, &IceStormElection::NodePrx::_iceI_ready, iceP_j, iceP_gn, iceP_coordinator, iceP_max, iceP_generation, context);
493 ::std::function<void()>
494 readyAsync(
int iceP_j, const ::std::string& iceP_gn, const ::std::shared_ptr<::Ice::ObjectPrx>& iceP_coordinator,
int iceP_max,
long long int iceP_generation,
495 ::std::function<
void()> response,
496 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
497 ::std::function<
void(
bool)> sent =
nullptr,
498 const ::Ice::Context& context = Ice::noExplicitContext)
500 return _makeLamdaOutgoing<void>(response, ex, sent,
this, &IceStormElection::NodePrx::_iceI_ready, iceP_j, iceP_gn, iceP_coordinator, iceP_max, iceP_generation, context);
503 void _iceI_ready(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&,
int, const ::std::string&, const ::std::shared_ptr<::Ice::ObjectPrx>&,
int,
long long int, const ::Ice::Context&);
505 void accept(
int iceP_j, const ::std::string& iceP_gn, const ::Ice::IntSeq& iceP_forwardedInvites, const ::std::shared_ptr<::Ice::ObjectPrx>& iceP_observer, const ::IceStormElection::LogUpdate& iceP_llu,
int iceP_max, const ::Ice::Context& context = Ice::noExplicitContext)
507 _makePromiseOutgoing<void>(
true,
this, &IceStormElection::NodePrx::_iceI_accept, iceP_j, iceP_gn, iceP_forwardedInvites, iceP_observer, iceP_llu, iceP_max, context).get();
510 template<
template<
typename>
class P = ::std::promise>
511 auto acceptAsync(
int iceP_j, const ::std::string& iceP_gn, const ::Ice::IntSeq& iceP_forwardedInvites, const ::std::shared_ptr<::Ice::ObjectPrx>& iceP_observer, const ::IceStormElection::LogUpdate& iceP_llu,
int iceP_max, const ::Ice::Context& context = Ice::noExplicitContext)
512 -> decltype(::std::declval<P<void>>().get_future())
514 return _makePromiseOutgoing<void, P>(
false,
this, &IceStormElection::NodePrx::_iceI_accept, iceP_j, iceP_gn, iceP_forwardedInvites, iceP_observer, iceP_llu, iceP_max, context);
517 ::std::function<void()>
518 acceptAsync(
int iceP_j, const ::std::string& iceP_gn, const ::Ice::IntSeq& iceP_forwardedInvites, const ::std::shared_ptr<::Ice::ObjectPrx>& iceP_observer, const ::IceStormElection::LogUpdate& iceP_llu,
int iceP_max,
519 ::std::function<
void()> response,
520 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
521 ::std::function<
void(
bool)> sent =
nullptr,
522 const ::Ice::Context& context = Ice::noExplicitContext)
524 return _makeLamdaOutgoing<void>(response, ex, sent,
this, &IceStormElection::NodePrx::_iceI_accept, iceP_j, iceP_gn, iceP_forwardedInvites, iceP_observer, iceP_llu, iceP_max, context);
527 void _iceI_accept(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&,
int, const ::std::string&, const ::Ice::IntSeq&, const ::std::shared_ptr<::Ice::ObjectPrx>&, const ::IceStormElection::LogUpdate&,
int, const ::Ice::Context&);
529 bool areYouCoordinator(const ::Ice::Context& context = Ice::noExplicitContext)
531 return _makePromiseOutgoing<bool>(
true,
this, &IceStormElection::NodePrx::_iceI_areYouCoordinator, context).get();
534 template<
template<
typename>
class P = ::std::promise>
535 auto areYouCoordinatorAsync(const ::Ice::Context& context = Ice::noExplicitContext)
536 -> decltype(::std::declval<P<bool>>().get_future())
538 return _makePromiseOutgoing<bool, P>(
false,
this, &IceStormElection::NodePrx::_iceI_areYouCoordinator, context);
541 ::std::function<void()>
542 areYouCoordinatorAsync(::std::function<
void(
bool)> response,
543 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
544 ::std::function<
void(
bool)> sent =
nullptr,
545 const ::Ice::Context& context = Ice::noExplicitContext)
547 return _makeLamdaOutgoing<bool>(response, ex, sent,
this, &IceStormElection::NodePrx::_iceI_areYouCoordinator, context);
550 void _iceI_areYouCoordinator(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<bool>>&, const ::Ice::Context&);
552 bool areYouThere(const ::std::string& iceP_gn,
int iceP_j, const ::Ice::Context& context = Ice::noExplicitContext)
554 return _makePromiseOutgoing<bool>(
true,
this, &IceStormElection::NodePrx::_iceI_areYouThere, iceP_gn, iceP_j, context).get();
557 template<
template<
typename>
class P = ::std::promise>
558 auto areYouThereAsync(const ::std::string& iceP_gn,
int iceP_j, const ::Ice::Context& context = Ice::noExplicitContext)
559 -> decltype(::std::declval<P<bool>>().get_future())
561 return _makePromiseOutgoing<bool, P>(
false,
this, &IceStormElection::NodePrx::_iceI_areYouThere, iceP_gn, iceP_j, context);
564 ::std::function<void()>
565 areYouThereAsync(const ::std::string& iceP_gn,
int iceP_j,
566 ::std::function<
void(
bool)> response,
567 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
568 ::std::function<
void(
bool)> sent =
nullptr,
569 const ::Ice::Context& context = Ice::noExplicitContext)
571 return _makeLamdaOutgoing<bool>(response, ex, sent,
this, &IceStormElection::NodePrx::_iceI_areYouThere, iceP_gn, iceP_j, context);
574 void _iceI_areYouThere(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<bool>>&, const ::std::string&,
int, const ::Ice::Context&);
576 ::std::shared_ptr<::Ice::ObjectPrx> sync(const ::Ice::Context& context = Ice::noExplicitContext)
578 return _makePromiseOutgoing<::std::shared_ptr<::Ice::ObjectPrx>>(
true,
this, &IceStormElection::NodePrx::_iceI_sync, context).get();
581 template<
template<
typename>
class P = ::std::promise>
582 auto syncAsync(const ::Ice::Context& context = Ice::noExplicitContext)
583 -> decltype(::std::declval<P<::std::shared_ptr<::Ice::ObjectPrx>>>().get_future())
585 return _makePromiseOutgoing<::std::shared_ptr<::Ice::ObjectPrx>, P>(
false,
this, &IceStormElection::NodePrx::_iceI_sync, context);
588 ::std::function<void()>
589 syncAsync(::std::function<
void(::std::shared_ptr<::Ice::ObjectPrx>)> response,
590 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
591 ::std::function<
void(
bool)> sent =
nullptr,
592 const ::Ice::Context& context = Ice::noExplicitContext)
594 return _makeLamdaOutgoing<::std::shared_ptr<::Ice::ObjectPrx>>(response, ex, sent,
this, &IceStormElection::NodePrx::_iceI_sync, context);
597 void _iceI_sync(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::std::shared_ptr<::Ice::ObjectPrx>>>&, const ::Ice::Context&);
601 return _makePromiseOutgoing<::IceStormElection::NodeInfoSeq>(
true,
this, &IceStormElection::NodePrx::_iceI_nodes, context).get();
604 template<
template<
typename>
class P = ::std::promise>
605 auto nodesAsync(const ::Ice::Context& context = Ice::noExplicitContext)
606 -> decltype(::std::declval<P<::IceStormElection::NodeInfoSeq>>().get_future())
608 return _makePromiseOutgoing<::IceStormElection::NodeInfoSeq, P>(
false,
this, &IceStormElection::NodePrx::_iceI_nodes, context);
611 ::std::function<void()>
613 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
614 ::std::function<
void(
bool)> sent =
nullptr,
615 const ::Ice::Context& context = Ice::noExplicitContext)
617 return _makeLamdaOutgoing<::IceStormElection::NodeInfoSeq>(response, ex, sent,
this, &IceStormElection::NodePrx::_iceI_nodes, context);
620 void _iceI_nodes(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::IceStormElection::NodeInfoSeq>>&, const ::Ice::Context&);
624 return _makePromiseOutgoing<::IceStormElection::QueryInfo>(
true,
this, &IceStormElection::NodePrx::_iceI_query, context).get();
627 template<
template<
typename>
class P = ::std::promise>
628 auto queryAsync(const ::Ice::Context& context = Ice::noExplicitContext)
629 -> decltype(::std::declval<P<::IceStormElection::QueryInfo>>().get_future())
631 return _makePromiseOutgoing<::IceStormElection::QueryInfo, P>(
false,
this, &IceStormElection::NodePrx::_iceI_query, context);
634 ::std::function<void()>
636 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
637 ::std::function<
void(
bool)> sent =
nullptr,
638 const ::Ice::Context& context = Ice::noExplicitContext)
640 return _makeLamdaOutgoing<::IceStormElection::QueryInfo>(response, ex, sent,
this, &IceStormElection::NodePrx::_iceI_query, context);
643 void _iceI_query(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::IceStormElection::QueryInfo>>&, const ::Ice::Context&);
645 static const ::std::string& ice_staticId();
650 friend ::std::shared_ptr<NodePrx> IceInternal::createProxy<NodePrx>();
652 virtual ::std::shared_ptr<::Ice::ObjectPrx> _newInstance()
const override;
663 static const StreamHelperCategory helper = StreamHelperCategoryStruct;
664 static const int minWireSize = 3;
665 static const bool fixedLength =
false;
673 istr->readAll(
v.id,
v.records);
682 istr->readAll(
v.reason);
689 static const StreamHelperCategory helper = StreamHelperCategoryEnum;
690 static const int minValue = 0;
691 static const int maxValue = 3;
692 static const int minWireSize = 1;
693 static const bool fixedLength =
false;
699 static const StreamHelperCategory helper = StreamHelperCategoryStruct;
700 static const int minWireSize = 6;
701 static const bool fixedLength =
false;
709 istr->readAll(
v.id,
v.n);
716 static const StreamHelperCategory helper = StreamHelperCategoryStruct;
717 static const int minWireSize = 20;
718 static const bool fixedLength =
true;
726 istr->readAll(
v.id,
v.llu);
733 static const StreamHelperCategory helper = StreamHelperCategoryStruct;
734 static const int minWireSize = 17;
735 static const bool fixedLength =
false;
743 istr->readAll(
v.id,
v.coord,
v.group,
v.replica,
v.state,
v.up,
v.max);
758 using NodePtr = ::std::shared_ptr<Node>;
759 using NodePrxPtr = ::std::shared_ptr<NodePrx>;
763 #else // C++98 mapping
787 class ReplicaObserver;
790 typedef ::IceInternal::ProxyHandle< ::IceProxy::IceStormElection::ReplicaObserver>
ReplicaObserverPrx;
803 typedef ::IceInternal::Handle< ::IceStormElection::Node>
NodePtr;
804 typedef ::IceInternal::ProxyHandle< ::IceProxy::IceStormElection::Node>
NodePrx;
891 else if (rhs_.id <
id)
899 else if (rhs_.llu < llu)
989 class ReplicaObserver :
public virtual ::Ice::Proxy<ReplicaObserver, ::IceProxy::Ice::Object>
995 end_init(_iceI_begin_init(iceP_llu, iceP_content, context, ::IceInternal::dummyCallback, 0,
true));
1000 return _iceI_begin_init(iceP_llu, iceP_content, context, ::IceInternal::dummyCallback, 0);
1005 return _iceI_begin_init(iceP_llu, iceP_content, ::Ice::noExplicitContext, del, cookie);
1010 return _iceI_begin_init(iceP_llu, iceP_content, context, del, cookie);
1015 return _iceI_begin_init(iceP_llu, iceP_content, ::Ice::noExplicitContext, del, cookie);
1020 return _iceI_begin_init(iceP_llu, iceP_content, context, del, cookie);
1023 void end_init(const ::Ice::AsyncResultPtr&);
1027 ::Ice::AsyncResultPtr _iceI_begin_init(const ::IceStormElection::LogUpdate&,
const ::IceStormElection::TopicContentSeq&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0,
bool sync =
false);
1031 void createTopic(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_name, const ::Ice::Context& context = ::Ice::noExplicitContext)
1033 end_createTopic(_iceI_begin_createTopic(iceP_llu, iceP_name, context, ::IceInternal::dummyCallback, 0,
true));
1036 ::Ice::AsyncResultPtr
begin_createTopic(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_name, const ::Ice::Context& context = ::Ice::noExplicitContext)
1038 return _iceI_begin_createTopic(iceP_llu, iceP_name, context, ::IceInternal::dummyCallback, 0);
1041 ::Ice::AsyncResultPtr
begin_createTopic(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_name, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1043 return _iceI_begin_createTopic(iceP_llu, iceP_name, ::Ice::noExplicitContext, del, cookie);
1046 ::Ice::AsyncResultPtr
begin_createTopic(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_name, const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1048 return _iceI_begin_createTopic(iceP_llu, iceP_name, context, del, cookie);
1053 return _iceI_begin_createTopic(iceP_llu, iceP_name, ::Ice::noExplicitContext, del, cookie);
1058 return _iceI_begin_createTopic(iceP_llu, iceP_name, context, del, cookie);
1061 void end_createTopic(const ::Ice::AsyncResultPtr&);
1065 ::Ice::AsyncResultPtr _iceI_begin_createTopic(const ::IceStormElection::LogUpdate&, const ::std::string&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0,
bool sync =
false);
1069 void destroyTopic(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_name, const ::Ice::Context& context = ::Ice::noExplicitContext)
1071 end_destroyTopic(_iceI_begin_destroyTopic(iceP_llu, iceP_name, context, ::IceInternal::dummyCallback, 0,
true));
1074 ::Ice::AsyncResultPtr
begin_destroyTopic(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_name, const ::Ice::Context& context = ::Ice::noExplicitContext)
1076 return _iceI_begin_destroyTopic(iceP_llu, iceP_name, context, ::IceInternal::dummyCallback, 0);
1079 ::Ice::AsyncResultPtr
begin_destroyTopic(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_name, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1081 return _iceI_begin_destroyTopic(iceP_llu, iceP_name, ::Ice::noExplicitContext, del, cookie);
1084 ::Ice::AsyncResultPtr
begin_destroyTopic(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_name, const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1086 return _iceI_begin_destroyTopic(iceP_llu, iceP_name, context, del, cookie);
1091 return _iceI_begin_destroyTopic(iceP_llu, iceP_name, ::Ice::noExplicitContext, del, cookie);
1096 return _iceI_begin_destroyTopic(iceP_llu, iceP_name, context, del, cookie);
1099 void end_destroyTopic(const ::Ice::AsyncResultPtr&);
1103 ::Ice::AsyncResultPtr _iceI_begin_destroyTopic(const ::IceStormElection::LogUpdate&, const ::std::string&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0,
bool sync =
false);
1107 void addSubscriber(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_topic, const ::IceStorm::SubscriberRecord& iceP_record, const ::Ice::Context& context = ::Ice::noExplicitContext)
1109 end_addSubscriber(_iceI_begin_addSubscriber(iceP_llu, iceP_topic, iceP_record, context, ::IceInternal::dummyCallback, 0,
true));
1112 ::Ice::AsyncResultPtr
begin_addSubscriber(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_topic, const ::IceStorm::SubscriberRecord& iceP_record, const ::Ice::Context& context = ::Ice::noExplicitContext)
1114 return _iceI_begin_addSubscriber(iceP_llu, iceP_topic, iceP_record, context, ::IceInternal::dummyCallback, 0);
1117 ::Ice::AsyncResultPtr
begin_addSubscriber(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_topic, const ::IceStorm::SubscriberRecord& iceP_record, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1119 return _iceI_begin_addSubscriber(iceP_llu, iceP_topic, iceP_record, ::Ice::noExplicitContext, del, cookie);
1122 ::Ice::AsyncResultPtr
begin_addSubscriber(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_topic, const ::IceStorm::SubscriberRecord& iceP_record, const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1124 return _iceI_begin_addSubscriber(iceP_llu, iceP_topic, iceP_record, context, del, cookie);
1129 return _iceI_begin_addSubscriber(iceP_llu, iceP_topic, iceP_record, ::Ice::noExplicitContext, del, cookie);
1134 return _iceI_begin_addSubscriber(iceP_llu, iceP_topic, iceP_record, context, del, cookie);
1137 void end_addSubscriber(const ::Ice::AsyncResultPtr&);
1141 ::Ice::AsyncResultPtr _iceI_begin_addSubscriber(const ::IceStormElection::LogUpdate&, const ::std::string&, const ::IceStorm::SubscriberRecord&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0,
bool sync =
false);
1145 void removeSubscriber(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_topic, const ::Ice::IdentitySeq& iceP_subscribers, const ::Ice::Context& context = ::Ice::noExplicitContext)
1147 end_removeSubscriber(_iceI_begin_removeSubscriber(iceP_llu, iceP_topic, iceP_subscribers, context, ::IceInternal::dummyCallback, 0,
true));
1150 ::Ice::AsyncResultPtr
begin_removeSubscriber(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_topic, const ::Ice::IdentitySeq& iceP_subscribers, const ::Ice::Context& context = ::Ice::noExplicitContext)
1152 return _iceI_begin_removeSubscriber(iceP_llu, iceP_topic, iceP_subscribers, context, ::IceInternal::dummyCallback, 0);
1155 ::Ice::AsyncResultPtr
begin_removeSubscriber(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_topic, const ::Ice::IdentitySeq& iceP_subscribers, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1157 return _iceI_begin_removeSubscriber(iceP_llu, iceP_topic, iceP_subscribers, ::Ice::noExplicitContext, del, cookie);
1160 ::Ice::AsyncResultPtr
begin_removeSubscriber(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_topic, const ::Ice::IdentitySeq& iceP_subscribers, const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1162 return _iceI_begin_removeSubscriber(iceP_llu, iceP_topic, iceP_subscribers, context, del, cookie);
1167 return _iceI_begin_removeSubscriber(iceP_llu, iceP_topic, iceP_subscribers, ::Ice::noExplicitContext, del, cookie);
1172 return _iceI_begin_removeSubscriber(iceP_llu, iceP_topic, iceP_subscribers, context, del, cookie);
1175 void end_removeSubscriber(const ::Ice::AsyncResultPtr&);
1179 ::Ice::AsyncResultPtr _iceI_begin_removeSubscriber(const ::IceStormElection::LogUpdate&, const ::std::string&, const ::Ice::IdentitySeq&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0,
bool sync =
false);
1183 static const ::std::string& ice_staticId();
1187 virtual ::IceProxy::Ice::Object* _newInstance()
const;
1190 class TopicManagerSync :
public virtual ::Ice::Proxy<TopicManagerSync, ::IceProxy::Ice::Object>
1196 end_getContent(iceP_llu, iceP_content, _iceI_begin_getContent(context, ::IceInternal::dummyCallback, 0,
true));
1199 ::Ice::AsyncResultPtr
begin_getContent(const ::Ice::Context& context = ::Ice::noExplicitContext)
1201 return _iceI_begin_getContent(context, ::IceInternal::dummyCallback, 0);
1204 ::Ice::AsyncResultPtr
begin_getContent(const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1206 return _iceI_begin_getContent(::Ice::noExplicitContext, del, cookie);
1209 ::Ice::AsyncResultPtr
begin_getContent(const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1211 return _iceI_begin_getContent(context, del, cookie);
1216 return _iceI_begin_getContent(::Ice::noExplicitContext, del, cookie);
1221 return _iceI_begin_getContent(context, del, cookie);
1228 ::Ice::AsyncResultPtr _iceI_begin_getContent(const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0,
bool sync =
false);
1232 static const ::std::string& ice_staticId();
1236 virtual ::IceProxy::Ice::Object* _newInstance()
const;
1239 class Node :
public virtual ::Ice::Proxy<Node, ::IceProxy::Ice::Object>
1243 void invitation(::
Ice::Int iceP_j, const ::std::string& iceP_gn, const ::Ice::Context& context = ::Ice::noExplicitContext)
1245 end_invitation(_iceI_begin_invitation(iceP_j, iceP_gn, context, ::IceInternal::dummyCallback, 0,
true));
1248 ::Ice::AsyncResultPtr
begin_invitation(::
Ice::Int iceP_j, const ::std::string& iceP_gn, const ::Ice::Context& context = ::Ice::noExplicitContext)
1250 return _iceI_begin_invitation(iceP_j, iceP_gn, context, ::IceInternal::dummyCallback, 0);
1253 ::Ice::AsyncResultPtr
begin_invitation(::
Ice::Int iceP_j, const ::std::string& iceP_gn, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1255 return _iceI_begin_invitation(iceP_j, iceP_gn, ::Ice::noExplicitContext, del, cookie);
1258 ::Ice::AsyncResultPtr
begin_invitation(::
Ice::Int iceP_j, const ::std::string& iceP_gn, const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1260 return _iceI_begin_invitation(iceP_j, iceP_gn, context, del, cookie);
1265 return _iceI_begin_invitation(iceP_j, iceP_gn, ::Ice::noExplicitContext, del, cookie);
1270 return _iceI_begin_invitation(iceP_j, iceP_gn, context, del, cookie);
1273 void end_invitation(const ::Ice::AsyncResultPtr&);
1277 ::Ice::AsyncResultPtr _iceI_begin_invitation(::
Ice::Int, const ::std::string&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0,
bool sync =
false);
1281 void ready(::
Ice::Int iceP_j, const ::std::string& iceP_gn, const ::Ice::ObjectPrx& iceP_coordinator, ::
Ice::Int iceP_max, ::
Ice::Long iceP_generation, const ::Ice::Context& context = ::Ice::noExplicitContext)
1283 end_ready(_iceI_begin_ready(iceP_j, iceP_gn, iceP_coordinator, iceP_max, iceP_generation, context, ::IceInternal::dummyCallback, 0,
true));
1286 ::Ice::AsyncResultPtr
begin_ready(::
Ice::Int iceP_j, const ::std::string& iceP_gn, const ::Ice::ObjectPrx& iceP_coordinator, ::
Ice::Int iceP_max, ::
Ice::Long iceP_generation, const ::Ice::Context& context = ::Ice::noExplicitContext)
1288 return _iceI_begin_ready(iceP_j, iceP_gn, iceP_coordinator, iceP_max, iceP_generation, context, ::IceInternal::dummyCallback, 0);
1291 ::Ice::AsyncResultPtr
begin_ready(::
Ice::Int iceP_j, const ::std::string& iceP_gn, const ::Ice::ObjectPrx& iceP_coordinator, ::
Ice::Int iceP_max, ::
Ice::Long iceP_generation, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1293 return _iceI_begin_ready(iceP_j, iceP_gn, iceP_coordinator, iceP_max, iceP_generation, ::Ice::noExplicitContext, del, cookie);
1296 ::Ice::AsyncResultPtr
begin_ready(::
Ice::Int iceP_j, const ::std::string& iceP_gn, const ::Ice::ObjectPrx& iceP_coordinator, ::
Ice::Int iceP_max, ::
Ice::Long iceP_generation, const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1298 return _iceI_begin_ready(iceP_j, iceP_gn, iceP_coordinator, iceP_max, iceP_generation, context, del, cookie);
1303 return _iceI_begin_ready(iceP_j, iceP_gn, iceP_coordinator, iceP_max, iceP_generation, ::Ice::noExplicitContext, del, cookie);
1308 return _iceI_begin_ready(iceP_j, iceP_gn, iceP_coordinator, iceP_max, iceP_generation, context, del, cookie);
1311 void end_ready(const ::Ice::AsyncResultPtr&);
1315 ::Ice::AsyncResultPtr _iceI_begin_ready(::
Ice::Int, const ::std::string&, const ::Ice::ObjectPrx&, ::
Ice::Int, ::
Ice::Long, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0,
bool sync =
false);
1319 void accept(::
Ice::Int iceP_j, const ::std::string& iceP_gn, const ::Ice::IntSeq& iceP_forwardedInvites, const ::Ice::ObjectPrx& iceP_observer, const ::IceStormElection::LogUpdate& iceP_llu, ::
Ice::Int iceP_max, const ::Ice::Context& context = ::Ice::noExplicitContext)
1321 end_accept(_iceI_begin_accept(iceP_j, iceP_gn, iceP_forwardedInvites, iceP_observer, iceP_llu, iceP_max, context, ::IceInternal::dummyCallback, 0,
true));
1324 ::Ice::AsyncResultPtr
begin_accept(::
Ice::Int iceP_j, const ::std::string& iceP_gn, const ::Ice::IntSeq& iceP_forwardedInvites, const ::Ice::ObjectPrx& iceP_observer, const ::IceStormElection::LogUpdate& iceP_llu, ::
Ice::Int iceP_max, const ::Ice::Context& context = ::Ice::noExplicitContext)
1326 return _iceI_begin_accept(iceP_j, iceP_gn, iceP_forwardedInvites, iceP_observer, iceP_llu, iceP_max, context, ::IceInternal::dummyCallback, 0);
1329 ::Ice::AsyncResultPtr
begin_accept(::
Ice::Int iceP_j, const ::std::string& iceP_gn, const ::Ice::IntSeq& iceP_forwardedInvites, const ::Ice::ObjectPrx& iceP_observer, const ::IceStormElection::LogUpdate& iceP_llu, ::
Ice::Int iceP_max, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1331 return _iceI_begin_accept(iceP_j, iceP_gn, iceP_forwardedInvites, iceP_observer, iceP_llu, iceP_max, ::Ice::noExplicitContext, del, cookie);
1334 ::Ice::AsyncResultPtr
begin_accept(::
Ice::Int iceP_j, const ::std::string& iceP_gn, const ::Ice::IntSeq& iceP_forwardedInvites, const ::Ice::ObjectPrx& iceP_observer, const ::IceStormElection::LogUpdate& iceP_llu, ::
Ice::Int iceP_max, const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1336 return _iceI_begin_accept(iceP_j, iceP_gn, iceP_forwardedInvites, iceP_observer, iceP_llu, iceP_max, context, del, cookie);
1341 return _iceI_begin_accept(iceP_j, iceP_gn, iceP_forwardedInvites, iceP_observer, iceP_llu, iceP_max, ::Ice::noExplicitContext, del, cookie);
1346 return _iceI_begin_accept(iceP_j, iceP_gn, iceP_forwardedInvites, iceP_observer, iceP_llu, iceP_max, context, del, cookie);
1349 void end_accept(const ::Ice::AsyncResultPtr&);
1353 ::Ice::AsyncResultPtr _iceI_begin_accept(::
Ice::Int, const ::std::string&, const ::Ice::IntSeq&, const ::Ice::ObjectPrx&, const ::IceStormElection::LogUpdate&, ::
Ice::Int, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0,
bool sync =
false);
1359 return end_areYouCoordinator(_iceI_begin_areYouCoordinator(context, ::IceInternal::dummyCallback, 0,
true));
1364 return _iceI_begin_areYouCoordinator(context, ::IceInternal::dummyCallback, 0);
1369 return _iceI_begin_areYouCoordinator(::Ice::noExplicitContext, del, cookie);
1372 ::Ice::AsyncResultPtr
begin_areYouCoordinator(const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1374 return _iceI_begin_areYouCoordinator(context, del, cookie);
1379 return _iceI_begin_areYouCoordinator(::Ice::noExplicitContext, del, cookie);
1384 return _iceI_begin_areYouCoordinator(context, del, cookie);
1387 bool end_areYouCoordinator(const ::Ice::AsyncResultPtr&);
1391 ::Ice::AsyncResultPtr _iceI_begin_areYouCoordinator(const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0,
bool sync =
false);
1395 bool areYouThere(const ::std::string& iceP_gn, ::
Ice::Int iceP_j, const ::Ice::Context& context = ::Ice::noExplicitContext)
1397 return end_areYouThere(_iceI_begin_areYouThere(iceP_gn, iceP_j, context, ::IceInternal::dummyCallback, 0,
true));
1400 ::Ice::AsyncResultPtr
begin_areYouThere(const ::std::string& iceP_gn, ::
Ice::Int iceP_j, const ::Ice::Context& context = ::Ice::noExplicitContext)
1402 return _iceI_begin_areYouThere(iceP_gn, iceP_j, context, ::IceInternal::dummyCallback, 0);
1405 ::Ice::AsyncResultPtr
begin_areYouThere(const ::std::string& iceP_gn, ::
Ice::Int iceP_j, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1407 return _iceI_begin_areYouThere(iceP_gn, iceP_j, ::Ice::noExplicitContext, del, cookie);
1410 ::Ice::AsyncResultPtr
begin_areYouThere(const ::std::string& iceP_gn, ::
Ice::Int iceP_j, const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1412 return _iceI_begin_areYouThere(iceP_gn, iceP_j, context, del, cookie);
1417 return _iceI_begin_areYouThere(iceP_gn, iceP_j, ::Ice::noExplicitContext, del, cookie);
1422 return _iceI_begin_areYouThere(iceP_gn, iceP_j, context, del, cookie);
1425 bool end_areYouThere(const ::Ice::AsyncResultPtr&);
1429 ::Ice::AsyncResultPtr _iceI_begin_areYouThere(const ::std::string&, ::
Ice::Int, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0,
bool sync =
false);
1433 ::Ice::ObjectPrx
sync(const ::Ice::Context& context = ::Ice::noExplicitContext)
1435 return end_sync(_iceI_begin_sync(context, ::IceInternal::dummyCallback, 0,
true));
1438 ::Ice::AsyncResultPtr
begin_sync(const ::Ice::Context& context = ::Ice::noExplicitContext)
1440 return _iceI_begin_sync(context, ::IceInternal::dummyCallback, 0);
1443 ::Ice::AsyncResultPtr
begin_sync(const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1445 return _iceI_begin_sync(::Ice::noExplicitContext, del, cookie);
1448 ::Ice::AsyncResultPtr
begin_sync(const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1450 return _iceI_begin_sync(context, del, cookie);
1455 return _iceI_begin_sync(::Ice::noExplicitContext, del, cookie);
1460 return _iceI_begin_sync(context, del, cookie);
1463 ::Ice::ObjectPrx end_sync(const ::Ice::AsyncResultPtr&);
1467 ::Ice::AsyncResultPtr _iceI_begin_sync(const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0,
bool sync =
false);
1473 return end_nodes(_iceI_begin_nodes(context, ::IceInternal::dummyCallback, 0,
true));
1476 ::Ice::AsyncResultPtr
begin_nodes(const ::Ice::Context& context = ::Ice::noExplicitContext)
1478 return _iceI_begin_nodes(context, ::IceInternal::dummyCallback, 0);
1481 ::Ice::AsyncResultPtr
begin_nodes(const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1483 return _iceI_begin_nodes(::Ice::noExplicitContext, del, cookie);
1486 ::Ice::AsyncResultPtr
begin_nodes(const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1488 return _iceI_begin_nodes(context, del, cookie);
1493 return _iceI_begin_nodes(::Ice::noExplicitContext, del, cookie);
1498 return _iceI_begin_nodes(context, del, cookie);
1505 ::Ice::AsyncResultPtr _iceI_begin_nodes(const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0,
bool sync =
false);
1511 return end_query(_iceI_begin_query(context, ::IceInternal::dummyCallback, 0,
true));
1514 ::Ice::AsyncResultPtr
begin_query(const ::Ice::Context& context = ::Ice::noExplicitContext)
1516 return _iceI_begin_query(context, ::IceInternal::dummyCallback, 0);
1519 ::Ice::AsyncResultPtr
begin_query(const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1521 return _iceI_begin_query(::Ice::noExplicitContext, del, cookie);
1524 ::Ice::AsyncResultPtr
begin_query(const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
1526 return _iceI_begin_query(context, del, cookie);
1531 return _iceI_begin_query(::Ice::noExplicitContext, del, cookie);
1536 return _iceI_begin_query(context, del, cookie);
1543 ::Ice::AsyncResultPtr _iceI_begin_query(const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0,
bool sync =
false);
1547 static const ::std::string& ice_staticId();
1551 virtual ::IceProxy::Ice::Object* _newInstance()
const;
1561 class ReplicaObserver :
public virtual ::Ice::Object
1570 virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::emptyCurrent)
const;
1571 virtual ::std::vector< ::std::string>
ice_ids(const ::Ice::Current& = ::Ice::emptyCurrent)
const;
1572 virtual const ::std::string&
ice_id(const ::Ice::Current& = ::Ice::emptyCurrent)
const;
1577 bool _iceD_init(::IceInternal::Incoming&, const ::Ice::Current&);
1579 virtual void createTopic(const ::IceStormElection::LogUpdate&, const ::std::string&, const ::Ice::Current& = ::Ice::emptyCurrent) = 0;
1582 virtual void destroyTopic(const ::IceStormElection::LogUpdate&, const ::std::string&, const ::Ice::Current& = ::Ice::emptyCurrent) = 0;
1585 virtual void addSubscriber(const ::IceStormElection::LogUpdate&, const ::std::string&, const ::IceStorm::SubscriberRecord&, const ::Ice::Current& = ::Ice::emptyCurrent) = 0;
1588 virtual void removeSubscriber(const ::IceStormElection::LogUpdate&, const ::std::string&, const ::Ice::IdentitySeq&, const ::Ice::Current& = ::Ice::emptyCurrent) = 0;
1591 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&);
1601 return static_cast<const ::Ice::Object&
>(lhs) ==
static_cast<const ::Ice::Object&
>(rhs);
1606 return static_cast<const ::Ice::Object&
>(lhs) <
static_cast<const ::Ice::Object&
>(rhs);
1609 class TopicManagerSync :
public virtual ::Ice::Object
1618 virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::emptyCurrent)
const;
1619 virtual ::std::vector< ::std::string>
ice_ids(const ::Ice::Current& = ::Ice::emptyCurrent)
const;
1620 virtual const ::std::string&
ice_id(const ::Ice::Current& = ::Ice::emptyCurrent)
const;
1627 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&);
1637 return static_cast<const ::Ice::Object&
>(lhs) ==
static_cast<const ::Ice::Object&
>(rhs);
1642 return static_cast<const ::Ice::Object&
>(lhs) <
static_cast<const ::Ice::Object&
>(rhs);
1645 class Node :
public virtual ::Ice::Object
1654 virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::emptyCurrent)
const;
1655 virtual ::std::vector< ::std::string>
ice_ids(const ::Ice::Current& = ::Ice::emptyCurrent)
const;
1656 virtual const ::std::string&
ice_id(const ::Ice::Current& = ::Ice::emptyCurrent)
const;
1660 virtual void invitation(::
Ice::Int, const ::std::string&, const ::Ice::Current& = ::Ice::emptyCurrent) = 0;
1663 virtual void ready(::
Ice::Int, const ::std::string&, const ::Ice::ObjectPrx&, ::
Ice::Int, ::
Ice::Long, const ::Ice::Current& = ::Ice::emptyCurrent) = 0;
1664 bool _iceD_ready(::IceInternal::Incoming&, const ::Ice::Current&);
1666 virtual void accept(::
Ice::Int, const ::std::string&, const ::Ice::IntSeq&, const ::Ice::ObjectPrx&, const ::IceStormElection::LogUpdate&, ::
Ice::Int, const ::Ice::Current& = ::Ice::emptyCurrent) = 0;
1667 bool _iceD_accept(::IceInternal::Incoming&, const ::Ice::Current&);
1669 virtual bool areYouCoordinator(const ::Ice::Current& = ::Ice::emptyCurrent)
const = 0;
1672 virtual bool areYouThere(const ::std::string&, ::
Ice::Int, const ::Ice::Current& = ::Ice::emptyCurrent)
const = 0;
1675 virtual ::Ice::ObjectPrx
sync(const ::Ice::Current& = ::Ice::emptyCurrent)
const = 0;
1676 bool _iceD_sync(::IceInternal::Incoming&, const ::Ice::Current&)
const;
1679 bool _iceD_nodes(::IceInternal::Incoming&, const ::Ice::Current&)
const;
1681 virtual ::IceStormElection::QueryInfo
query(const ::Ice::Current& = ::Ice::emptyCurrent)
const = 0;
1682 bool _iceD_query(::IceInternal::Incoming&, const ::Ice::Current&)
const;
1684 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&);
1694 return static_cast<const ::Ice::Object&
>(lhs) ==
static_cast<const ::Ice::Object&
>(rhs);
1699 return static_cast<const ::Ice::Object&
>(lhs) <
static_cast<const ::Ice::Object&
>(rhs);
1710 static const StreamHelperCategory helper = StreamHelperCategoryStruct;
1711 static const int minWireSize = 3;
1712 static const bool fixedLength =
false;
1715 template<
typename S>
1718 static void write(S* ostr, const ::IceStormElection::TopicContent&
v)
1721 ostr->write(
v.records);
1725 template<
typename S>
1731 istr->read(
v.records);
1738 static const StreamHelperCategory helper = StreamHelperCategoryUserException;
1741 template<
typename S>
1744 static void write(S* ostr, const ::IceStormElection::ObserverInconsistencyException&
v)
1746 ostr->write(
v.reason);
1750 template<
typename S>
1755 istr->read(
v.reason);
1762 static const StreamHelperCategory helper = StreamHelperCategoryEnum;
1763 static const int minValue = 0;
1764 static const int maxValue = 3;
1765 static const int minWireSize = 1;
1766 static const bool fixedLength =
false;
1772 static const StreamHelperCategory helper = StreamHelperCategoryStruct;
1773 static const int minWireSize = 6;
1774 static const bool fixedLength =
false;
1777 template<
typename S>
1780 static void write(S* ostr, const ::IceStormElection::NodeInfo&
v)
1787 template<
typename S>
1800 static const StreamHelperCategory helper = StreamHelperCategoryStruct;
1801 static const int minWireSize = 20;
1802 static const bool fixedLength =
true;
1805 template<
typename S>
1808 static void write(S* ostr, const ::IceStormElection::GroupInfo&
v)
1815 template<
typename S>
1828 static const StreamHelperCategory helper = StreamHelperCategoryStruct;
1829 static const int minWireSize = 17;
1830 static const bool fixedLength =
false;
1833 template<
typename S>
1836 static void write(S* ostr, const ::IceStormElection::QueryInfo&
v)
1839 ostr->write(
v.coord);
1840 ostr->write(
v.group);
1841 ostr->write(
v.replica);
1842 ostr->write(
v.state);
1848 template<
typename S>
1854 istr->read(
v.coord);
1855 istr->read(
v.group);
1856 istr->read(
v.replica);
1857 istr->read(
v.state);
1880 : ::
IceInternal::TwowayCallbackNC<
T>(obj, cb != 0, excb, sentcb), _response(cb)
1884 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
1889 proxy->end_init(result);
1891 catch (const ::Ice::Exception& ex)
1893 ::IceInternal::CallbackNC<T>::exception(result, ex);
1898 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)();
1931 template<
class T,
typename CT>
1938 typedef void (
T::*
Exception)(const ::Ice::Exception&,
const CT&);
1939 typedef void (
T::*
Sent)(bool,
const CT&);
1943 : ::
IceInternal::TwowayCallback<
T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
1947 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
1952 proxy->end_init(result);
1954 catch (const ::Ice::Exception& ex)
1956 ::IceInternal::Callback<T, CT>::exception(result, ex);
1961 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(CT::dynamicCast(result->getCookie()));
2006 : ::
IceInternal::TwowayCallbackNC<
T>(obj, cb != 0, excb, sentcb), _response(cb)
2010 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2015 proxy->end_createTopic(result);
2017 catch (const ::Ice::Exception& ex)
2019 ::IceInternal::CallbackNC<T>::exception(result, ex);
2024 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)();
2057 template<
class T,
typename CT>
2064 typedef void (
T::*
Exception)(const ::Ice::Exception&,
const CT&);
2065 typedef void (
T::*
Sent)(bool,
const CT&);
2069 : ::
IceInternal::TwowayCallback<
T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
2073 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2078 proxy->end_createTopic(result);
2080 catch (const ::Ice::Exception& ex)
2082 ::IceInternal::Callback<T, CT>::exception(result, ex);
2087 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(CT::dynamicCast(result->getCookie()));
2132 : ::
IceInternal::TwowayCallbackNC<
T>(obj, cb != 0, excb, sentcb), _response(cb)
2136 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2141 proxy->end_destroyTopic(result);
2143 catch (const ::Ice::Exception& ex)
2145 ::IceInternal::CallbackNC<T>::exception(result, ex);
2150 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)();
2183 template<
class T,
typename CT>
2190 typedef void (
T::*
Exception)(const ::Ice::Exception&,
const CT&);
2191 typedef void (
T::*
Sent)(bool,
const CT&);
2195 : ::
IceInternal::TwowayCallback<
T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
2199 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2204 proxy->end_destroyTopic(result);
2206 catch (const ::Ice::Exception& ex)
2208 ::IceInternal::Callback<T, CT>::exception(result, ex);
2213 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(CT::dynamicCast(result->getCookie()));
2258 : ::
IceInternal::TwowayCallbackNC<
T>(obj, cb != 0, excb, sentcb), _response(cb)
2262 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2267 proxy->end_addSubscriber(result);
2269 catch (const ::Ice::Exception& ex)
2271 ::IceInternal::CallbackNC<T>::exception(result, ex);
2276 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)();
2309 template<
class T,
typename CT>
2316 typedef void (
T::*
Exception)(const ::Ice::Exception&,
const CT&);
2317 typedef void (
T::*
Sent)(bool,
const CT&);
2321 : ::
IceInternal::TwowayCallback<
T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
2325 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2330 proxy->end_addSubscriber(result);
2332 catch (const ::Ice::Exception& ex)
2334 ::IceInternal::Callback<T, CT>::exception(result, ex);
2339 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(CT::dynamicCast(result->getCookie()));
2384 : ::
IceInternal::TwowayCallbackNC<
T>(obj, cb != 0, excb, sentcb), _response(cb)
2388 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2393 proxy->end_removeSubscriber(result);
2395 catch (const ::Ice::Exception& ex)
2397 ::IceInternal::CallbackNC<T>::exception(result, ex);
2402 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)();
2435 template<
class T,
typename CT>
2442 typedef void (
T::*
Exception)(const ::Ice::Exception&,
const CT&);
2443 typedef void (
T::*
Sent)(bool,
const CT&);
2447 : ::
IceInternal::TwowayCallback<
T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
2451 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2456 proxy->end_removeSubscriber(result);
2458 catch (const ::Ice::Exception& ex)
2460 ::IceInternal::Callback<T, CT>::exception(result, ex);
2465 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(CT::dynamicCast(result->getCookie()));
2510 : ::
IceInternal::TwowayCallbackNC<
T>(obj, cb != 0, excb, sentcb), _response(cb)
2514 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2521 proxy->end_getContent(iceP_llu, iceP_content, result);
2523 catch (const ::Ice::Exception& ex)
2525 ::IceInternal::CallbackNC<T>::exception(result, ex);
2530 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(iceP_llu, iceP_content);
2551 template<
class T,
typename CT>
2558 typedef void (
T::*
Exception)(const ::Ice::Exception&,
const CT&);
2559 typedef void (
T::*
Sent)(bool,
const CT&);
2563 : ::
IceInternal::TwowayCallback<
T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
2567 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2574 proxy->end_getContent(iceP_llu, iceP_content, result);
2576 catch (const ::Ice::Exception& ex)
2578 ::IceInternal::Callback<T, CT>::exception(result, ex);
2583 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(iceP_llu, iceP_content, CT::dynamicCast(result->getCookie()));
2616 : ::
IceInternal::OnewayCallbackNC<
T>(obj, cb, excb, sentcb)
2645 template<
class T,
typename CT>
2652 typedef void (
T::*
Exception)(const ::Ice::Exception&,
const CT&);
2653 typedef void (
T::*
Sent)(bool,
const CT&);
2657 : ::
IceInternal::OnewayCallback<
T, CT>(obj, cb, excb, sentcb)
2698 : ::
IceInternal::OnewayCallbackNC<
T>(obj, cb, excb, sentcb)
2727 template<
class T,
typename CT>
2734 typedef void (
T::*
Exception)(const ::Ice::Exception&,
const CT&);
2735 typedef void (
T::*
Sent)(bool,
const CT&);
2739 : ::
IceInternal::OnewayCallback<
T, CT>(obj, cb, excb, sentcb)
2757 newCallback_Node_ready(
T* instance,
void (
T::*cb)(
const CT&),
void (
T::*excb)(const ::Ice::Exception&,
const CT&),
void (
T::*sentcb)(
bool,
const CT&) = 0)
2780 : ::
IceInternal::OnewayCallbackNC<
T>(obj, cb, excb, sentcb)
2809 template<
class T,
typename CT>
2816 typedef void (
T::*
Exception)(const ::Ice::Exception&,
const CT&);
2817 typedef void (
T::*
Sent)(bool,
const CT&);
2821 : ::
IceInternal::OnewayCallback<
T, CT>(obj, cb, excb, sentcb)
2839 newCallback_Node_accept(
T* instance,
void (
T::*cb)(
const CT&),
void (
T::*excb)(const ::Ice::Exception&,
const CT&),
void (
T::*sentcb)(
bool,
const CT&) = 0)
2862 : ::
IceInternal::TwowayCallbackNC<
T>(obj, cb != 0, excb, sentcb), _response(cb)
2866 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2872 ret = proxy->end_areYouCoordinator(result);
2874 catch (const ::Ice::Exception& ex)
2876 ::IceInternal::CallbackNC<T>::exception(result, ex);
2881 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(
ret);
2902 template<
class T,
typename CT>
2909 typedef void (
T::*
Exception)(const ::Ice::Exception&,
const CT&);
2910 typedef void (
T::*
Sent)(bool,
const CT&);
2914 : ::
IceInternal::TwowayCallback<
T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
2918 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2924 ret = proxy->end_areYouCoordinator(result);
2926 catch (const ::Ice::Exception& ex)
2928 ::IceInternal::Callback<T, CT>::exception(result, ex);
2933 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(
ret, CT::dynamicCast(result->getCookie()));
2966 : ::
IceInternal::TwowayCallbackNC<
T>(obj, cb != 0, excb, sentcb), _response(cb)
2970 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2976 ret = proxy->end_areYouThere(result);
2978 catch (const ::Ice::Exception& ex)
2980 ::IceInternal::CallbackNC<T>::exception(result, ex);
2985 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(
ret);
3006 template<
class T,
typename CT>
3013 typedef void (
T::*
Exception)(const ::Ice::Exception&,
const CT&);
3014 typedef void (
T::*
Sent)(bool,
const CT&);
3018 : ::
IceInternal::TwowayCallback<
T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
3022 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
3028 ret = proxy->end_areYouThere(result);
3030 catch (const ::Ice::Exception& ex)
3032 ::IceInternal::Callback<T, CT>::exception(result, ex);
3037 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(
ret, CT::dynamicCast(result->getCookie()));
3070 : ::
IceInternal::TwowayCallbackNC<
T>(obj, cb != 0, excb, sentcb), _response(cb)
3074 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
3077 ::Ice::ObjectPrx
ret;
3080 ret = proxy->end_sync(result);
3082 catch (const ::Ice::Exception& ex)
3084 ::IceInternal::CallbackNC<T>::exception(result, ex);
3089 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(
ret);
3105 newCallback_Node_sync(
T* instance,
void (
T::*cb)(const ::Ice::ObjectPrx&),
void (
T::*excb)(const ::Ice::Exception&),
void (
T::*sentcb)(
bool) = 0)
3110 template<
class T,
typename CT>
3117 typedef void (
T::*
Exception)(const ::Ice::Exception&,
const CT&);
3118 typedef void (
T::*
Sent)(bool,
const CT&);
3119 typedef void (
T::*
Response)(const ::Ice::ObjectPrx&,
const CT&);
3122 : ::
IceInternal::TwowayCallback<
T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
3126 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
3129 ::Ice::ObjectPrx
ret;
3132 ret = proxy->end_sync(result);
3134 catch (const ::Ice::Exception& ex)
3136 ::IceInternal::Callback<T, CT>::exception(result, ex);
3141 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(
ret, CT::dynamicCast(result->getCookie()));
3157 newCallback_Node_sync(
T* instance,
void (
T::*cb)(const ::Ice::ObjectPrx&,
const CT&),
void (
T::*excb)(const ::Ice::Exception&,
const CT&),
void (
T::*sentcb)(
bool,
const CT&) = 0)
3174 : ::
IceInternal::TwowayCallbackNC<
T>(obj, cb != 0, excb, sentcb), _response(cb)
3178 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
3184 ret = proxy->end_nodes(result);
3186 catch (const ::Ice::Exception& ex)
3188 ::IceInternal::CallbackNC<T>::exception(result, ex);
3193 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(
ret);
3214 template<
class T,
typename CT>
3221 typedef void (
T::*
Exception)(const ::Ice::Exception&,
const CT&);
3222 typedef void (
T::*
Sent)(bool,
const CT&);
3226 : ::
IceInternal::TwowayCallback<
T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
3230 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
3236 ret = proxy->end_nodes(result);
3238 catch (const ::Ice::Exception& ex)
3240 ::IceInternal::Callback<T, CT>::exception(result, ex);
3245 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(
ret, CT::dynamicCast(result->getCookie()));
3275 typedef void (
T::*
Response)(const ::IceStormElection::QueryInfo&);
3278 : ::
IceInternal::TwowayCallbackNC<
T>(obj, cb != 0, excb, sentcb), _response(cb)
3282 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
3288 ret = proxy->end_query(result);
3290 catch (const ::Ice::Exception& ex)
3292 ::IceInternal::CallbackNC<T>::exception(result, ex);
3297 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(
ret);
3313 newCallback_Node_query(
T* instance,
void (
T::*cb)(const ::IceStormElection::QueryInfo&),
void (
T::*excb)(const ::Ice::Exception&),
void (
T::*sentcb)(
bool) = 0)
3318 template<
class T,
typename CT>
3325 typedef void (
T::*
Exception)(const ::Ice::Exception&,
const CT&);
3326 typedef void (
T::*
Sent)(bool,
const CT&);
3327 typedef void (
T::*
Response)(const ::IceStormElection::QueryInfo&,
const CT&);
3330 : ::
IceInternal::TwowayCallback<
T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
3334 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
3340 ret = proxy->end_query(result);
3342 catch (const ::Ice::Exception& ex)
3344 ::IceInternal::Callback<T, CT>::exception(result, ex);
3349 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(
ret, CT::dynamicCast(result->getCookie()));
3365 newCallback_Node_query(
T* instance,
void (
T::*cb)(const ::IceStormElection::QueryInfo&,
const CT&),
void (
T::*excb)(const ::Ice::Exception&,
const CT&),
void (
T::*sentcb)(
bool,
const CT&) = 0)
3374 #include <IceUtil/PopDisableWarnings.h>