diff options
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.h')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.h new file mode 100644 index 00000000000..34c38f96400 --- /dev/null +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.h @@ -0,0 +1,72 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file FTEC_ProxySupplier.h + * + * $Id$ + * + * @author Huang-Ming Huang <hh1@cse.wustl.edu> + */ +//============================================================================= + +#ifndef TAO_FTEC_PROXYSUPPLIER_H +#define TAO_FTEC_PROXYSUPPLIER_H +#include "orbsvcs/Event/EC_Default_ProxySupplier.h" +#include "ace/SString.h" +#include "orbsvcs/FtRtecEventChannelAdminC.h" +#include "orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +class TAO_FTEC_ProxyPushSupplier : public TAO_EC_Default_ProxyPushSupplier +{ + typedef TAO_EC_Default_ProxyPushSupplier Inherited; +public: + typedef RtecEventChannelAdmin::ProxyPushSupplier Interface; + typedef FtRtecEventChannelAdmin::ProxyPushSupplierStat State; + typedef POA_RtecEventChannelAdmin::ProxyPushSupplier_ptr Skeleton; + + TAO_FTEC_ProxyPushSupplier(TAO_EC_Event_Channel_Base* event_channel, + int validate_connection); + /// Activate in the POA + virtual void activate ( + RtecEventChannelAdmin::ProxyPushSupplier_ptr &proxy + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC ((CORBA::SystemException)); + // = The RtecEventChannelAdmin::ProxyPushSupplier methods... + virtual void connect_push_consumer ( + RtecEventComm::PushConsumer_ptr push_consumer, + const RtecEventChannelAdmin::ConsumerQOS &qos + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC ((CORBA::SystemException, + RtecEventChannelAdmin::AlreadyConnected, + RtecEventChannelAdmin::TypeError)); + virtual void disconnect_push_supplier (ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC ((CORBA::SystemException)); + virtual void suspend_connection (ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC ((CORBA::SystemException)); + virtual void resume_connection (ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC ((CORBA::SystemException)); + + const FtRtecEventChannelAdmin::ObjectId& id() const; + + void get_state(FtRtecEventChannelAdmin::ProxyPushSupplierStat& state); + void set_state(const FtRtecEventChannelAdmin::ProxyPushSupplierStat& state + ACE_ENV_ARG_DECL); + + typedef void (FtRtecEventChannelAdmin::EventChannelFacade::*RollbackOperation) + (const FtRtecEventChannelAdmin::ObjectId& ACE_ENV_ARG_DECL); + + static const RollbackOperation rollback_obtain; +private: + FtRtecEventChannelAdmin::ObjectId_var object_id_; +}; + +TAO_END_VERSIONED_NAMESPACE_DECL + +#endif |