alma::acssamp::jtest::acssampConsumer Class Reference

Inheritance diagram for alma::acssamp::jtest::acssampConsumer:
Inheritance graph
[legend]
Collaboration diagram for alma::acssamp::jtest::acssampConsumer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 acssampConsumer (String ncChannel, ContainerServices cServices) throws AcsJException
void receive (SampDataBlock[] sampData)
void push_structured_event (StructuredEvent structuredEvent) throws org.omg.CosEventComm.Disconnected
void ncDisconnect ()
void offer_change (EventType[] eventTypesNew, EventType[] eventTypesOnce)

Public Attributes

int eventCount = 0

Protected Member Functions

void processEvent (IDLEntity corbaData, EventDescription eventDescrip)

Constructor & Destructor Documentation

alma::acssamp::jtest::acssampConsumer::acssampConsumer ( String  ncChannel,
ContainerServices  cServices 
) throws AcsJException [inline]

Member Function Documentation

void alma::acssamp::jtest::acssampConsumer::ncDisconnect (  )  [inline]
void alma::acssamp::jtest::acssampConsumer::offer_change ( EventType[]  eventTypesNew,
EventType[]  eventTypesOnce 
) [inline]

Here we as a smart consumer would have a chance to subscribe to new types as they are being offered. Instead we just log the information.

See also:
alma.acs.nc.Consumer::offer_change(org.omg.CosNotification.EventType[], org.omg.CosNotification.EventType[])

Reimplemented from alma::acs::nc::Consumer.

References alma::acs::nc::Consumer::m_logger.

void alma::acssamp::jtest::acssampConsumer::processEvent ( IDLEntity  corbaData,
EventDescription  eventDescrip 
) [inline, protected]

Currently never called because we override the default impl of push_structured_event.

Reimplemented from alma::acs::nc::Consumer.

void alma::acssamp::jtest::acssampConsumer::push_structured_event ( StructuredEvent  structuredEvent  )  throws org.omg.CosEventComm.Disconnected [inline]

We directly overload the push_structured_event to steal the raw events before any processing by the NC classes can take place. Usually one would overload one of the processEvent methods.

See also:
alma.acs.nc.Consumer::push_structured_event(org.omg.CosNotification.StructuredEvent)

Reimplemented from alma::acs::nc::Consumer.

References eventCount, alma::acssamp::SampObjPackage::SampDataBlock::sampTime, and alma::acssamp::SampObjPackage::SampDataBlock::sampVal.

void alma::acssamp::jtest::acssampConsumer::receive ( SampDataBlock[]  sampData  )  [inline]

Should never be called as we don't register a receiver callback object with the NC framework.

References alma::acs::nc::Consumer::m_logger.


Member Data Documentation

Total number of events that have been consumed.

Referenced by ncDisconnect(), and push_structured_event().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2