#include <basencSupplier.h>
Public Member Functions | |
BaseSupplier (const char *channelName, const char *notifyServiceDomainName=0) | |
virtual void | disconnect () |
void | init (CosNaming::NamingContext_ptr nc_p) |
virtual void | subscription_change (const CosNotification::EventTypeSeq &added, const CosNotification::EventTypeSeq &removed) |
virtual void | disconnect_structured_push_supplier () |
Protected Member Functions | |
virtual | ~BaseSupplier () |
void | publishEvent (const CosNotification::StructuredEvent &event) |
virtual void | populateHeader (CosNotification::StructuredEvent &event) |
virtual const char * | getEventType ()=0 |
virtual const char * | getEventName () |
virtual acsnc::OSPushSupplier_ptr | getCORBARef () |
Private Member Functions | |
void | connect () |
Private Attributes | |
CosNotifyChannelAdmin::SupplierAdmin_var | supplierAdmin_m |
CosNotifyChannelAdmin::StructuredProxyPushConsumer_var | proxyConsumer_m |
CosNotifyChannelAdmin::ProxyID | proxyConsumerID_m |
CosNotifyChannelAdmin::AdminID | adminID_m |
acsnc::OSPushSupplier_var | corbaRef_m |
Abstract baseclass designed to send structured events out.
BaseSupplier::BaseSupplier | ( | const char * | channelName, | |
const char * | notifyServiceDomainName = 0 | |||
) |
Standard constructor.
channelName | Name of the channel to use. | |
notifyServiceDomainName | Name of the notification service domain name used to determine notification service. |
virtual BaseSupplier::~BaseSupplier | ( | ) | [protected, virtual] |
Destructor
void BaseSupplier::connect | ( | ) | [private] |
Connect the Supplier to the EventChannel.
supplier_admin | A supplier admin object which we can connect this instance of BaseSupplier to. |
virtual void BaseSupplier::disconnect | ( | ) | [virtual] |
Overridden.
Reimplemented from BaseHelper.
virtual void BaseSupplier::disconnect_structured_push_supplier | ( | ) | [virtual] |
CORBA method we do not really care about from this class other than the fact that it must be overridden.
virtual acsnc::OSPushSupplier_ptr BaseSupplier::getCORBARef | ( | ) | [protected, virtual] |
Utility method only used by Supplier and should not be called by your code directly. Provided just in case someone wants to create this object's underlying CORBA reference using other libraries/POAs/etc
virtual const char* BaseSupplier::getEventName | ( | ) | [inline, protected, virtual] |
This method returns a constant character pointer to the type of event.
virtual const char* BaseSupplier::getEventType | ( | ) | [protected, pure virtual] |
This method returns a constant character pointer to the type of event.
Implemented in AlarmSupplier, ArchiveSupplier, and TestSupplier.
void BaseSupplier::init | ( | CosNaming::NamingContext_ptr | nc_p | ) | [virtual] |
Overridden. This object will not function until this method has been invoked.
Reimplemented from BaseHelper.
virtual void BaseSupplier::populateHeader | ( | CosNotification::StructuredEvent & | event | ) | [protected, virtual] |
Developer's responsibility to call this method before sending any event.
Referenced by TestSupplier::publishEvent().
void BaseSupplier::publishEvent | ( | const CosNotification::StructuredEvent & | event | ) | [protected] |
Send an entire structured event. Subclasses should create their own structured event and then call this method to do the real publishing of events.
event | A CORBA StructuredEvent |
virtual void BaseSupplier::subscription_change | ( | const CosNotification::EventTypeSeq & | added, | |
const CosNotification::EventTypeSeq & | removed | |||
) | [virtual] |
CORBA method we do not really care about from this class other than the fact that it must be overridden.
CosNotifyComm::InvalidEventType |
CosNotifyChannelAdmin::AdminID BaseSupplier::adminID_m [private] |
Supplier admin ID.
acsnc::OSPushSupplier_var BaseSupplier::corbaRef_m [private] |
CORBA reference to myself.
CosNotifyChannelAdmin::StructuredProxyPushConsumer_var BaseSupplier::proxyConsumer_m [private] |
The proxy that we are connected to.
CosNotifyChannelAdmin::ProxyID BaseSupplier::proxyConsumerID_m [private] |
This supplier's id.
CosNotifyChannelAdmin::SupplierAdmin_var BaseSupplier::supplierAdmin_m [private] |
Supplier Admin object is responsible for creating & managing proxy consumers w/ a common set of QoS property settings & filter objects.