Public Member Functions | |
ExecutiveConsumer (String channelName, ContainerServicesBase services) throws AcsJException | |
void | push_structured_event (org.omg.CosNotification.StructuredEvent structuredEvent) |
Protected Member Functions | |
void | processEvent (java.lang.Object corbaObject, alma.acsnc.EventDescription eventDescrip) |
This is a prototype consumer designed to consume all types of events on a given event channel and print a minimal amount of data to standard out. Whether it is used or not in the GUI is still up for debate.
alma.acs.nc.ExecutiveConsumer.ExecutiveConsumer | ( | String | channelName, | |
ContainerServicesBase | services | |||
) | throws AcsJException |
Creates a new instance of ExecutiveConsumer
channelName | Name of the channel to consume events from. | |
services | ContainerServices which provide access to the ACS logger among other things. |
AcsJException | Thrown from superclass. |
References alma.acs.nc.Consumer.addSubscription().
void alma.acs.nc.ExecutiveConsumer.processEvent | ( | java.lang.Object | corbaObject, | |
alma.acsnc.EventDescription | eventDescrip | |||
) | [protected] |
Invoked each time an event is received. To be overriden.
corbaObject | The ICD event extracted from a CORBA Any. | |
eventDescrip | Description of the ICD event as defined in acsnc.idl |
References alma.acs.nc.Consumer.m_channelName, and alma.acs.nc.Consumer.m_logger.
Referenced by alma.acs.nc.ExecutiveConsumer.push_structured_event().
void alma.acs.nc.ExecutiveConsumer.push_structured_event | ( | org.omg.CosNotification.StructuredEvent | structuredEvent | ) |
CORBA method invoked each time an event is received.
structuredEvent | CORBA structured event sent by a supplier. |
References alma.acs.nc.Consumer.m_channelName, alma.acs.nc.Consumer.m_logger, and alma.acs.nc.ExecutiveConsumer.processEvent().