

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) |
| alma::acssamp::jtest::acssampConsumer::acssampConsumer | ( | String | ncChannel, | |
| ContainerServices | cServices | |||
| ) | throws AcsJException [inline] |
Creates a new instance of acssampConsumer
References alma::acs::nc::Consumer::addSubscription(), and alma::ACSErrTypeCommon::wrappers::AcsJGenericErrorEx::setErrorDesc().
| void alma::acssamp::jtest::acssampConsumer::ncDisconnect | ( | ) | [inline] |
References alma::acs::nc::Consumer::disconnect(), and eventCount.
Referenced by alma::acssamp::jtest::acssampJTest::acssampJTest().
| 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.
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.
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.
Total number of events that have been consumed.
Referenced by ncDisconnect(), and push_structured_event().
1.6.2