22 #include <IceUtil/PushDisableWarnings.h>
23 #include <Ice/LocalException.h>
24 #include <Ice/ValueFactory.h>
25 #include <Ice/OutgoingAsync.h>
26 #include <Ice/InputStream.h>
27 #include <Ice/OutputStream.h>
28 #include <Ice/LocalException.h>
29 #include <IceUtil/PopDisableWarnings.h>
32 # pragma warning(disable:4458) // declaration of ... hides class member
33 #elif defined(__clang__)
34 # pragma clang diagnostic ignored "-Wshadow"
35 #elif defined(__GNUC__)
36 # pragma GCC diagnostic ignored "-Wshadow"
39 #ifndef ICE_IGNORE_VERSION
40 # if ICE_INT_VERSION / 100 != 307
41 # error Ice version mismatch!
43 # if ICE_INT_VERSION % 100 > 50
44 # error Beta header file detected
46 # if ICE_INT_VERSION % 100 < 0
47 # error Ice patch level mismatch!
51 #ifdef ICE_CPP11_MAPPING // C++11 mapping
56 const ::IceInternal::DefaultUserExceptionFactoryInit<::IceStormElection::ObserverInconsistencyException> iceC_IceStormElection_ObserverInconsistencyException_init(
"::IceStormElection::ObserverInconsistencyException");
58 const ::std::string iceC_IceStormElection_ReplicaObserver_ids[2] =
61 "::IceStormElection::ReplicaObserver"
63 const ::std::string iceC_IceStormElection_ReplicaObserver_ops[] =
75 const ::std::string iceC_IceStormElection_ReplicaObserver_init_name =
"init";
76 const ::std::string iceC_IceStormElection_ReplicaObserver_createTopic_name =
"createTopic";
77 const ::std::string iceC_IceStormElection_ReplicaObserver_destroyTopic_name =
"destroyTopic";
78 const ::std::string iceC_IceStormElection_ReplicaObserver_addSubscriber_name =
"addSubscriber";
79 const ::std::string iceC_IceStormElection_ReplicaObserver_removeSubscriber_name =
"removeSubscriber";
81 const ::std::string iceC_IceStormElection_TopicManagerSync_ids[2] =
84 "::IceStormElection::TopicManagerSync"
86 const ::std::string iceC_IceStormElection_TopicManagerSync_ops[] =
94 const ::std::string iceC_IceStormElection_TopicManagerSync_getContent_name =
"getContent";
96 const ::std::string iceC_IceStormElection_Node_ids[2] =
99 "::IceStormElection::Node"
101 const ::std::string iceC_IceStormElection_Node_ops[] =
116 const ::std::string iceC_IceStormElection_Node_invitation_name =
"invitation";
117 const ::std::string iceC_IceStormElection_Node_ready_name =
"ready";
118 const ::std::string iceC_IceStormElection_Node_accept_name =
"accept";
119 const ::std::string iceC_IceStormElection_Node_areYouCoordinator_name =
"areYouCoordinator";
120 const ::std::string iceC_IceStormElection_Node_areYouThere_name =
"areYouThere";
121 const ::std::string iceC_IceStormElection_Node_sync_name =
"sync";
122 const ::std::string iceC_IceStormElection_Node_nodes_name =
"nodes";
123 const ::std::string iceC_IceStormElection_Node_query_name =
"query";
132 IceStormElection::ObserverInconsistencyException::ice_staticId()
134 static const ::std::string typeId =
"::IceStormElection::ObserverInconsistencyException";
141 return ::std::binary_search(iceC_IceStormElection_ReplicaObserver_ids, iceC_IceStormElection_ReplicaObserver_ids + 2,
s);
144 ::std::vector<::std::string>
147 return ::std::vector<::std::string>(&iceC_IceStormElection_ReplicaObserver_ids[0], &iceC_IceStormElection_ReplicaObserver_ids[2]);
153 return ice_staticId();
159 static const ::std::string typeId =
"::IceStormElection::ReplicaObserver";
166 _iceCheckMode(::Ice::OperationMode::Normal, current.mode);
167 auto istr = inS.startReadParams();
170 istr->readAll(iceP_llu, iceP_content);
172 this->init(::std::move(iceP_llu), ::std::move(iceP_content), current);
173 inS.writeEmptyParams();
180 _iceCheckMode(::Ice::OperationMode::Normal, current.mode);
181 auto istr = inS.startReadParams();
183 ::std::string iceP_name;
184 istr->readAll(iceP_llu, iceP_name);
186 this->createTopic(::std::move(iceP_llu), ::std::move(iceP_name), current);
187 inS.writeEmptyParams();
194 _iceCheckMode(::Ice::OperationMode::Normal, current.mode);
195 auto istr = inS.startReadParams();
197 ::std::string iceP_name;
198 istr->readAll(iceP_llu, iceP_name);
200 this->destroyTopic(::std::move(iceP_llu), ::std::move(iceP_name), current);
201 inS.writeEmptyParams();
208 _iceCheckMode(::Ice::OperationMode::Normal, current.mode);
209 auto istr = inS.startReadParams();
211 ::std::string iceP_topic;
213 istr->readAll(iceP_llu, iceP_topic, iceP_record);
215 this->addSubscriber(::std::move(iceP_llu), ::std::move(iceP_topic), ::std::move(iceP_record), current);
216 inS.writeEmptyParams();
223 _iceCheckMode(::Ice::OperationMode::Normal, current.mode);
224 auto istr = inS.startReadParams();
226 ::std::string iceP_topic;
227 ::Ice::IdentitySeq iceP_subscribers;
228 istr->readAll(iceP_llu, iceP_topic, iceP_subscribers);
230 this->removeSubscriber(::std::move(iceP_llu), ::std::move(iceP_topic), ::std::move(iceP_subscribers), current);
231 inS.writeEmptyParams();
238 ::std::pair<const ::std::string*, const ::std::string*> r = ::std::equal_range(iceC_IceStormElection_ReplicaObserver_ops, iceC_IceStormElection_ReplicaObserver_ops + 9, current.operation);
239 if (r.first == r.second)
241 throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
244 switch (r.first - iceC_IceStormElection_ReplicaObserver_ops)
248 return _iceD_addSubscriber(in, current);
252 return _iceD_createTopic(in, current);
256 return _iceD_destroyTopic(in, current);
260 return _iceD_ice_id(in, current);
264 return _iceD_ice_ids(in, current);
268 return _iceD_ice_isA(in, current);
272 return _iceD_ice_ping(in, current);
276 return _iceD_init(in, current);
280 return _iceD_removeSubscriber(in, current);
285 throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
293 return ::std::binary_search(iceC_IceStormElection_TopicManagerSync_ids, iceC_IceStormElection_TopicManagerSync_ids + 2,
s);
296 ::std::vector<::std::string>
299 return ::std::vector<::std::string>(&iceC_IceStormElection_TopicManagerSync_ids[0], &iceC_IceStormElection_TopicManagerSync_ids[2]);
305 return ice_staticId();
311 static const ::std::string typeId =
"::IceStormElection::TopicManagerSync";
318 _iceCheckMode(::Ice::OperationMode::Normal, current.mode);
319 inS.readEmptyParams();
322 this->getContent(iceP_llu, iceP_content, current);
323 auto ostr = inS.startWriteParams();
324 ostr->writeAll(iceP_llu, iceP_content);
325 inS.endWriteParams();
332 ::std::pair<const ::std::string*, const ::std::string*> r = ::std::equal_range(iceC_IceStormElection_TopicManagerSync_ops, iceC_IceStormElection_TopicManagerSync_ops + 5, current.operation);
333 if (r.first == r.second)
335 throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
338 switch (r.first - iceC_IceStormElection_TopicManagerSync_ops)
342 return _iceD_getContent(in, current);
346 return _iceD_ice_id(in, current);
350 return _iceD_ice_ids(in, current);
354 return _iceD_ice_isA(in, current);
358 return _iceD_ice_ping(in, current);
363 throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
371 return ::std::binary_search(iceC_IceStormElection_Node_ids, iceC_IceStormElection_Node_ids + 2,
s);
374 ::std::vector<::std::string>
377 return ::std::vector<::std::string>(&iceC_IceStormElection_Node_ids[0], &iceC_IceStormElection_Node_ids[2]);
383 return ice_staticId();
389 static const ::std::string typeId =
"::IceStormElection::Node";
396 _iceCheckMode(::Ice::OperationMode::Normal, current.mode);
397 auto istr = inS.startReadParams();
399 ::std::string iceP_gn;
400 istr->readAll(iceP_j, iceP_gn);
402 this->invitation(iceP_j, ::std::move(iceP_gn), current);
403 inS.writeEmptyParams();
410 _iceCheckMode(::Ice::OperationMode::Normal, current.mode);
411 auto istr = inS.startReadParams();
413 ::std::string iceP_gn;
414 ::std::shared_ptr<::Ice::ObjectPrx> iceP_coordinator;
416 long long int iceP_generation;
417 istr->readAll(iceP_j, iceP_gn, iceP_coordinator, iceP_max, iceP_generation);
419 this->ready(iceP_j, ::std::move(iceP_gn), ::std::move(iceP_coordinator), iceP_max, iceP_generation, current);
420 inS.writeEmptyParams();
427 _iceCheckMode(::Ice::OperationMode::Normal, current.mode);
428 auto istr = inS.startReadParams();
430 ::std::string iceP_gn;
431 ::Ice::IntSeq iceP_forwardedInvites;
432 ::std::shared_ptr<::Ice::ObjectPrx> iceP_observer;
435 istr->readAll(iceP_j, iceP_gn, iceP_forwardedInvites, iceP_observer, iceP_llu, iceP_max);
437 this->accept(iceP_j, ::std::move(iceP_gn), ::std::move(iceP_forwardedInvites), ::std::move(iceP_observer), ::std::move(iceP_llu), iceP_max, current);
438 inS.writeEmptyParams();
445 _iceCheckMode(::Ice::OperationMode::Idempotent, current.mode);
446 inS.readEmptyParams();
447 bool ret = this->areYouCoordinator(current);
448 auto ostr = inS.startWriteParams();
450 inS.endWriteParams();
457 _iceCheckMode(::Ice::OperationMode::Idempotent, current.mode);
458 auto istr = inS.startReadParams();
459 ::std::string iceP_gn;
461 istr->readAll(iceP_gn, iceP_j);
463 bool ret = this->areYouThere(::std::move(iceP_gn), iceP_j, current);
464 auto ostr = inS.startWriteParams();
466 inS.endWriteParams();
473 _iceCheckMode(::Ice::OperationMode::Idempotent, current.mode);
474 inS.readEmptyParams();
475 ::std::shared_ptr<::Ice::ObjectPrx>
ret = this->sync(current);
476 auto ostr = inS.startWriteParams();
478 inS.endWriteParams();
485 _iceCheckMode(::Ice::OperationMode::Idempotent, current.mode);
486 inS.readEmptyParams();
488 auto ostr = inS.startWriteParams();
490 inS.endWriteParams();
497 _iceCheckMode(::Ice::OperationMode::Idempotent, current.mode);
498 inS.readEmptyParams();
500 auto ostr = inS.startWriteParams();
502 inS.endWriteParams();
509 ::std::pair<const ::std::string*, const ::std::string*> r = ::std::equal_range(iceC_IceStormElection_Node_ops, iceC_IceStormElection_Node_ops + 12, current.operation);
510 if (r.first == r.second)
512 throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
515 switch (r.first - iceC_IceStormElection_Node_ops)
519 return _iceD_accept(in, current);
523 return _iceD_areYouCoordinator(in, current);
527 return _iceD_areYouThere(in, current);
531 return _iceD_ice_id(in, current);
535 return _iceD_ice_ids(in, current);
539 return _iceD_ice_isA(in, current);
543 return _iceD_ice_ping(in, current);
547 return _iceD_invitation(in, current);
551 return _iceD_nodes(in, current);
555 return _iceD_query(in, current);
559 return _iceD_ready(in, current);
563 return _iceD_sync(in, current);
568 throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
574 IceStormElection::ReplicaObserverPrx::_iceI_init(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>& outAsync, const ::IceStormElection::LogUpdate& iceP_llu,
const ::IceStormElection::TopicContentSeq& iceP_content, const ::Ice::Context& context)
576 _checkTwowayOnly(iceC_IceStormElection_ReplicaObserver_init_name);
577 outAsync->invoke(iceC_IceStormElection_ReplicaObserver_init_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
578 [&](::Ice::OutputStream * ostr)
580 ostr->writeAll(iceP_llu, iceP_content);
582 [](const ::Ice::UserException & ex)
588 catch (const ::IceStormElection::ObserverInconsistencyException&)
592 catch (const ::Ice::UserException&)
599 IceStormElection::ReplicaObserverPrx::_iceI_createTopic(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>& outAsync, const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_name, const ::Ice::Context& context)
601 _checkTwowayOnly(iceC_IceStormElection_ReplicaObserver_createTopic_name);
602 outAsync->invoke(iceC_IceStormElection_ReplicaObserver_createTopic_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
603 [&](::Ice::OutputStream * ostr)
605 ostr->writeAll(iceP_llu, iceP_name);
607 [](const ::Ice::UserException & ex)
613 catch (const ::IceStormElection::ObserverInconsistencyException&)
617 catch (const ::Ice::UserException&)
624 IceStormElection::ReplicaObserverPrx::_iceI_destroyTopic(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>& outAsync, const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_name, const ::Ice::Context& context)
626 _checkTwowayOnly(iceC_IceStormElection_ReplicaObserver_destroyTopic_name);
627 outAsync->invoke(iceC_IceStormElection_ReplicaObserver_destroyTopic_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
628 [&](::Ice::OutputStream * ostr)
630 ostr->writeAll(iceP_llu, iceP_name);
632 [](const ::Ice::UserException & ex)
638 catch (const ::IceStormElection::ObserverInconsistencyException&)
642 catch (const ::Ice::UserException&)
649 IceStormElection::ReplicaObserverPrx::_iceI_addSubscriber(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>& outAsync, const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_topic, const ::IceStorm::SubscriberRecord& iceP_record, const ::Ice::Context& context)
651 _checkTwowayOnly(iceC_IceStormElection_ReplicaObserver_addSubscriber_name);
652 outAsync->invoke(iceC_IceStormElection_ReplicaObserver_addSubscriber_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
653 [&](::Ice::OutputStream * ostr)
655 ostr->writeAll(iceP_llu, iceP_topic, iceP_record);
657 [](const ::Ice::UserException & ex)
663 catch (const ::IceStormElection::ObserverInconsistencyException&)
667 catch (const ::Ice::UserException&)
674 IceStormElection::ReplicaObserverPrx::_iceI_removeSubscriber(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>& outAsync, const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_topic, const ::Ice::IdentitySeq& iceP_subscribers, const ::Ice::Context& context)
676 _checkTwowayOnly(iceC_IceStormElection_ReplicaObserver_removeSubscriber_name);
677 outAsync->invoke(iceC_IceStormElection_ReplicaObserver_removeSubscriber_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
678 [&](::Ice::OutputStream * ostr)
680 ostr->writeAll(iceP_llu, iceP_topic, iceP_subscribers);
682 [](const ::Ice::UserException & ex)
688 catch (const ::IceStormElection::ObserverInconsistencyException&)
692 catch (const ::Ice::UserException&)
698 ::std::shared_ptr<::Ice::ObjectPrx>
699 IceStormElection::ReplicaObserverPrx::_newInstance()
const
701 return ::IceInternal::createProxy<ReplicaObserverPrx>();
705 IceStormElection::ReplicaObserverPrx::ice_staticId()
711 IceStormElection::TopicManagerSyncPrx::_iceI_getContent(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::IceStormElection::TopicManagerSync::GetContentResult>>& outAsync, const ::Ice::Context& context)
713 _checkTwowayOnly(iceC_IceStormElection_TopicManagerSync_getContent_name);
714 outAsync->invoke(iceC_IceStormElection_TopicManagerSync_getContent_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
717 [](::Ice::InputStream * istr)
719 ::IceStormElection::TopicManagerSync::GetContentResult
v;
720 istr->readAll(
v.llu,
v.content);
725 ::std::shared_ptr<::Ice::ObjectPrx>
726 IceStormElection::TopicManagerSyncPrx::_newInstance()
const
728 return ::IceInternal::createProxy<TopicManagerSyncPrx>();
732 IceStormElection::TopicManagerSyncPrx::ice_staticId()
738 IceStormElection::NodePrx::_iceI_invitation(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>& outAsync,
int iceP_j, const ::std::string& iceP_gn, const ::Ice::Context& context)
740 outAsync->invoke(iceC_IceStormElection_Node_invitation_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
741 [&](::Ice::OutputStream * ostr)
743 ostr->writeAll(iceP_j, iceP_gn);
749 IceStormElection::NodePrx::_iceI_ready(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>& outAsync,
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)
751 outAsync->invoke(iceC_IceStormElection_Node_ready_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
752 [&](::Ice::OutputStream * ostr)
754 ostr->writeAll(iceP_j, iceP_gn, iceP_coordinator, iceP_max, iceP_generation);
760 IceStormElection::NodePrx::_iceI_accept(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>& outAsync,
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)
762 outAsync->invoke(iceC_IceStormElection_Node_accept_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
763 [&](::Ice::OutputStream * ostr)
765 ostr->writeAll(iceP_j, iceP_gn, iceP_forwardedInvites, iceP_observer, iceP_llu, iceP_max);
771 IceStormElection::NodePrx::_iceI_areYouCoordinator(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<bool>>& outAsync, const ::Ice::Context& context)
773 _checkTwowayOnly(iceC_IceStormElection_Node_areYouCoordinator_name);
774 outAsync->invoke(iceC_IceStormElection_Node_areYouCoordinator_name, ::Ice::OperationMode::Idempotent, ::Ice::FormatType::DefaultFormat, context,
780 IceStormElection::NodePrx::_iceI_areYouThere(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<bool>>& outAsync, const ::std::string& iceP_gn,
int iceP_j, const ::Ice::Context& context)
782 _checkTwowayOnly(iceC_IceStormElection_Node_areYouThere_name);
783 outAsync->invoke(iceC_IceStormElection_Node_areYouThere_name, ::Ice::OperationMode::Idempotent, ::Ice::FormatType::DefaultFormat, context,
784 [&](::Ice::OutputStream * ostr)
786 ostr->writeAll(iceP_gn, iceP_j);
792 IceStormElection::NodePrx::_iceI_sync(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::std::shared_ptr<::Ice::ObjectPrx>>>& outAsync, const ::Ice::Context& context)
794 _checkTwowayOnly(iceC_IceStormElection_Node_sync_name);
795 outAsync->invoke(iceC_IceStormElection_Node_sync_name, ::Ice::OperationMode::Idempotent, ::Ice::FormatType::DefaultFormat, context,
801 IceStormElection::NodePrx::_iceI_nodes(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::IceStormElection::NodeInfoSeq>>& outAsync, const ::Ice::Context& context)
803 _checkTwowayOnly(iceC_IceStormElection_Node_nodes_name);
804 outAsync->invoke(iceC_IceStormElection_Node_nodes_name, ::Ice::OperationMode::Idempotent, ::Ice::FormatType::DefaultFormat, context,
810 IceStormElection::NodePrx::_iceI_query(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::IceStormElection::QueryInfo>>& outAsync, const ::Ice::Context& context)
812 _checkTwowayOnly(iceC_IceStormElection_Node_query_name);
813 outAsync->invoke(iceC_IceStormElection_Node_query_name, ::Ice::OperationMode::Idempotent, ::Ice::FormatType::DefaultFormat, context,
818 ::std::shared_ptr<::Ice::ObjectPrx>
819 IceStormElection::NodePrx::_newInstance()
const
821 return ::IceInternal::createProxy<NodePrx>();
825 IceStormElection::NodePrx::ice_staticId()
834 #else // C++98 mapping
839 const ::std::string iceC_IceStormElection_ReplicaObserver_init_name =
"init";
841 const ::std::string iceC_IceStormElection_ReplicaObserver_createTopic_name =
"createTopic";
843 const ::std::string iceC_IceStormElection_ReplicaObserver_destroyTopic_name =
"destroyTopic";
845 const ::std::string iceC_IceStormElection_ReplicaObserver_addSubscriber_name =
"addSubscriber";
847 const ::std::string iceC_IceStormElection_ReplicaObserver_removeSubscriber_name =
"removeSubscriber";
849 const ::std::string iceC_IceStormElection_TopicManagerSync_getContent_name =
"getContent";
851 const ::std::string iceC_IceStormElection_Node_invitation_name =
"invitation";
853 const ::std::string iceC_IceStormElection_Node_ready_name =
"ready";
855 const ::std::string iceC_IceStormElection_Node_accept_name =
"accept";
857 const ::std::string iceC_IceStormElection_Node_areYouCoordinator_name =
"areYouCoordinator";
859 const ::std::string iceC_IceStormElection_Node_areYouThere_name =
"areYouThere";
861 const ::std::string iceC_IceStormElection_Node_sync_name =
"sync";
863 const ::std::string iceC_IceStormElection_Node_nodes_name =
"nodes";
865 const ::std::string iceC_IceStormElection_Node_query_name =
"query";
872 const ::IceInternal::DefaultUserExceptionFactoryInit< ::IceStormElection::ObserverInconsistencyException> iceC_IceStormElection_ObserverInconsistencyException_init(
"::IceStormElection::ObserverInconsistencyException");
877 ::
Ice::UserException(),
889 return "::IceStormElection::ObserverInconsistencyException";
907 ostr->startSlice(
"::IceStormElection::ObserverInconsistencyException", -1,
true);
927 ::Ice::ObjectPrx proxy;
935 v = new ::IceProxy::IceStormElection::ReplicaObserver;
940 ::Ice::AsyncResultPtr
941 IceProxy::IceStormElection::ReplicaObserver::_iceI_begin_init(const ::IceStormElection::LogUpdate& iceP_llu,
const ::IceStormElection::TopicContentSeq& iceP_content, const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie,
bool sync)
943 _checkTwowayOnly(iceC_IceStormElection_ReplicaObserver_init_name, sync);
944 ::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(
this, iceC_IceStormElection_ReplicaObserver_init_name, del, cookie, sync);
947 result->prepare(iceC_IceStormElection_ReplicaObserver_init_name, ::Ice::Normal, context);
948 ::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
949 ostr->write(iceP_llu);
950 ostr->write(iceP_content);
951 result->endWriteParams();
952 result->invoke(iceC_IceStormElection_ReplicaObserver_init_name);
954 catch (const ::Ice::Exception& ex)
964 ::Ice::AsyncResult::_check(result,
this, iceC_IceStormElection_ReplicaObserver_init_name);
965 if (!result->_waitForResponse())
969 result->_throwUserException();
971 catch (const ::IceStormElection::ObserverInconsistencyException&)
975 catch (const ::Ice::UserException& ex)
977 throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
980 result->_readEmptyParams();
983 ::Ice::AsyncResultPtr
984 IceProxy::IceStormElection::ReplicaObserver::_iceI_begin_createTopic(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_name, const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie,
bool sync)
986 _checkTwowayOnly(iceC_IceStormElection_ReplicaObserver_createTopic_name, sync);
987 ::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(
this, iceC_IceStormElection_ReplicaObserver_createTopic_name, del, cookie, sync);
990 result->prepare(iceC_IceStormElection_ReplicaObserver_createTopic_name, ::Ice::Normal, context);
991 ::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
992 ostr->write(iceP_llu);
993 ostr->write(iceP_name);
994 result->endWriteParams();
995 result->invoke(iceC_IceStormElection_ReplicaObserver_createTopic_name);
997 catch (const ::Ice::Exception& ex)
1007 ::Ice::AsyncResult::_check(result,
this, iceC_IceStormElection_ReplicaObserver_createTopic_name);
1008 if (!result->_waitForResponse())
1012 result->_throwUserException();
1014 catch (const ::IceStormElection::ObserverInconsistencyException&)
1018 catch (const ::Ice::UserException& ex)
1020 throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
1023 result->_readEmptyParams();
1026 ::Ice::AsyncResultPtr
1027 IceProxy::IceStormElection::ReplicaObserver::_iceI_begin_destroyTopic(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_name, const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie,
bool sync)
1029 _checkTwowayOnly(iceC_IceStormElection_ReplicaObserver_destroyTopic_name, sync);
1030 ::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(
this, iceC_IceStormElection_ReplicaObserver_destroyTopic_name, del, cookie, sync);
1033 result->prepare(iceC_IceStormElection_ReplicaObserver_destroyTopic_name, ::Ice::Normal, context);
1034 ::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
1035 ostr->write(iceP_llu);
1036 ostr->write(iceP_name);
1037 result->endWriteParams();
1038 result->invoke(iceC_IceStormElection_ReplicaObserver_destroyTopic_name);
1040 catch (const ::Ice::Exception& ex)
1050 ::Ice::AsyncResult::_check(result,
this, iceC_IceStormElection_ReplicaObserver_destroyTopic_name);
1051 if (!result->_waitForResponse())
1055 result->_throwUserException();
1057 catch (const ::IceStormElection::ObserverInconsistencyException&)
1061 catch (const ::Ice::UserException& ex)
1063 throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
1066 result->_readEmptyParams();
1069 ::Ice::AsyncResultPtr
1070 IceProxy::IceStormElection::ReplicaObserver::_iceI_begin_addSubscriber(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_topic, const ::IceStorm::SubscriberRecord& iceP_record, const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie,
bool sync)
1072 _checkTwowayOnly(iceC_IceStormElection_ReplicaObserver_addSubscriber_name, sync);
1073 ::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(
this, iceC_IceStormElection_ReplicaObserver_addSubscriber_name, del, cookie, sync);
1076 result->prepare(iceC_IceStormElection_ReplicaObserver_addSubscriber_name, ::Ice::Normal, context);
1077 ::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
1078 ostr->write(iceP_llu);
1079 ostr->write(iceP_topic);
1080 ostr->write(iceP_record);
1081 result->endWriteParams();
1082 result->invoke(iceC_IceStormElection_ReplicaObserver_addSubscriber_name);
1084 catch (const ::Ice::Exception& ex)
1094 ::Ice::AsyncResult::_check(result,
this, iceC_IceStormElection_ReplicaObserver_addSubscriber_name);
1095 if (!result->_waitForResponse())
1099 result->_throwUserException();
1101 catch (const ::IceStormElection::ObserverInconsistencyException&)
1105 catch (const ::Ice::UserException& ex)
1107 throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
1110 result->_readEmptyParams();
1113 ::Ice::AsyncResultPtr
1114 IceProxy::IceStormElection::ReplicaObserver::_iceI_begin_removeSubscriber(const ::IceStormElection::LogUpdate& iceP_llu, const ::std::string& iceP_topic, const ::Ice::IdentitySeq& iceP_subscribers, const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie,
bool sync)
1116 _checkTwowayOnly(iceC_IceStormElection_ReplicaObserver_removeSubscriber_name, sync);
1117 ::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(
this, iceC_IceStormElection_ReplicaObserver_removeSubscriber_name, del, cookie, sync);
1120 result->prepare(iceC_IceStormElection_ReplicaObserver_removeSubscriber_name, ::Ice::Normal, context);
1121 ::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
1122 ostr->write(iceP_llu);
1123 ostr->write(iceP_topic);
1124 ostr->write(iceP_subscribers);
1125 result->endWriteParams();
1126 result->invoke(iceC_IceStormElection_ReplicaObserver_removeSubscriber_name);
1128 catch (const ::Ice::Exception& ex)
1138 ::Ice::AsyncResult::_check(result,
this, iceC_IceStormElection_ReplicaObserver_removeSubscriber_name);
1139 if (!result->_waitForResponse())
1143 result->_throwUserException();
1145 catch (const ::IceStormElection::ObserverInconsistencyException&)
1149 catch (const ::Ice::UserException& ex)
1151 throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
1154 result->_readEmptyParams();
1157 ::IceProxy::Ice::Object*
1163 const ::std::string&
1166 return ::IceStormElection::ReplicaObserver::ice_staticId();
1176 ::Ice::ObjectPrx proxy;
1184 v = new ::IceProxy::IceStormElection::TopicManagerSync;
1185 v->_copyFrom(proxy);
1189 ::Ice::AsyncResultPtr
1190 IceProxy::IceStormElection::TopicManagerSync::_iceI_begin_getContent(const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie,
bool sync)
1192 _checkTwowayOnly(iceC_IceStormElection_TopicManagerSync_getContent_name, sync);
1193 ::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(
this, iceC_IceStormElection_TopicManagerSync_getContent_name, del, cookie, sync);
1196 result->prepare(iceC_IceStormElection_TopicManagerSync_getContent_name, ::Ice::Normal, context);
1197 result->writeEmptyParams();
1198 result->invoke(iceC_IceStormElection_TopicManagerSync_getContent_name);
1200 catch (const ::Ice::Exception& ex)
1210 ::Ice::AsyncResult::_check(result,
this, iceC_IceStormElection_TopicManagerSync_getContent_name);
1211 if (!result->_waitForResponse())
1215 result->_throwUserException();
1217 catch (const ::Ice::UserException& ex)
1219 throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
1222 ::Ice::InputStream* istr = result->_startReadParams();
1223 istr->read(iceP_llu);
1224 istr->read(iceP_content);
1225 result->_endReadParams();
1228 ::IceProxy::Ice::Object*
1234 const ::std::string&
1237 return ::IceStormElection::TopicManagerSync::ice_staticId();
1247 ::Ice::ObjectPrx proxy;
1255 v = new ::IceProxy::IceStormElection::Node;
1256 v->_copyFrom(proxy);
1260 ::Ice::AsyncResultPtr
1261 IceProxy::IceStormElection::Node::_iceI_begin_invitation(::
Ice::Int iceP_j, const ::std::string& iceP_gn, const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie,
bool sync)
1263 ::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(
this, iceC_IceStormElection_Node_invitation_name, del, cookie, sync);
1266 result->prepare(iceC_IceStormElection_Node_invitation_name, ::Ice::Normal, context);
1267 ::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
1268 ostr->write(iceP_j);
1269 ostr->write(iceP_gn);
1270 result->endWriteParams();
1271 result->invoke(iceC_IceStormElection_Node_invitation_name);
1273 catch (const ::Ice::Exception& ex)
1283 _end(result, iceC_IceStormElection_Node_invitation_name);
1286 ::Ice::AsyncResultPtr
1287 IceProxy::IceStormElection::Node::_iceI_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 ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie,
bool sync)
1289 ::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(
this, iceC_IceStormElection_Node_ready_name, del, cookie, sync);
1292 result->prepare(iceC_IceStormElection_Node_ready_name, ::Ice::Normal, context);
1293 ::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
1294 ostr->write(iceP_j);
1295 ostr->write(iceP_gn);
1296 ostr->write(iceP_coordinator);
1297 ostr->write(iceP_max);
1298 ostr->write(iceP_generation);
1299 result->endWriteParams();
1300 result->invoke(iceC_IceStormElection_Node_ready_name);
1302 catch (const ::Ice::Exception& ex)
1312 _end(result, iceC_IceStormElection_Node_ready_name);
1315 ::Ice::AsyncResultPtr
1316 IceProxy::IceStormElection::Node::_iceI_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 ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie,
bool sync)
1318 ::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(
this, iceC_IceStormElection_Node_accept_name, del, cookie, sync);
1321 result->prepare(iceC_IceStormElection_Node_accept_name, ::Ice::Normal, context);
1322 ::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
1323 ostr->write(iceP_j);
1324 ostr->write(iceP_gn);
1325 ostr->write(iceP_forwardedInvites);
1326 ostr->write(iceP_observer);
1327 ostr->write(iceP_llu);
1328 ostr->write(iceP_max);
1329 result->endWriteParams();
1330 result->invoke(iceC_IceStormElection_Node_accept_name);
1332 catch (const ::Ice::Exception& ex)
1342 _end(result, iceC_IceStormElection_Node_accept_name);
1345 ::Ice::AsyncResultPtr
1346 IceProxy::IceStormElection::Node::_iceI_begin_areYouCoordinator(const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie,
bool sync)
1348 _checkTwowayOnly(iceC_IceStormElection_Node_areYouCoordinator_name, sync);
1349 ::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(
this, iceC_IceStormElection_Node_areYouCoordinator_name, del, cookie, sync);
1352 result->prepare(iceC_IceStormElection_Node_areYouCoordinator_name, ::Ice::Idempotent, context);
1353 result->writeEmptyParams();
1354 result->invoke(iceC_IceStormElection_Node_areYouCoordinator_name);
1356 catch (const ::Ice::Exception& ex)
1366 ::Ice::AsyncResult::_check(result,
this, iceC_IceStormElection_Node_areYouCoordinator_name);
1368 if (!result->_waitForResponse())
1372 result->_throwUserException();
1374 catch (const ::Ice::UserException& ex)
1376 throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
1379 ::Ice::InputStream* istr = result->_startReadParams();
1381 result->_endReadParams();
1385 ::Ice::AsyncResultPtr
1386 IceProxy::IceStormElection::Node::_iceI_begin_areYouThere(const ::std::string& iceP_gn, ::
Ice::Int iceP_j, const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie,
bool sync)
1388 _checkTwowayOnly(iceC_IceStormElection_Node_areYouThere_name, sync);
1389 ::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(
this, iceC_IceStormElection_Node_areYouThere_name, del, cookie, sync);
1392 result->prepare(iceC_IceStormElection_Node_areYouThere_name, ::Ice::Idempotent, context);
1393 ::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
1394 ostr->write(iceP_gn);
1395 ostr->write(iceP_j);
1396 result->endWriteParams();
1397 result->invoke(iceC_IceStormElection_Node_areYouThere_name);
1399 catch (const ::Ice::Exception& ex)
1409 ::Ice::AsyncResult::_check(result,
this, iceC_IceStormElection_Node_areYouThere_name);
1411 if (!result->_waitForResponse())
1415 result->_throwUserException();
1417 catch (const ::Ice::UserException& ex)
1419 throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
1422 ::Ice::InputStream* istr = result->_startReadParams();
1424 result->_endReadParams();
1428 ::Ice::AsyncResultPtr
1429 IceProxy::IceStormElection::Node::_iceI_begin_sync(const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie,
bool sync)
1431 _checkTwowayOnly(iceC_IceStormElection_Node_sync_name, sync);
1432 ::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(
this, iceC_IceStormElection_Node_sync_name, del, cookie, sync);
1435 result->prepare(iceC_IceStormElection_Node_sync_name, ::Ice::Idempotent, context);
1436 result->writeEmptyParams();
1437 result->invoke(iceC_IceStormElection_Node_sync_name);
1439 catch (const ::Ice::Exception& ex)
1449 ::Ice::AsyncResult::_check(result,
this, iceC_IceStormElection_Node_sync_name);
1450 ::Ice::ObjectPrx
ret;
1451 if (!result->_waitForResponse())
1455 result->_throwUserException();
1457 catch (const ::Ice::UserException& ex)
1459 throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
1462 ::Ice::InputStream* istr = result->_startReadParams();
1464 result->_endReadParams();
1468 ::Ice::AsyncResultPtr
1469 IceProxy::IceStormElection::Node::_iceI_begin_nodes(const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie,
bool sync)
1471 _checkTwowayOnly(iceC_IceStormElection_Node_nodes_name, sync);
1472 ::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(
this, iceC_IceStormElection_Node_nodes_name, del, cookie, sync);
1475 result->prepare(iceC_IceStormElection_Node_nodes_name, ::Ice::Idempotent, context);
1476 result->writeEmptyParams();
1477 result->invoke(iceC_IceStormElection_Node_nodes_name);
1479 catch (const ::Ice::Exception& ex)
1489 ::Ice::AsyncResult::_check(result,
this, iceC_IceStormElection_Node_nodes_name);
1491 if (!result->_waitForResponse())
1495 result->_throwUserException();
1497 catch (const ::Ice::UserException& ex)
1499 throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
1502 ::Ice::InputStream* istr = result->_startReadParams();
1504 result->_endReadParams();
1508 ::Ice::AsyncResultPtr
1509 IceProxy::IceStormElection::Node::_iceI_begin_query(const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie,
bool sync)
1511 _checkTwowayOnly(iceC_IceStormElection_Node_query_name, sync);
1512 ::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(
this, iceC_IceStormElection_Node_query_name, del, cookie, sync);
1515 result->prepare(iceC_IceStormElection_Node_query_name, ::Ice::Idempotent, context);
1516 result->writeEmptyParams();
1517 result->invoke(iceC_IceStormElection_Node_query_name);
1519 catch (const ::Ice::Exception& ex)
1529 ::Ice::AsyncResult::_check(result,
this, iceC_IceStormElection_Node_query_name);
1531 if (!result->_waitForResponse())
1535 result->_throwUserException();
1537 catch (const ::Ice::UserException& ex)
1539 throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
1542 ::Ice::InputStream* istr = result->_startReadParams();
1544 result->_endReadParams();
1548 ::IceProxy::Ice::Object*
1554 const ::std::string&
1557 return ::IceStormElection::Node::ice_staticId();
1572 const ::std::string iceC_IceStormElection_ReplicaObserver_ids[2] =
1575 "::IceStormElection::ReplicaObserver"
1583 return ::std::binary_search(iceC_IceStormElection_ReplicaObserver_ids, iceC_IceStormElection_ReplicaObserver_ids + 2,
s);
1586 ::std::vector< ::std::string>
1589 return ::std::vector< ::std::string>(&iceC_IceStormElection_ReplicaObserver_ids[0], &iceC_IceStormElection_ReplicaObserver_ids[2]);
1592 const ::std::string&
1595 return ice_staticId();
1598 const ::std::string&
1601 #ifdef ICE_HAS_THREAD_SAFE_LOCAL_STATIC
1602 static const ::std::string typeId =
"::IceStormElection::ReplicaObserver";
1605 return iceC_IceStormElection_ReplicaObserver_ids[1];
1612 _iceCheckMode(::Ice::Normal, current.mode);
1613 ::Ice::InputStream* istr = inS.startReadParams();
1616 istr->read(iceP_llu);
1617 istr->read(iceP_content);
1618 inS.endReadParams();
1619 this->init(iceP_llu, iceP_content, current);
1620 inS.writeEmptyParams();
1627 _iceCheckMode(::Ice::Normal, current.mode);
1628 ::Ice::InputStream* istr = inS.startReadParams();
1630 ::std::string iceP_name;
1631 istr->read(iceP_llu);
1632 istr->read(iceP_name);
1633 inS.endReadParams();
1634 this->createTopic(iceP_llu, iceP_name, current);
1635 inS.writeEmptyParams();
1642 _iceCheckMode(::Ice::Normal, current.mode);
1643 ::Ice::InputStream* istr = inS.startReadParams();
1645 ::std::string iceP_name;
1646 istr->read(iceP_llu);
1647 istr->read(iceP_name);
1648 inS.endReadParams();
1649 this->destroyTopic(iceP_llu, iceP_name, current);
1650 inS.writeEmptyParams();
1657 _iceCheckMode(::Ice::Normal, current.mode);
1658 ::Ice::InputStream* istr = inS.startReadParams();
1660 ::std::string iceP_topic;
1662 istr->read(iceP_llu);
1663 istr->read(iceP_topic);
1664 istr->read(iceP_record);
1665 inS.endReadParams();
1666 this->addSubscriber(iceP_llu, iceP_topic, iceP_record, current);
1667 inS.writeEmptyParams();
1674 _iceCheckMode(::Ice::Normal, current.mode);
1675 ::Ice::InputStream* istr = inS.startReadParams();
1677 ::std::string iceP_topic;
1678 ::Ice::IdentitySeq iceP_subscribers;
1679 istr->read(iceP_llu);
1680 istr->read(iceP_topic);
1681 istr->read(iceP_subscribers);
1682 inS.endReadParams();
1683 this->removeSubscriber(iceP_llu, iceP_topic, iceP_subscribers, current);
1684 inS.writeEmptyParams();
1690 const ::std::string iceC_IceStormElection_ReplicaObserver_all[] =
1708 ::std::pair<const ::std::string*, const ::std::string*> r = ::std::equal_range(iceC_IceStormElection_ReplicaObserver_all, iceC_IceStormElection_ReplicaObserver_all + 9, current.operation);
1709 if (r.first == r.second)
1711 throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
1714 switch (r.first - iceC_IceStormElection_ReplicaObserver_all)
1718 return _iceD_addSubscriber(in, current);
1722 return _iceD_createTopic(in, current);
1726 return _iceD_destroyTopic(in, current);
1730 return _iceD_ice_id(in, current);
1734 return _iceD_ice_ids(in, current);
1738 return _iceD_ice_isA(in, current);
1742 return _iceD_ice_ping(in, current);
1746 return _iceD_init(in, current);
1750 return _iceD_removeSubscriber(in, current);
1755 throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
1763 ostr->startSlice(ice_staticId(), -1,
true);
1779 handle = ::IceStormElection::ReplicaObserverPtr::dynamicCast(
v);
1798 const ::std::string iceC_IceStormElection_TopicManagerSync_ids[2] =
1801 "::IceStormElection::TopicManagerSync"
1809 return ::std::binary_search(iceC_IceStormElection_TopicManagerSync_ids, iceC_IceStormElection_TopicManagerSync_ids + 2,
s);
1812 ::std::vector< ::std::string>
1815 return ::std::vector< ::std::string>(&iceC_IceStormElection_TopicManagerSync_ids[0], &iceC_IceStormElection_TopicManagerSync_ids[2]);
1818 const ::std::string&
1821 return ice_staticId();
1824 const ::std::string&
1827 #ifdef ICE_HAS_THREAD_SAFE_LOCAL_STATIC
1828 static const ::std::string typeId =
"::IceStormElection::TopicManagerSync";
1831 return iceC_IceStormElection_TopicManagerSync_ids[1];
1838 _iceCheckMode(::Ice::Normal, current.mode);
1839 inS.readEmptyParams();
1842 this->getContent(iceP_llu, iceP_content, current);
1843 ::Ice::OutputStream* ostr = inS.startWriteParams();
1844 ostr->write(iceP_llu);
1845 ostr->write(iceP_content);
1846 inS.endWriteParams();
1852 const ::std::string iceC_IceStormElection_TopicManagerSync_all[] =
1866 ::std::pair<const ::std::string*, const ::std::string*> r = ::std::equal_range(iceC_IceStormElection_TopicManagerSync_all, iceC_IceStormElection_TopicManagerSync_all + 5, current.operation);
1867 if (r.first == r.second)
1869 throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
1872 switch (r.first - iceC_IceStormElection_TopicManagerSync_all)
1876 return _iceD_getContent(in, current);
1880 return _iceD_ice_id(in, current);
1884 return _iceD_ice_ids(in, current);
1888 return _iceD_ice_isA(in, current);
1892 return _iceD_ice_ping(in, current);
1897 throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
1905 ostr->startSlice(ice_staticId(), -1,
true);
1921 handle = ::IceStormElection::TopicManagerSyncPtr::dynamicCast(
v);
1940 const ::std::string iceC_IceStormElection_Node_ids[2] =
1943 "::IceStormElection::Node"
1951 return ::std::binary_search(iceC_IceStormElection_Node_ids, iceC_IceStormElection_Node_ids + 2,
s);
1954 ::std::vector< ::std::string>
1957 return ::std::vector< ::std::string>(&iceC_IceStormElection_Node_ids[0], &iceC_IceStormElection_Node_ids[2]);
1960 const ::std::string&
1963 return ice_staticId();
1966 const ::std::string&
1969 #ifdef ICE_HAS_THREAD_SAFE_LOCAL_STATIC
1970 static const ::std::string typeId =
"::IceStormElection::Node";
1973 return iceC_IceStormElection_Node_ids[1];
1980 _iceCheckMode(::Ice::Normal, current.mode);
1981 ::Ice::InputStream* istr = inS.startReadParams();
1983 ::std::string iceP_gn;
1985 istr->read(iceP_gn);
1986 inS.endReadParams();
1987 this->invitation(iceP_j, iceP_gn, current);
1988 inS.writeEmptyParams();
1995 _iceCheckMode(::Ice::Normal, current.mode);
1996 ::Ice::InputStream* istr = inS.startReadParams();
1998 ::std::string iceP_gn;
1999 ::Ice::ObjectPrx iceP_coordinator;
2003 istr->read(iceP_gn);
2004 istr->read(iceP_coordinator);
2005 istr->read(iceP_max);
2006 istr->read(iceP_generation);
2007 inS.endReadParams();
2008 this->ready(iceP_j, iceP_gn, iceP_coordinator, iceP_max, iceP_generation, current);
2009 inS.writeEmptyParams();
2016 _iceCheckMode(::Ice::Normal, current.mode);
2017 ::Ice::InputStream* istr = inS.startReadParams();
2019 ::std::string iceP_gn;
2020 ::Ice::IntSeq iceP_forwardedInvites;
2021 ::Ice::ObjectPrx iceP_observer;
2025 istr->read(iceP_gn);
2026 istr->read(iceP_forwardedInvites);
2027 istr->read(iceP_observer);
2028 istr->read(iceP_llu);
2029 istr->read(iceP_max);
2030 inS.endReadParams();
2031 this->accept(iceP_j, iceP_gn, iceP_forwardedInvites, iceP_observer, iceP_llu, iceP_max, current);
2032 inS.writeEmptyParams();
2039 _iceCheckMode(::Ice::Idempotent, current.mode);
2040 inS.readEmptyParams();
2041 bool ret = this->areYouCoordinator(current);
2042 ::Ice::OutputStream* ostr = inS.startWriteParams();
2044 inS.endWriteParams();
2051 _iceCheckMode(::Ice::Idempotent, current.mode);
2052 ::Ice::InputStream* istr = inS.startReadParams();
2053 ::std::string iceP_gn;
2055 istr->read(iceP_gn);
2057 inS.endReadParams();
2058 bool ret = this->areYouThere(iceP_gn, iceP_j, current);
2059 ::Ice::OutputStream* ostr = inS.startWriteParams();
2061 inS.endWriteParams();
2068 _iceCheckMode(::Ice::Idempotent, current.mode);
2069 inS.readEmptyParams();
2070 ::Ice::ObjectPrx
ret = this->sync(current);
2071 ::Ice::OutputStream* ostr = inS.startWriteParams();
2073 inS.endWriteParams();
2080 _iceCheckMode(::Ice::Idempotent, current.mode);
2081 inS.readEmptyParams();
2083 ::Ice::OutputStream* ostr = inS.startWriteParams();
2085 inS.endWriteParams();
2092 _iceCheckMode(::Ice::Idempotent, current.mode);
2093 inS.readEmptyParams();
2095 ::Ice::OutputStream* ostr = inS.startWriteParams();
2097 inS.endWriteParams();
2103 const ::std::string iceC_IceStormElection_Node_all[] =
2106 "areYouCoordinator",
2124 ::std::pair<const ::std::string*, const ::std::string*> r = ::std::equal_range(iceC_IceStormElection_Node_all, iceC_IceStormElection_Node_all + 12, current.operation);
2125 if (r.first == r.second)
2127 throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
2130 switch (r.first - iceC_IceStormElection_Node_all)
2134 return _iceD_accept(in, current);
2138 return _iceD_areYouCoordinator(in, current);
2142 return _iceD_areYouThere(in, current);
2146 return _iceD_ice_id(in, current);
2150 return _iceD_ice_ids(in, current);
2154 return _iceD_ice_isA(in, current);
2158 return _iceD_ice_ping(in, current);
2162 return _iceD_invitation(in, current);
2166 return _iceD_nodes(in, current);
2170 return _iceD_query(in, current);
2174 return _iceD_ready(in, current);
2178 return _iceD_sync(in, current);
2183 throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
2191 ostr->startSlice(ice_staticId(), -1,
true);
2207 handle = ::IceStormElection::NodePtr::dynamicCast(
v);