16#ifndef __IceBox_IceBox_h__
17#define __IceBox_IceBox_h__
43#ifndef ICE_IGNORE_VERSION
44# if ICE_INT_VERSION / 100 != 307
45# error Ice version mismatch!
47# if ICE_INT_VERSION % 100 >= 50
48# error Beta header file detected
50# if ICE_INT_VERSION % 100 < 11
51# error Ice patch level mismatch!
56# if defined(ICE_STATIC_LIBS)
58# elif defined(ICEBOX_API_EXPORTS)
59# define ICEBOX_API ICE_DECLSPEC_EXPORT
61# define ICEBOX_API ICE_DECLSPEC_IMPORT
65#ifdef ICE_CPP11_MAPPING
270 virtual void start(const ::std::string& name, const ::std::shared_ptr<::Ice::Communicator>& communicator, const ::Ice::StringSeq& args) = 0;
301 virtual bool ice_isA(::std::string
id, const ::Ice::Current& current)
const override;
308 virtual ::std::vector<::std::string>
ice_ids(const ::Ice::Current& current)
const override;
315 virtual ::std::string
ice_id(const ::Ice::Current& current)
const override;
330 bool _iceD_servicesStarted(::IceInternal::Incoming&, const ::Ice::Current&);
340 bool _iceD_servicesStopped(::IceInternal::Incoming&, const ::Ice::Current&);
344 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&)
override;
365 virtual bool ice_isA(::std::string
id, const ::Ice::Current& current)
const override;
372 virtual ::std::vector<::std::string>
ice_ids(const ::Ice::Current& current)
const override;
379 virtual ::std::string
ice_id(const ::Ice::Current& current)
const override;
394 bool _iceD_getSliceChecksums(::IceInternal::Incoming&, const ::Ice::Current&)
const;
404 virtual void startService(::std::string service, const ::Ice::Current& current) = 0;
406 bool _iceD_startService(::IceInternal::Incoming&, const ::Ice::Current&);
416 virtual void stopService(::std::string service, const ::Ice::Current& current) = 0;
418 bool _iceD_stopService(::IceInternal::Incoming&, const ::Ice::Current&);
426 virtual void addObserver(::std::shared_ptr<ServiceObserverPrx> observer, const ::Ice::Current& current) = 0;
428 bool _iceD_addObserver(::IceInternal::Incoming&, const ::Ice::Current&);
435 virtual void shutdown(const ::Ice::Current& current) = 0;
437 bool _iceD_shutdown(::IceInternal::Incoming&, const ::Ice::Current&);
441 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&)
override;
467 _makePromiseOutgoing<void>(
true,
this, &ServiceObserverPrx::_iceI_servicesStarted, services, context).get();
476 template<
template<
typename>
class P = ::std::promise>
478 ->
decltype(::std::declval<P<void>>().get_future())
480 return _makePromiseOutgoing<void, P>(
false,
this, &ServiceObserverPrx::_iceI_servicesStarted, services, context);
492 ::std::function<void()>
494 ::std::function<
void()> response,
495 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
496 ::std::function<
void(
bool)> sent =
nullptr,
499 return _makeLambdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent),
this, &IceBox::ServiceObserverPrx::_iceI_servicesStarted, services, context);
503 ICE_MEMBER(
ICEBOX_API)
void _iceI_servicesStarted(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::Ice::StringSeq&, const ::Ice::Context&);
513 _makePromiseOutgoing<void>(
true,
this, &ServiceObserverPrx::_iceI_servicesStopped, services, context).get();
522 template<
template<
typename>
class P = ::std::promise>
524 ->
decltype(::std::declval<P<void>>().get_future())
526 return _makePromiseOutgoing<void, P>(
false,
this, &ServiceObserverPrx::_iceI_servicesStopped, services, context);
538 ::std::function<void()>
540 ::std::function<
void()> response,
541 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
542 ::std::function<
void(
bool)> sent =
nullptr,
545 return _makeLambdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent),
this, &IceBox::ServiceObserverPrx::_iceI_servicesStopped, services, context);
549 ICE_MEMBER(
ICEBOX_API)
void _iceI_servicesStopped(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::Ice::StringSeq&, const ::Ice::Context&);
562 friend ::std::shared_ptr<ServiceObserverPrx> IceInternal::createProxy<ServiceObserverPrx>();
564 ICE_MEMBER(
ICEBOX_API) virtual ::std::shared_ptr<::Ice::ObjectPrx> _newInstance()
const override;
584 return _makePromiseOutgoing<::Ice::SliceChecksumDict>(
true,
this, &ServiceManagerPrx::_iceI_getSliceChecksums, context).get();
592 template<
template<
typename>
class P = ::std::promise>
594 ->
decltype(::std::declval<P<::Ice::SliceChecksumDict>>().get_future())
596 return _makePromiseOutgoing<::Ice::SliceChecksumDict, P>(
false,
this, &ServiceManagerPrx::_iceI_getSliceChecksums, context);
607 ::std::function<void()>
609 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
610 ::std::function<
void(
bool)> sent =
nullptr,
613 return _makeLambdaOutgoing<::Ice::SliceChecksumDict>(std::move(response), std::move(ex), std::move(sent),
this, &IceBox::ServiceManagerPrx::_iceI_getSliceChecksums, context);
617 ICE_MEMBER(
ICEBOX_API)
void _iceI_getSliceChecksums(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::Ice::SliceChecksumDict>>&, const ::Ice::Context&);
629 _makePromiseOutgoing<void>(
true,
this, &ServiceManagerPrx::_iceI_startService, service, context).get();
638 template<
template<
typename>
class P = ::std::promise>
640 ->
decltype(::std::declval<P<void>>().get_future())
642 return _makePromiseOutgoing<void, P>(
false,
this, &ServiceManagerPrx::_iceI_startService, service, context);
654 ::std::function<void()>
656 ::std::function<
void()> response,
657 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
658 ::std::function<
void(
bool)> sent =
nullptr,
661 return _makeLambdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent),
this, &IceBox::ServiceManagerPrx::_iceI_startService, service, context);
665 ICE_MEMBER(
ICEBOX_API)
void _iceI_startService(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::std::string&, const ::Ice::Context&);
677 _makePromiseOutgoing<void>(
true,
this, &ServiceManagerPrx::_iceI_stopService, service, context).get();
686 template<
template<
typename>
class P = ::std::promise>
688 ->
decltype(::std::declval<P<void>>().get_future())
690 return _makePromiseOutgoing<void, P>(
false,
this, &ServiceManagerPrx::_iceI_stopService, service, context);
702 ::std::function<void()>
704 ::std::function<
void()> response,
705 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
706 ::std::function<
void(
bool)> sent =
nullptr,
709 return _makeLambdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent),
this, &IceBox::ServiceManagerPrx::_iceI_stopService, service, context);
713 ICE_MEMBER(
ICEBOX_API)
void _iceI_stopService(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::std::string&, const ::Ice::Context&);
723 _makePromiseOutgoing<void>(
true,
this, &ServiceManagerPrx::_iceI_addObserver, observer, context).get();
732 template<
template<
typename>
class P = ::std::promise>
734 ->
decltype(::std::declval<P<void>>().get_future())
736 return _makePromiseOutgoing<void, P>(
false,
this, &ServiceManagerPrx::_iceI_addObserver, observer, context);
748 ::std::function<void()>
750 ::std::function<
void()> response,
751 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
752 ::std::function<
void(
bool)> sent =
nullptr,
755 return _makeLambdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent),
this, &IceBox::ServiceManagerPrx::_iceI_addObserver, observer, context);
759 ICE_MEMBER(
ICEBOX_API)
void _iceI_addObserver(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::std::shared_ptr<ServiceObserverPrx>&, const ::Ice::Context&);
768 _makePromiseOutgoing<void>(
true,
this, &ServiceManagerPrx::_iceI_shutdown, context).get();
776 template<
template<
typename>
class P = ::std::promise>
778 ->
decltype(::std::declval<P<void>>().get_future())
780 return _makePromiseOutgoing<void, P>(
false,
this, &ServiceManagerPrx::_iceI_shutdown, context);
791 ::std::function<void()>
793 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
794 ::std::function<
void(
bool)> sent =
nullptr,
797 return _makeLambdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent),
this, &IceBox::ServiceManagerPrx::_iceI_shutdown, context);
801 ICE_MEMBER(
ICEBOX_API)
void _iceI_shutdown(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::Ice::Context&);
814 friend ::std::shared_ptr<ServiceManagerPrx> IceInternal::createProxy<ServiceManagerPrx>();
816 ICE_MEMBER(
ICEBOX_API) virtual ::std::shared_ptr<::Ice::ObjectPrx> _newInstance()
const override;
833using ServicePtr = ::std::shared_ptr<Service>;
835using ServiceObserverPtr = ::std::shared_ptr<ServiceObserver>;
836using ServiceObserverPrxPtr = ::std::shared_ptr<ServiceObserverPrx>;
838using ServiceManagerPtr = ::std::shared_ptr<ServiceManager>;
839using ServiceManagerPrxPtr = ::std::shared_ptr<ServiceManagerPrx>;
852class ServiceObserver;
854ICEBOX_API void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< ServiceObserver>&);
855ICEBOX_API ::IceProxy::Ice::Object* upCast(ServiceObserver*);
860ICEBOX_API void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< ServiceManager>&);
861ICEBOX_API ::IceProxy::Ice::Object* upCast(ServiceManager*);
873ICEBOX_API ::Ice::LocalObject* upCast(Service*);
875typedef ::IceInternal::Handle< Service> ServicePtr;
877class ServiceObserver;
879ICEBOX_API ::Ice::Object* upCast(ServiceObserver*);
881typedef ::IceInternal::Handle< ServiceObserver> ServiceObserverPtr;
882typedef ::IceInternal::ProxyHandle< ::IceProxy::IceBox::ServiceObserver> ServiceObserverPrx;
883typedef ServiceObserverPrx ServiceObserverPrxPtr;
885ICEBOX_API void _icePatchObjectPtr(ServiceObserverPtr&, const ::Ice::ObjectPtr&);
890ICEBOX_API ::Ice::Object* upCast(ServiceManager*);
892typedef ::IceInternal::Handle< ServiceManager> ServiceManagerPtr;
893typedef ::IceInternal::ProxyHandle< ::IceProxy::IceBox::ServiceManager> ServiceManagerPrx;
894typedef ServiceManagerPrx ServiceManagerPrxPtr;
896ICEBOX_API void _icePatchObjectPtr(ServiceManagerPtr&, const ::Ice::ObjectPtr&);
911class ICEBOX_API FailureException :
public ::Ice::LocalException
920 FailureException(
const char* file,
int line);
928 FailureException(
const char* file,
int line, const ::std::string& reason);
930#ifdef ICE_CPP11_COMPILER
931 FailureException(
const FailureException&) =
default;
932 virtual ~FailureException();
934 virtual ~FailureException() throw();
941 virtual ::std::string ice_id()
const;
946 virtual void ice_print(::std::ostream& stream)
const;
951 virtual FailureException* ice_clone()
const;
955 virtual void ice_throw()
const;
960 ::std::string reason;
968class ICEBOX_API AlreadyStartedException :
public ::Ice::UserException
972 AlreadyStartedException() {}
974#ifdef ICE_CPP11_COMPILER
975 AlreadyStartedException(
const AlreadyStartedException&) =
default;
976 virtual ~AlreadyStartedException();
978 virtual ~AlreadyStartedException() throw();
985 virtual ::std::string ice_id()
const;
990 virtual AlreadyStartedException* ice_clone()
const;
994 virtual void ice_throw()
const;
999 virtual void _writeImpl(::Ice::OutputStream*)
const;
1000 virtual void _readImpl(::Ice::InputStream*);
1005static AlreadyStartedException _iceS_AlreadyStartedException_init;
1013class ICEBOX_API AlreadyStoppedException :
public ::Ice::UserException
1017 AlreadyStoppedException() {}
1019#ifdef ICE_CPP11_COMPILER
1020 AlreadyStoppedException(
const AlreadyStoppedException&) =
default;
1021 virtual ~AlreadyStoppedException();
1023 virtual ~AlreadyStoppedException() throw();
1030 virtual ::std::string ice_id()
const;
1035 virtual AlreadyStoppedException* ice_clone()
const;
1039 virtual void ice_throw()
const;
1044 virtual void _writeImpl(::Ice::OutputStream*)
const;
1045 virtual void _readImpl(::Ice::InputStream*);
1054class ICEBOX_API NoSuchServiceException :
public ::Ice::UserException
1058 NoSuchServiceException() {}
1060#ifdef ICE_CPP11_COMPILER
1061 NoSuchServiceException(
const NoSuchServiceException&) =
default;
1062 virtual ~NoSuchServiceException();
1064 virtual ~NoSuchServiceException() throw();
1071 virtual ::std::string ice_id()
const;
1076 virtual NoSuchServiceException* ice_clone()
const;
1080 virtual void ice_throw()
const;
1085 virtual void _writeImpl(::Ice::OutputStream*)
const;
1086 virtual void _readImpl(::Ice::InputStream*);
1100class Callback_ServiceObserver_servicesStarted_Base :
public virtual ::IceInternal::CallbackBase { };
1101typedef ::IceUtil::Handle< Callback_ServiceObserver_servicesStarted_Base> Callback_ServiceObserver_servicesStartedPtr;
1108class Callback_ServiceObserver_servicesStopped_Base :
public virtual ::IceInternal::CallbackBase { };
1109typedef ::IceUtil::Handle< Callback_ServiceObserver_servicesStopped_Base> Callback_ServiceObserver_servicesStoppedPtr;
1116class Callback_ServiceManager_getSliceChecksums_Base :
public virtual ::IceInternal::CallbackBase { };
1117typedef ::IceUtil::Handle< Callback_ServiceManager_getSliceChecksums_Base> Callback_ServiceManager_getSliceChecksumsPtr;
1124class Callback_ServiceManager_startService_Base :
public virtual ::IceInternal::CallbackBase { };
1125typedef ::IceUtil::Handle< Callback_ServiceManager_startService_Base> Callback_ServiceManager_startServicePtr;
1132class Callback_ServiceManager_stopService_Base :
public virtual ::IceInternal::CallbackBase { };
1133typedef ::IceUtil::Handle< Callback_ServiceManager_stopService_Base> Callback_ServiceManager_stopServicePtr;
1140class Callback_ServiceManager_addObserver_Base :
public virtual ::IceInternal::CallbackBase { };
1141typedef ::IceUtil::Handle< Callback_ServiceManager_addObserver_Base> Callback_ServiceManager_addObserverPtr;
1148class Callback_ServiceManager_shutdown_Base :
public virtual ::IceInternal::CallbackBase { };
1149typedef ::IceUtil::Handle< Callback_ServiceManager_shutdown_Base> Callback_ServiceManager_shutdownPtr;
1159class ICE_CLASS(ICEBOX_API) ServiceObserver :
public virtual ::Ice::Proxy<ServiceObserver, ::IceProxy::Ice::Object>
1170 end_servicesStarted(_iceI_begin_servicesStarted(services, context, ::IceInternal::dummyCallback, 0,
true));
1179 ::Ice::AsyncResultPtr begin_servicesStarted(const ::Ice::StringSeq& services, const ::Ice::Context& context =
::Ice::noExplicitContext)
1181 return _iceI_begin_servicesStarted(services, context, ::IceInternal::dummyCallback, 0);
1191 ::Ice::AsyncResultPtr begin_servicesStarted(const ::Ice::StringSeq& services, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1204 ::Ice::AsyncResultPtr begin_servicesStarted(const ::Ice::StringSeq& services, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1206 return _iceI_begin_servicesStarted(services, context, cb, cookie);
1216 ::Ice::AsyncResultPtr begin_servicesStarted(const ::Ice::StringSeq& services, const ::IceBox::Callback_ServiceObserver_servicesStartedPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1229 ::Ice::AsyncResultPtr begin_servicesStarted(const ::Ice::StringSeq& services, const ::Ice::Context& context, const ::IceBox::Callback_ServiceObserver_servicesStartedPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1231 return _iceI_begin_servicesStarted(services, context, cb, cookie);
1253 end_servicesStopped(_iceI_begin_servicesStopped(services, context, ::IceInternal::dummyCallback, 0,
true));
1262 ::Ice::AsyncResultPtr begin_servicesStopped(const ::Ice::StringSeq& services, const ::Ice::Context& context =
::Ice::noExplicitContext)
1264 return _iceI_begin_servicesStopped(services, context, ::IceInternal::dummyCallback, 0);
1274 ::Ice::AsyncResultPtr begin_servicesStopped(const ::Ice::StringSeq& services, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1287 ::Ice::AsyncResultPtr begin_servicesStopped(const ::Ice::StringSeq& services, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1289 return _iceI_begin_servicesStopped(services, context, cb, cookie);
1299 ::Ice::AsyncResultPtr begin_servicesStopped(const ::Ice::StringSeq& services, const ::IceBox::Callback_ServiceObserver_servicesStoppedPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1312 ::Ice::AsyncResultPtr begin_servicesStopped(const ::Ice::StringSeq& services, const ::Ice::Context& context, const ::IceBox::Callback_ServiceObserver_servicesStoppedPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1314 return _iceI_begin_servicesStopped(services, context, cb, cookie);
1342class ICE_CLASS(ICEBOX_API) ServiceManager :
public virtual ::Ice::Proxy<ServiceManager, ::IceProxy::Ice::Object>
1353 return end_getSliceChecksums(_iceI_begin_getSliceChecksums(context, ::IceInternal::dummyCallback, 0,
true));
1363 return _iceI_begin_getSliceChecksums(context, ::IceInternal::dummyCallback, 0);
1372 ::Ice::AsyncResultPtr begin_getSliceChecksums(const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1384 ::Ice::AsyncResultPtr begin_getSliceChecksums(const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1386 return _iceI_begin_getSliceChecksums(context, cb, cookie);
1395 ::Ice::AsyncResultPtr begin_getSliceChecksums(const ::IceBox::Callback_ServiceManager_getSliceChecksumsPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1407 ::Ice::AsyncResultPtr begin_getSliceChecksums(const ::Ice::Context& context, const ::IceBox::Callback_ServiceManager_getSliceChecksumsPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1409 return _iceI_begin_getSliceChecksums(context, cb, cookie);
1434 end_startService(_iceI_begin_startService(service, context, ::IceInternal::dummyCallback, 0,
true));
1443 ::Ice::AsyncResultPtr begin_startService(const ::std::string& service, const ::Ice::Context& context =
::Ice::noExplicitContext)
1445 return _iceI_begin_startService(service, context, ::IceInternal::dummyCallback, 0);
1455 ::Ice::AsyncResultPtr begin_startService(const ::std::string& service, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1468 ::Ice::AsyncResultPtr begin_startService(const ::std::string& service, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1470 return _iceI_begin_startService(service, context, cb, cookie);
1480 ::Ice::AsyncResultPtr begin_startService(const ::std::string& service, const ::IceBox::Callback_ServiceManager_startServicePtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1493 ::Ice::AsyncResultPtr begin_startService(const ::std::string& service, const ::Ice::Context& context, const ::IceBox::Callback_ServiceManager_startServicePtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1495 return _iceI_begin_startService(service, context, cb, cookie);
1508 ICE_MEMBER(
ICEBOX_API) ::Ice::AsyncResultPtr _iceI_begin_startService(const ::std::string&, const ::Ice::
Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::
LocalObjectPtr& cookie = 0, bool sync = false);
1521 end_stopService(_iceI_begin_stopService(service, context, ::IceInternal::dummyCallback, 0,
true));
1530 ::Ice::AsyncResultPtr begin_stopService(const ::std::string& service, const ::Ice::Context& context =
::Ice::noExplicitContext)
1532 return _iceI_begin_stopService(service, context, ::IceInternal::dummyCallback, 0);
1542 ::Ice::AsyncResultPtr begin_stopService(const ::std::string& service, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1555 ::Ice::AsyncResultPtr begin_stopService(const ::std::string& service, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1557 return _iceI_begin_stopService(service, context, cb, cookie);
1567 ::Ice::AsyncResultPtr begin_stopService(const ::std::string& service, const ::IceBox::Callback_ServiceManager_stopServicePtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1580 ::Ice::AsyncResultPtr begin_stopService(const ::std::string& service, const ::Ice::Context& context, const ::IceBox::Callback_ServiceManager_stopServicePtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1582 return _iceI_begin_stopService(service, context, cb, cookie);
1595 ICE_MEMBER(
ICEBOX_API) ::Ice::AsyncResultPtr _iceI_begin_stopService(const ::std::string&, const ::Ice::
Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::
LocalObjectPtr& cookie = 0, bool sync = false);
1606 end_addObserver(_iceI_begin_addObserver(observer, context, ::IceInternal::dummyCallback, 0,
true));
1615 ::Ice::AsyncResultPtr begin_addObserver(const ::IceBox::ServiceObserverPrx& observer, const ::Ice::Context& context =
::Ice::noExplicitContext)
1617 return _iceI_begin_addObserver(observer, context, ::IceInternal::dummyCallback, 0);
1627 ::Ice::AsyncResultPtr begin_addObserver(const ::IceBox::ServiceObserverPrx& observer, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1640 ::Ice::AsyncResultPtr begin_addObserver(const ::IceBox::ServiceObserverPrx& observer, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1642 return _iceI_begin_addObserver(observer, context, cb, cookie);
1652 ::Ice::AsyncResultPtr begin_addObserver(const ::IceBox::ServiceObserverPrx& observer, const ::IceBox::Callback_ServiceManager_addObserverPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1665 ::Ice::AsyncResultPtr begin_addObserver(const ::IceBox::ServiceObserverPrx& observer, const ::Ice::Context& context, const ::IceBox::Callback_ServiceManager_addObserverPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1667 return _iceI_begin_addObserver(observer, context, cb, cookie);
1678 ICE_MEMBER(
ICEBOX_API) ::Ice::AsyncResultPtr _iceI_begin_addObserver(const ::IceBox::ServiceObserverPrx&, const ::Ice::
Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::
LocalObjectPtr& cookie = 0, bool sync = false);
1688 end_shutdown(_iceI_begin_shutdown(context, ::IceInternal::dummyCallback, 0,
true));
1698 return _iceI_begin_shutdown(context, ::IceInternal::dummyCallback, 0);
1707 ::Ice::AsyncResultPtr begin_shutdown(const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1719 ::Ice::AsyncResultPtr begin_shutdown(const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1721 return _iceI_begin_shutdown(context, cb, cookie);
1730 ::Ice::AsyncResultPtr begin_shutdown(const ::IceBox::Callback_ServiceManager_shutdownPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1742 ::Ice::AsyncResultPtr begin_shutdown(const ::Ice::Context& context, const ::IceBox::Callback_ServiceManager_shutdownPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1744 return _iceI_begin_shutdown(context, cb, cookie);
1783class ICEBOX_API Service :
public virtual ::Ice::LocalObject
1787 typedef ServicePtr PointerType;
1791#ifdef ICE_CPP11_COMPILER
1792 Service() =
default;
1793 Service(
const Service&) =
default;
1794 Service& operator=(
const Service&) =
default;
1812 virtual void start(const ::std::string& name, const ::Ice::CommunicatorPtr& communicator, const ::Ice::StringSeq& args) = 0;
1817 virtual void stop() = 0;
1821inline bool operator==(
const Service& lhs,
const Service& rhs)
1823 return static_cast<const ::Ice::LocalObject&
>(lhs) ==
static_cast<const ::Ice::LocalObject&
>(rhs);
1826inline bool operator<(
const Service& lhs,
const Service& rhs)
1828 return static_cast<const ::Ice::LocalObject&
>(lhs) <
static_cast<const ::Ice::LocalObject&
>(rhs);
1838class ICEBOX_API ServiceObserver :
public virtual ::Ice::Object
1842 typedef ServiceObserverPrx ProxyType;
1843 typedef ServiceObserverPtr PointerType;
1845 virtual ~ServiceObserver();
1847#ifdef ICE_CPP11_COMPILER
1848 ServiceObserver() =
default;
1849 ServiceObserver(
const ServiceObserver&) =
default;
1850 ServiceObserver& operator=(
const ServiceObserver&) =
default;
1859 virtual bool ice_isA(const ::std::string&
id, const ::Ice::Current& current =
::Ice::emptyCurrent)
const;
1866 virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& current =
::Ice::emptyCurrent)
const;
1873 virtual const ::std::string& ice_id(const ::Ice::Current& current =
::Ice::emptyCurrent)
const;
1879 static const ::std::string& ice_staticId();
1886 virtual void servicesStarted(const ::Ice::StringSeq& services, const ::Ice::Current& current =
::Ice::emptyCurrent) = 0;
1888 bool _iceD_servicesStarted(::IceInternal::Incoming&, const ::Ice::Current&);
1896 virtual void servicesStopped(const ::Ice::StringSeq& services, const ::Ice::Current& current =
::Ice::emptyCurrent) = 0;
1898 bool _iceD_servicesStopped(::IceInternal::Incoming&, const ::Ice::Current&);
1902 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&);
1908 virtual void _iceWriteImpl(::Ice::OutputStream*)
const;
1909 virtual void _iceReadImpl(::Ice::InputStream*);
1914inline bool operator==(
const ServiceObserver& lhs,
const ServiceObserver& rhs)
1916 return static_cast<const ::Ice::Object&
>(lhs) ==
static_cast<const ::Ice::Object&
>(rhs);
1919inline bool operator<(
const ServiceObserver& lhs,
const ServiceObserver& rhs)
1921 return static_cast<const ::Ice::Object&
>(lhs) <
static_cast<const ::Ice::Object&
>(rhs);
1930class ICEBOX_API ServiceManager :
public virtual ::Ice::Object
1934 typedef ServiceManagerPrx ProxyType;
1935 typedef ServiceManagerPtr PointerType;
1937 virtual ~ServiceManager();
1939#ifdef ICE_CPP11_COMPILER
1940 ServiceManager() =
default;
1941 ServiceManager(
const ServiceManager&) =
default;
1942 ServiceManager& operator=(
const ServiceManager&) =
default;
1951 virtual bool ice_isA(const ::std::string&
id, const ::Ice::Current& current =
::Ice::emptyCurrent)
const;
1958 virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& current =
::Ice::emptyCurrent)
const;
1965 virtual const ::std::string& ice_id(const ::Ice::Current& current =
::Ice::emptyCurrent)
const;
1971 static const ::std::string& ice_staticId();
1978 virtual ::Ice::SliceChecksumDict getSliceChecksums(const ::Ice::Current& current =
::Ice::emptyCurrent)
const = 0;
1980 bool _iceD_getSliceChecksums(::IceInternal::Incoming&, const ::Ice::Current&)
const;
1990 virtual void startService(const ::std::string& service, const ::Ice::Current& current =
::Ice::emptyCurrent) = 0;
1992 bool _iceD_startService(::IceInternal::Incoming&, const ::Ice::Current&);
2002 virtual void stopService(const ::std::string& service, const ::Ice::Current& current =
::Ice::emptyCurrent) = 0;
2004 bool _iceD_stopService(::IceInternal::Incoming&, const ::Ice::Current&);
2012 virtual void addObserver(
const ServiceObserverPrx& observer, const ::Ice::Current& current =
::Ice::emptyCurrent) = 0;
2014 bool _iceD_addObserver(::IceInternal::Incoming&, const ::Ice::Current&);
2023 bool _iceD_shutdown(::IceInternal::Incoming&, const ::Ice::Current&);
2027 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&);
2033 virtual void _iceWriteImpl(::Ice::OutputStream*)
const;
2034 virtual void _iceReadImpl(::Ice::InputStream*);
2039inline bool operator==(
const ServiceManager& lhs,
const ServiceManager& rhs)
2041 return static_cast<const ::Ice::Object&
>(lhs) ==
static_cast<const ::Ice::Object&
>(rhs);
2044inline bool operator<(
const ServiceManager& lhs,
const ServiceManager& rhs)
2046 return static_cast<const ::Ice::Object&
>(lhs) <
static_cast<const ::Ice::Object&
>(rhs);
2057struct StreamableTraits< ::IceBox::AlreadyStartedException>
2059 static const StreamHelperCategory helper = StreamHelperCategoryUserException;
2063struct StreamableTraits< ::IceBox::AlreadyStoppedException>
2065 static const StreamHelperCategory helper = StreamHelperCategoryUserException;
2069struct StreamableTraits< ::IceBox::NoSuchServiceException>
2071 static const StreamHelperCategory helper = StreamHelperCategoryUserException;
2086class CallbackNC_ServiceObserver_servicesStarted :
public Callback_ServiceObserver_servicesStarted_Base,
public ::IceInternal::OnewayCallbackNC<T>
2090 typedef IceUtil::Handle<T> TPtr;
2092 typedef void (T::*Exception)(const ::Ice::Exception&);
2093 typedef void (T::*Sent)(bool);
2094 typedef void (T::*Response)();
2096 CallbackNC_ServiceObserver_servicesStarted(
const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2097 : ::IceInternal::OnewayCallbackNC<T>(obj, cb, excb, sentcb)
2110template<
class T> Callback_ServiceObserver_servicesStartedPtr
2111newCallback_ServiceObserver_servicesStarted(
const IceUtil::Handle<T>& instance,
void (T::*cb)(),
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2113 return new CallbackNC_ServiceObserver_servicesStarted<T>(instance, cb, excb, sentcb);
2123template<
class T> Callback_ServiceObserver_servicesStartedPtr
2124newCallback_ServiceObserver_servicesStarted(
const IceUtil::Handle<T>& instance,
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2126 return new CallbackNC_ServiceObserver_servicesStarted<T>(instance, 0, excb, sentcb);
2137template<
class T> Callback_ServiceObserver_servicesStartedPtr
2138newCallback_ServiceObserver_servicesStarted(T* instance,
void (T::*cb)(),
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2140 return new CallbackNC_ServiceObserver_servicesStarted<T>(instance, cb, excb, sentcb);
2150template<
class T> Callback_ServiceObserver_servicesStartedPtr
2151newCallback_ServiceObserver_servicesStarted(T* instance,
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2153 return new CallbackNC_ServiceObserver_servicesStarted<T>(instance, 0, excb, sentcb);
2161template<
class T,
typename CT>
2162class Callback_ServiceObserver_servicesStarted :
public Callback_ServiceObserver_servicesStarted_Base,
public ::IceInternal::OnewayCallback<T, CT>
2166 typedef IceUtil::Handle<T> TPtr;
2168 typedef void (T::*Exception)(const ::Ice::Exception& ,
const CT&);
2169 typedef void (T::*Sent)(bool ,
const CT&);
2170 typedef void (T::*Response)(
const CT&);
2172 Callback_ServiceObserver_servicesStarted(
const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2173 : ::IceInternal::OnewayCallback<T, CT>(obj, cb, excb, sentcb)
2187template<
class T,
typename CT> Callback_ServiceObserver_servicesStartedPtr
2188newCallback_ServiceObserver_servicesStarted(
const IceUtil::Handle<T>& instance,
void (T::*cb)(
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2190 return new Callback_ServiceObserver_servicesStarted<T, CT>(instance, cb, excb, sentcb);
2201template<
class T,
typename CT> Callback_ServiceObserver_servicesStartedPtr
2202newCallback_ServiceObserver_servicesStarted(
const IceUtil::Handle<T>& instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2204 return new Callback_ServiceObserver_servicesStarted<T, CT>(instance, 0, excb, sentcb);
2216template<
class T,
typename CT> Callback_ServiceObserver_servicesStartedPtr
2217newCallback_ServiceObserver_servicesStarted(T* instance,
void (T::*cb)(
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2219 return new Callback_ServiceObserver_servicesStarted<T, CT>(instance, cb, excb, sentcb);
2230template<
class T,
typename CT> Callback_ServiceObserver_servicesStartedPtr
2231newCallback_ServiceObserver_servicesStarted(T* instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2233 return new Callback_ServiceObserver_servicesStarted<T, CT>(instance, 0, excb, sentcb);
2242class CallbackNC_ServiceObserver_servicesStopped :
public Callback_ServiceObserver_servicesStopped_Base,
public ::IceInternal::OnewayCallbackNC<T>
2246 typedef IceUtil::Handle<T> TPtr;
2248 typedef void (T::*Exception)(const ::Ice::Exception&);
2249 typedef void (T::*Sent)(bool);
2250 typedef void (T::*Response)();
2252 CallbackNC_ServiceObserver_servicesStopped(
const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2253 : ::IceInternal::OnewayCallbackNC<T>(obj, cb, excb, sentcb)
2266template<
class T> Callback_ServiceObserver_servicesStoppedPtr
2267newCallback_ServiceObserver_servicesStopped(
const IceUtil::Handle<T>& instance,
void (T::*cb)(),
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2269 return new CallbackNC_ServiceObserver_servicesStopped<T>(instance, cb, excb, sentcb);
2279template<
class T> Callback_ServiceObserver_servicesStoppedPtr
2280newCallback_ServiceObserver_servicesStopped(
const IceUtil::Handle<T>& instance,
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2282 return new CallbackNC_ServiceObserver_servicesStopped<T>(instance, 0, excb, sentcb);
2293template<
class T> Callback_ServiceObserver_servicesStoppedPtr
2294newCallback_ServiceObserver_servicesStopped(T* instance,
void (T::*cb)(),
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2296 return new CallbackNC_ServiceObserver_servicesStopped<T>(instance, cb, excb, sentcb);
2306template<
class T> Callback_ServiceObserver_servicesStoppedPtr
2307newCallback_ServiceObserver_servicesStopped(T* instance,
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2309 return new CallbackNC_ServiceObserver_servicesStopped<T>(instance, 0, excb, sentcb);
2317template<
class T,
typename CT>
2318class Callback_ServiceObserver_servicesStopped :
public Callback_ServiceObserver_servicesStopped_Base,
public ::IceInternal::OnewayCallback<T, CT>
2322 typedef IceUtil::Handle<T> TPtr;
2324 typedef void (T::*Exception)(const ::Ice::Exception& ,
const CT&);
2325 typedef void (T::*Sent)(bool ,
const CT&);
2326 typedef void (T::*Response)(
const CT&);
2328 Callback_ServiceObserver_servicesStopped(
const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2329 : ::IceInternal::OnewayCallback<T, CT>(obj, cb, excb, sentcb)
2343template<
class T,
typename CT> Callback_ServiceObserver_servicesStoppedPtr
2344newCallback_ServiceObserver_servicesStopped(
const IceUtil::Handle<T>& instance,
void (T::*cb)(
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2346 return new Callback_ServiceObserver_servicesStopped<T, CT>(instance, cb, excb, sentcb);
2357template<
class T,
typename CT> Callback_ServiceObserver_servicesStoppedPtr
2358newCallback_ServiceObserver_servicesStopped(
const IceUtil::Handle<T>& instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2360 return new Callback_ServiceObserver_servicesStopped<T, CT>(instance, 0, excb, sentcb);
2372template<
class T,
typename CT> Callback_ServiceObserver_servicesStoppedPtr
2373newCallback_ServiceObserver_servicesStopped(T* instance,
void (T::*cb)(
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2375 return new Callback_ServiceObserver_servicesStopped<T, CT>(instance, cb, excb, sentcb);
2386template<
class T,
typename CT> Callback_ServiceObserver_servicesStoppedPtr
2387newCallback_ServiceObserver_servicesStopped(T* instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2389 return new Callback_ServiceObserver_servicesStopped<T, CT>(instance, 0, excb, sentcb);
2398class CallbackNC_ServiceManager_getSliceChecksums :
public Callback_ServiceManager_getSliceChecksums_Base,
public ::IceInternal::TwowayCallbackNC<T>
2402 typedef IceUtil::Handle<T> TPtr;
2404 typedef void (T::*Exception)(const ::Ice::Exception&);
2405 typedef void (T::*Sent)(bool);
2406 typedef void (T::*Response)(const ::Ice::SliceChecksumDict&);
2408 CallbackNC_ServiceManager_getSliceChecksums(
const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2409 : ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
2414 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2416 ServiceManagerPrx proxy = ServiceManagerPrx::uncheckedCast(result->getProxy());
2420 ret = proxy->end_getSliceChecksums(result);
2422 catch(const ::Ice::Exception& ex)
2424 ::IceInternal::CallbackNC<T>::exception(result, ex);
2429 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
2447template<
class T> Callback_ServiceManager_getSliceChecksumsPtr
2448newCallback_ServiceManager_getSliceChecksums(
const IceUtil::Handle<T>& instance,
void (T::*cb)(const ::Ice::SliceChecksumDict&),
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2450 return new CallbackNC_ServiceManager_getSliceChecksums<T>(instance, cb, excb, sentcb);
2461template<
class T> Callback_ServiceManager_getSliceChecksumsPtr
2462newCallback_ServiceManager_getSliceChecksums(T* instance,
void (T::*cb)(const ::Ice::SliceChecksumDict&),
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2464 return new CallbackNC_ServiceManager_getSliceChecksums<T>(instance, cb, excb, sentcb);
2472template<
class T,
typename CT>
2473class Callback_ServiceManager_getSliceChecksums :
public Callback_ServiceManager_getSliceChecksums_Base,
public ::IceInternal::TwowayCallback<T, CT>
2477 typedef IceUtil::Handle<T> TPtr;
2479 typedef void (T::*Exception)(const ::Ice::Exception& ,
const CT&);
2480 typedef void (T::*Sent)(bool ,
const CT&);
2481 typedef void (T::*Response)(const ::Ice::SliceChecksumDict&,
const CT&);
2483 Callback_ServiceManager_getSliceChecksums(
const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2484 : ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
2489 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2491 ServiceManagerPrx proxy = ServiceManagerPrx::uncheckedCast(result->getProxy());
2495 ret = proxy->end_getSliceChecksums(result);
2497 catch(const ::Ice::Exception& ex)
2499 ::IceInternal::Callback<T, CT>::exception(result, ex);
2504 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie()));
2523template<
class T,
typename CT> Callback_ServiceManager_getSliceChecksumsPtr
2524newCallback_ServiceManager_getSliceChecksums(
const IceUtil::Handle<T>& instance,
void (T::*cb)(const ::Ice::SliceChecksumDict&,
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2526 return new Callback_ServiceManager_getSliceChecksums<T, CT>(instance, cb, excb, sentcb);
2538template<
class T,
typename CT> Callback_ServiceManager_getSliceChecksumsPtr
2539newCallback_ServiceManager_getSliceChecksums(T* instance,
void (T::*cb)(const ::Ice::SliceChecksumDict&,
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2541 return new Callback_ServiceManager_getSliceChecksums<T, CT>(instance, cb, excb, sentcb);
2550class CallbackNC_ServiceManager_startService :
public Callback_ServiceManager_startService_Base,
public ::IceInternal::TwowayCallbackNC<T>
2554 typedef IceUtil::Handle<T> TPtr;
2556 typedef void (T::*Exception)(const ::Ice::Exception&);
2557 typedef void (T::*Sent)(bool);
2558 typedef void (T::*Response)();
2560 CallbackNC_ServiceManager_startService(
const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2561 : ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
2566 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2568 ServiceManagerPrx proxy = ServiceManagerPrx::uncheckedCast(result->getProxy());
2571 proxy->end_startService(result);
2573 catch(const ::Ice::Exception& ex)
2575 ::IceInternal::CallbackNC<T>::exception(result, ex);
2580 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)();
2598template<
class T> Callback_ServiceManager_startServicePtr
2599newCallback_ServiceManager_startService(
const IceUtil::Handle<T>& instance,
void (T::*cb)(),
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2601 return new CallbackNC_ServiceManager_startService<T>(instance, cb, excb, sentcb);
2611template<
class T> Callback_ServiceManager_startServicePtr
2612newCallback_ServiceManager_startService(
const IceUtil::Handle<T>& instance,
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2614 return new CallbackNC_ServiceManager_startService<T>(instance, 0, excb, sentcb);
2625template<
class T> Callback_ServiceManager_startServicePtr
2626newCallback_ServiceManager_startService(T* instance,
void (T::*cb)(),
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2628 return new CallbackNC_ServiceManager_startService<T>(instance, cb, excb, sentcb);
2638template<
class T> Callback_ServiceManager_startServicePtr
2639newCallback_ServiceManager_startService(T* instance,
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2641 return new CallbackNC_ServiceManager_startService<T>(instance, 0, excb, sentcb);
2649template<
class T,
typename CT>
2650class Callback_ServiceManager_startService :
public Callback_ServiceManager_startService_Base,
public ::IceInternal::TwowayCallback<T, CT>
2654 typedef IceUtil::Handle<T> TPtr;
2656 typedef void (T::*Exception)(const ::Ice::Exception& ,
const CT&);
2657 typedef void (T::*Sent)(bool ,
const CT&);
2658 typedef void (T::*Response)(
const CT&);
2660 Callback_ServiceManager_startService(
const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2661 : ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
2666 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2668 ServiceManagerPrx proxy = ServiceManagerPrx::uncheckedCast(result->getProxy());
2671 proxy->end_startService(result);
2673 catch(const ::Ice::Exception& ex)
2675 ::IceInternal::Callback<T, CT>::exception(result, ex);
2680 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(CT::dynamicCast(result->getCookie()));
2699template<
class T,
typename CT> Callback_ServiceManager_startServicePtr
2700newCallback_ServiceManager_startService(
const IceUtil::Handle<T>& instance,
void (T::*cb)(
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2702 return new Callback_ServiceManager_startService<T, CT>(instance, cb, excb, sentcb);
2713template<
class T,
typename CT> Callback_ServiceManager_startServicePtr
2714newCallback_ServiceManager_startService(
const IceUtil::Handle<T>& instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2716 return new Callback_ServiceManager_startService<T, CT>(instance, 0, excb, sentcb);
2728template<
class T,
typename CT> Callback_ServiceManager_startServicePtr
2729newCallback_ServiceManager_startService(T* instance,
void (T::*cb)(
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2731 return new Callback_ServiceManager_startService<T, CT>(instance, cb, excb, sentcb);
2742template<
class T,
typename CT> Callback_ServiceManager_startServicePtr
2743newCallback_ServiceManager_startService(T* instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2745 return new Callback_ServiceManager_startService<T, CT>(instance, 0, excb, sentcb);
2754class CallbackNC_ServiceManager_stopService :
public Callback_ServiceManager_stopService_Base,
public ::IceInternal::TwowayCallbackNC<T>
2758 typedef IceUtil::Handle<T> TPtr;
2760 typedef void (T::*Exception)(const ::Ice::Exception&);
2761 typedef void (T::*Sent)(bool);
2762 typedef void (T::*Response)();
2764 CallbackNC_ServiceManager_stopService(
const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2765 : ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
2770 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2772 ServiceManagerPrx proxy = ServiceManagerPrx::uncheckedCast(result->getProxy());
2775 proxy->end_stopService(result);
2777 catch(const ::Ice::Exception& ex)
2779 ::IceInternal::CallbackNC<T>::exception(result, ex);
2784 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)();
2802template<
class T> Callback_ServiceManager_stopServicePtr
2803newCallback_ServiceManager_stopService(
const IceUtil::Handle<T>& instance,
void (T::*cb)(),
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2805 return new CallbackNC_ServiceManager_stopService<T>(instance, cb, excb, sentcb);
2815template<
class T> Callback_ServiceManager_stopServicePtr
2816newCallback_ServiceManager_stopService(
const IceUtil::Handle<T>& instance,
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2818 return new CallbackNC_ServiceManager_stopService<T>(instance, 0, excb, sentcb);
2829template<
class T> Callback_ServiceManager_stopServicePtr
2830newCallback_ServiceManager_stopService(T* instance,
void (T::*cb)(),
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2832 return new CallbackNC_ServiceManager_stopService<T>(instance, cb, excb, sentcb);
2842template<
class T> Callback_ServiceManager_stopServicePtr
2843newCallback_ServiceManager_stopService(T* instance,
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2845 return new CallbackNC_ServiceManager_stopService<T>(instance, 0, excb, sentcb);
2853template<
class T,
typename CT>
2854class Callback_ServiceManager_stopService :
public Callback_ServiceManager_stopService_Base,
public ::IceInternal::TwowayCallback<T, CT>
2858 typedef IceUtil::Handle<T> TPtr;
2860 typedef void (T::*Exception)(const ::Ice::Exception& ,
const CT&);
2861 typedef void (T::*Sent)(bool ,
const CT&);
2862 typedef void (T::*Response)(
const CT&);
2864 Callback_ServiceManager_stopService(
const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2865 : ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
2870 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2872 ServiceManagerPrx proxy = ServiceManagerPrx::uncheckedCast(result->getProxy());
2875 proxy->end_stopService(result);
2877 catch(const ::Ice::Exception& ex)
2879 ::IceInternal::Callback<T, CT>::exception(result, ex);
2884 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(CT::dynamicCast(result->getCookie()));
2903template<
class T,
typename CT> Callback_ServiceManager_stopServicePtr
2904newCallback_ServiceManager_stopService(
const IceUtil::Handle<T>& instance,
void (T::*cb)(
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2906 return new Callback_ServiceManager_stopService<T, CT>(instance, cb, excb, sentcb);
2917template<
class T,
typename CT> Callback_ServiceManager_stopServicePtr
2918newCallback_ServiceManager_stopService(
const IceUtil::Handle<T>& instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2920 return new Callback_ServiceManager_stopService<T, CT>(instance, 0, excb, sentcb);
2932template<
class T,
typename CT> Callback_ServiceManager_stopServicePtr
2933newCallback_ServiceManager_stopService(T* instance,
void (T::*cb)(
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2935 return new Callback_ServiceManager_stopService<T, CT>(instance, cb, excb, sentcb);
2946template<
class T,
typename CT> Callback_ServiceManager_stopServicePtr
2947newCallback_ServiceManager_stopService(T* instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2949 return new Callback_ServiceManager_stopService<T, CT>(instance, 0, excb, sentcb);
2958class CallbackNC_ServiceManager_addObserver :
public Callback_ServiceManager_addObserver_Base,
public ::IceInternal::OnewayCallbackNC<T>
2962 typedef IceUtil::Handle<T> TPtr;
2964 typedef void (T::*Exception)(const ::Ice::Exception&);
2965 typedef void (T::*Sent)(bool);
2966 typedef void (T::*Response)();
2968 CallbackNC_ServiceManager_addObserver(
const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2969 : ::IceInternal::OnewayCallbackNC<T>(obj, cb, excb, sentcb)
2982template<
class T> Callback_ServiceManager_addObserverPtr
2983newCallback_ServiceManager_addObserver(
const IceUtil::Handle<T>& instance,
void (T::*cb)(),
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2985 return new CallbackNC_ServiceManager_addObserver<T>(instance, cb, excb, sentcb);
2995template<
class T> Callback_ServiceManager_addObserverPtr
2996newCallback_ServiceManager_addObserver(
const IceUtil::Handle<T>& instance,
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2998 return new CallbackNC_ServiceManager_addObserver<T>(instance, 0, excb, sentcb);
3009template<
class T> Callback_ServiceManager_addObserverPtr
3010newCallback_ServiceManager_addObserver(T* instance,
void (T::*cb)(),
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
3012 return new CallbackNC_ServiceManager_addObserver<T>(instance, cb, excb, sentcb);
3022template<
class T> Callback_ServiceManager_addObserverPtr
3023newCallback_ServiceManager_addObserver(T* instance,
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
3025 return new CallbackNC_ServiceManager_addObserver<T>(instance, 0, excb, sentcb);
3033template<
class T,
typename CT>
3034class Callback_ServiceManager_addObserver :
public Callback_ServiceManager_addObserver_Base,
public ::IceInternal::OnewayCallback<T, CT>
3038 typedef IceUtil::Handle<T> TPtr;
3040 typedef void (T::*Exception)(const ::Ice::Exception& ,
const CT&);
3041 typedef void (T::*Sent)(bool ,
const CT&);
3042 typedef void (T::*Response)(
const CT&);
3044 Callback_ServiceManager_addObserver(
const TPtr& obj, Response cb, Exception excb, Sent sentcb)
3045 : ::IceInternal::OnewayCallback<T, CT>(obj, cb, excb, sentcb)
3059template<
class T,
typename CT> Callback_ServiceManager_addObserverPtr
3060newCallback_ServiceManager_addObserver(
const IceUtil::Handle<T>& instance,
void (T::*cb)(
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
3062 return new Callback_ServiceManager_addObserver<T, CT>(instance, cb, excb, sentcb);
3073template<
class T,
typename CT> Callback_ServiceManager_addObserverPtr
3074newCallback_ServiceManager_addObserver(
const IceUtil::Handle<T>& instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
3076 return new Callback_ServiceManager_addObserver<T, CT>(instance, 0, excb, sentcb);
3088template<
class T,
typename CT> Callback_ServiceManager_addObserverPtr
3089newCallback_ServiceManager_addObserver(T* instance,
void (T::*cb)(
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
3091 return new Callback_ServiceManager_addObserver<T, CT>(instance, cb, excb, sentcb);
3102template<
class T,
typename CT> Callback_ServiceManager_addObserverPtr
3103newCallback_ServiceManager_addObserver(T* instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
3105 return new Callback_ServiceManager_addObserver<T, CT>(instance, 0, excb, sentcb);
3114class CallbackNC_ServiceManager_shutdown :
public Callback_ServiceManager_shutdown_Base,
public ::IceInternal::OnewayCallbackNC<T>
3118 typedef IceUtil::Handle<T> TPtr;
3120 typedef void (T::*Exception)(const ::Ice::Exception&);
3121 typedef void (T::*Sent)(bool);
3122 typedef void (T::*Response)();
3124 CallbackNC_ServiceManager_shutdown(
const TPtr& obj, Response cb, Exception excb, Sent sentcb)
3125 : ::IceInternal::OnewayCallbackNC<T>(obj, cb, excb, sentcb)
3138template<
class T> Callback_ServiceManager_shutdownPtr
3139newCallback_ServiceManager_shutdown(
const IceUtil::Handle<T>& instance,
void (T::*cb)(),
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
3141 return new CallbackNC_ServiceManager_shutdown<T>(instance, cb, excb, sentcb);
3151template<
class T> Callback_ServiceManager_shutdownPtr
3152newCallback_ServiceManager_shutdown(
const IceUtil::Handle<T>& instance,
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
3154 return new CallbackNC_ServiceManager_shutdown<T>(instance, 0, excb, sentcb);
3165template<
class T> Callback_ServiceManager_shutdownPtr
3166newCallback_ServiceManager_shutdown(T* instance,
void (T::*cb)(),
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
3168 return new CallbackNC_ServiceManager_shutdown<T>(instance, cb, excb, sentcb);
3178template<
class T> Callback_ServiceManager_shutdownPtr
3179newCallback_ServiceManager_shutdown(T* instance,
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
3181 return new CallbackNC_ServiceManager_shutdown<T>(instance, 0, excb, sentcb);
3189template<
class T,
typename CT>
3190class Callback_ServiceManager_shutdown :
public Callback_ServiceManager_shutdown_Base,
public ::IceInternal::OnewayCallback<T, CT>
3194 typedef IceUtil::Handle<T> TPtr;
3196 typedef void (T::*Exception)(const ::Ice::Exception& ,
const CT&);
3197 typedef void (T::*Sent)(bool ,
const CT&);
3198 typedef void (T::*Response)(
const CT&);
3200 Callback_ServiceManager_shutdown(
const TPtr& obj, Response cb, Exception excb, Sent sentcb)
3201 : ::IceInternal::OnewayCallback<T, CT>(obj, cb, excb, sentcb)
3215template<
class T,
typename CT> Callback_ServiceManager_shutdownPtr
3216newCallback_ServiceManager_shutdown(
const IceUtil::Handle<T>& instance,
void (T::*cb)(
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
3218 return new Callback_ServiceManager_shutdown<T, CT>(instance, cb, excb, sentcb);
3229template<
class T,
typename CT> Callback_ServiceManager_shutdownPtr
3230newCallback_ServiceManager_shutdown(
const IceUtil::Handle<T>& instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
3232 return new Callback_ServiceManager_shutdown<T, CT>(instance, 0, excb, sentcb);
3244template<
class T,
typename CT> Callback_ServiceManager_shutdownPtr
3245newCallback_ServiceManager_shutdown(T* instance,
void (T::*cb)(
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
3247 return new Callback_ServiceManager_shutdown<T, CT>(instance, cb, excb, sentcb);
3258template<
class T,
typename CT> Callback_ServiceManager_shutdownPtr
3259newCallback_ServiceManager_shutdown(T* instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
3261 return new Callback_ServiceManager_shutdown<T, CT>(instance, 0, excb, sentcb);
#define ICEBOX_API
Definition IceBox.h:61
#define ICE_MEMBER(API)
Definition Config.h:177
This exception is thrown if an attempt is made to start an already-started service.
Definition IceBox.h:149
virtual ~AlreadyStartedException()
std::tuple ice_tuple() const
Obtains a tuple containing all of the exception's data members.
Definition IceBox.h:162
AlreadyStartedException()=default
static const ::std::string & ice_staticId()
Obtains the Slice type ID of this exception.
AlreadyStartedException(const AlreadyStartedException &)=default
AlreadyStoppedException()=default
virtual ~AlreadyStoppedException()
AlreadyStoppedException(const AlreadyStoppedException &)=default
std::tuple ice_tuple() const
Obtains a tuple containing all of the exception's data members.
Definition IceBox.h:197
static const ::std::string & ice_staticId()
Obtains the Slice type ID of this exception.
::std::string reason
The reason for the failure.
Definition IceBox.h:140
static const ::std::string & ice_staticId()
Obtains the Slice type ID of this exception.
virtual void ice_print(::std::ostream &stream) const override
Prints this exception to the given stream.
std::tuple< const ::std::string & > ice_tuple() const
Obtains a tuple containing all of the exception's data members.
Definition IceBox.h:121
FailureException(const FailureException &)=default
FailureException(const char *file, int line)
The file and line number are required for all local exceptions.
Definition IceBox.h:101
FailureException(const char *file, int line, const ::std::string &reason)
One-shot constructor to initialize all data members.
Definition IceBox.h:112
virtual ~FailureException()
std::tuple ice_tuple() const
Obtains a tuple containing all of the exception's data members.
Definition IceBox.h:228
virtual ~NoSuchServiceException()
NoSuchServiceException()=default
NoSuchServiceException(const NoSuchServiceException &)=default
static const ::std::string & ice_staticId()
Obtains the Slice type ID of this exception.
Administers a set of Service instances.
Definition IceBox.h:574
auto startServiceAsync(const ::std::string &service, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void > >().get_future())
Start an individual service.
Definition IceBox.h:639
void shutdown(const ::Ice::Context &context=::Ice::noExplicitContext)
Shut down all services.
Definition IceBox.h:766
void startService(const ::std::string &service, const ::Ice::Context &context=::Ice::noExplicitContext)
Start an individual service.
Definition IceBox.h:627
::std::function< void()> addObserverAsync(const ::std::shared_ptr< ServiceObserverPrx > &observer, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
Registers a new observer with the ServiceManager.
Definition IceBox.h:749
void addObserver(const ::std::shared_ptr< ServiceObserverPrx > &observer, const ::Ice::Context &context=::Ice::noExplicitContext)
Registers a new observer with the ServiceManager.
Definition IceBox.h:721
::std::function< void()> getSliceChecksumsAsync(::std::function< void(::Ice::SliceChecksumDict)> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
Returns the checksums for the IceBox Slice definitions.
Definition IceBox.h:608
::std::function< void()> shutdownAsync(::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
Shut down all services.
Definition IceBox.h:792
auto addObserverAsync(const ::std::shared_ptr< ServiceObserverPrx > &observer, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void > >().get_future())
Registers a new observer with the ServiceManager.
Definition IceBox.h:733
::Ice::SliceChecksumDict getSliceChecksums(const ::Ice::Context &context=::Ice::noExplicitContext)
Returns the checksums for the IceBox Slice definitions.
Definition IceBox.h:582
auto shutdownAsync(const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void > >().get_future())
Shut down all services.
Definition IceBox.h:777
auto stopServiceAsync(const ::std::string &service, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void > >().get_future())
Stop an individual service.
Definition IceBox.h:687
auto getSliceChecksumsAsync(const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P<::Ice::SliceChecksumDict > >().get_future())
Returns the checksums for the IceBox Slice definitions.
Definition IceBox.h:593
::std::function< void()> startServiceAsync(const ::std::string &service, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
Start an individual service.
Definition IceBox.h:655
::std::function< void()> stopServiceAsync(const ::std::string &service, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
Stop an individual service.
Definition IceBox.h:703
static const ::std::string & ice_staticId()
Obtains the Slice type ID of this interface.
void stopService(const ::std::string &service, const ::Ice::Context &context=::Ice::noExplicitContext)
Stop an individual service.
Definition IceBox.h:675
Administers a set of Service instances.
Definition IceBox.h:354
virtual ::std::vector<::std::string > ice_ids(const ::Ice::Current ¤t) const override
Obtains a list of the Slice type IDs representing the interfaces supported by this object.
virtual::std::string ice_id(const ::Ice::Current ¤t) const override
Obtains a Slice type ID representing the most-derived interface supported by this object.
virtual void startService(::std::string service, const ::Ice::Current ¤t)=0
Start an individual service.
virtual::Ice::SliceChecksumDict getSliceChecksums(const ::Ice::Current ¤t) const =0
Returns the checksums for the IceBox Slice definitions.
virtual void addObserver(::std::shared_ptr< ServiceObserverPrx > observer, const ::Ice::Current ¤t)=0
Registers a new observer with the ServiceManager.
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this class.
virtual void stopService(::std::string service, const ::Ice::Current ¤t)=0
Stop an individual service.
virtual void shutdown(const ::Ice::Current ¤t)=0
Shut down all services.
ServiceManagerPrx ProxyType
Definition IceBox.h:357
virtual bool ice_isA(::std::string id, const ::Ice::Current ¤t) const override
Determines whether this object supports an interface with the given Slice type ID.
An Observer interface implemented by admin clients interested in the status of services.
Definition IceBox.h:457
void servicesStopped(const ::Ice::StringSeq &services, const ::Ice::Context &context=::Ice::noExplicitContext)
Receives the names of the services that were stopped.
Definition IceBox.h:511
auto servicesStoppedAsync(const ::Ice::StringSeq &services, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void > >().get_future())
Receives the names of the services that were stopped.
Definition IceBox.h:523
auto servicesStartedAsync(const ::Ice::StringSeq &services, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void > >().get_future())
Receives the names of the services that were started.
Definition IceBox.h:477
void servicesStarted(const ::Ice::StringSeq &services, const ::Ice::Context &context=::Ice::noExplicitContext)
Receives the names of the services that were started.
Definition IceBox.h:465
static const ::std::string & ice_staticId()
Obtains the Slice type ID of this interface.
::std::function< void()> servicesStartedAsync(const ::Ice::StringSeq &services, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
Receives the names of the services that were started.
Definition IceBox.h:493
::std::function< void()> servicesStoppedAsync(const ::Ice::StringSeq &services, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
Receives the names of the services that were stopped.
Definition IceBox.h:539
An Observer interface implemented by admin clients interested in the status of services.
Definition IceBox.h:290
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this class.
virtual void servicesStopped(::Ice::StringSeq services, const ::Ice::Current ¤t)=0
Receives the names of the services that were stopped.
virtual ::std::vector<::std::string > ice_ids(const ::Ice::Current ¤t) const override
Obtains a list of the Slice type IDs representing the interfaces supported by this object.
virtual::std::string ice_id(const ::Ice::Current ¤t) const override
Obtains a Slice type ID representing the most-derived interface supported by this object.
ServiceObserverPrx ProxyType
Definition IceBox.h:293
virtual bool ice_isA(::std::string id, const ::Ice::Current ¤t) const override
Determines whether this object supports an interface with the given Slice type ID.
virtual void servicesStarted(::Ice::StringSeq services, const ::Ice::Current ¤t)=0
Receives the names of the services that were started.
An application service managed by a ServiceManager.
Definition IceBox.h:250
virtual void start(const ::std::string &name, const ::std::shared_ptr<::Ice::Communicator > &communicator, const ::Ice::StringSeq &args)=0
Start the service.
virtual void stop()=0
Stop the service.
Helper template for the implementation of Ice::LocalException.
Definition ExceptionHelpers.h:23
LocalException(const char *file, int line)
The file and line number are required for all local exceptions.
The base class for servants.
Definition Object.h:91
Helper template that supplies proxy factory functions.
Definition Proxy.h:1204
Helper template for the implementation of Ice::UserException.
Definition ExceptionHelpers.h:39
Definition BuiltinSequences.h:56
const Context noExplicitContext
Marker value used to indicate that no explicit context was passed to a proxy invocation.
::std::map<::std::string, ::std::string > Context
A request context.
Definition Current.h:68
const Current emptyCurrent
A default-initialized Current instance.
IceInternal::Handle< LocalObject > LocalObjectPtr
Definition LocalObjectF.h:17
bool operator<(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition Comparable.h:136
::std::vector<::std::string > StringSeq
A sequence of strings.
Definition BuiltinSequences.h:96
bool operator==(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition Comparable.h:184
::std::map<::std::string, ::std::string > SliceChecksumDict
A mapping from type IDs to Slice checksums.
Definition SliceChecksumDict.h:63