4 #ifndef NOTIFICATIONCONSUMER_H
5 #define NOTIFICATIONCONSUMER_H
7 #include <orbsvcs/CosNotifyChannelAdminC.h>
8 #include <orbsvcs/CosNotifyCommS.h>
25 virtual public POA_CosNotifyComm::StructuredPushConsumer
51 const std::string channelName,
52 const std::string consumerName);
63 throw(CosEventComm::Disconnected, CORBA::SystemException);
71 throw(CORBA::SystemException);
73 virtual void offer_change(
const CosNotification::EventTypeSeq&,
74 const CosNotification::EventTypeSeq&)
75 throw(CosNotifyComm::InvalidEventType, CORBA::SystemException);
77 virtual PortableServer::POA_ptr _default_POA();
105 std::string localOrbName_;
108 PortableServer::POA_var poa_;
109 CosNotifyChannelAdmin::StructuredProxyPushSupplier_var proxyPushSupplier_;
110 const std::string channelName_;
111 const std::string consumerName_;
138 #endif // eventconsumer_h
virtual void run()
Blocking call that activates the callback for collecting events from the notification server...
NotificationConsumer(Orb *localOrb, const std::string channelName, const std::string consumerName)
Constructor for Notification Consumer - creates ORB internally.
bool isActive()
Method to test whether consumer is active.
virtual void push_structured_event(const CosNotification::StructuredEvent &event)
Callback function that is called by the notification server when notifications arrive for this consum...
void deactivateConsumer()
Method to deactivate an active consumer.
A base class that accepts named events from a Push supplier.
virtual void disconnect_structured_push_consumer()
Callback function that gets called by the notification server if it decides to disconnect the push co...
void setProxyPushSupplier()
create a proxy push supplier for our push consumer