

Public Member Functions | |
| ACSStructuredPushConsumer (ACSRemoteAccess acsra, ACSListenersDispatcher listenersDispatcher, ACSLogRetrieval logRetrieval, boolean binaryFormat) | |
| void | connect () |
| void | destroy () |
| void | disconnect_structured_push_consumer () |
| boolean | isInitialized () |
| void | offer_change (org.omg.CosNotification.EventType[] added, org.omg.CosNotification.EventType[] removed) throws org.omg.CosNotifyComm.InvalidEventType |
| void | push_structured_event (StructuredEvent event) throws org.omg.CosEventComm.Disconnected |
| void | setupEvents () |
| void | teardownEvents () |
| boolean | isConnected () |
| boolean | isSuspended () |
| void | setSupended (boolean suspended) |
| void | close (boolean sync) |
Protected Attributes | |
| StructuredProxyPushSupplier | structuredProxyPushSupplier = null |
| boolean | isConnected = false |
| boolean | isEventSetup = false |
| boolean | isInitialized = false |
Private Member Functions | |
| void | initialize () |
Private Attributes | |
| ACSRemoteAccess | acsra = null |
| boolean | binaryFormat |
| boolean | suspended = false |
| ACSListenersDispatcher | listenersDispatcher = null |
| volatile boolean | closed = false |
| ACSLogRetrieval | logRetrieval |
ACSStructuredPushConsumer gets logs from the NC and stores them in a list called receivedLogs.
It supports binary and XML formats.
| com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::ACSStructuredPushConsumer | ( | ACSRemoteAccess | acsra, | |
| ACSListenersDispatcher | listenersDispatcher, | |||
| ACSLogRetrieval | logRetrieval, | |||
| boolean | binaryFormat | |||
| ) | [inline] |
StructuredPushConsumer constructor comment.
References initialize().
| void com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::close | ( | boolean | sync | ) | [inline] |
Close the threads and free all the resources
| sync | If it is true wait the termination of the threads before returning |
References closed.
Referenced by com::cosylab::logging::engine::ACS::ACSRemoteAccess::close().
| void com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::connect | ( | ) | [inline] |
Connects the push supplier to the push consumer.
References acsra, com::cosylab::logging::engine::ACS::ACSRemoteAccess::getORB(), isConnected(), listenersDispatcher, com::cosylab::logging::engine::ACS::ACSListenersDispatcher::publishReport(), and structuredProxyPushSupplier.
Referenced by com::cosylab::logging::engine::ACS::ACSRemoteAccess::createStructuredPushConsumer().
| void com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::destroy | ( | ) | [inline] |
| void com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::disconnect_structured_push_consumer | ( | ) | [inline] |
| void com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::initialize | ( | ) | [inline, private] |
Initializes the parser. Creation date: (10/24/2001 12:48:32 PM)
References acsra, com::cosylab::logging::engine::ACS::ACSRemoteAccess::getConsumerAdmin(), isInitialized(), listenersDispatcher, com::cosylab::logging::engine::ACS::ACSListenersDispatcher::publishReport(), and structuredProxyPushSupplier.
Referenced by ACSStructuredPushConsumer().
| boolean com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::isConnected | ( | ) | [inline] |
Check if the consumer is connected by reconnecting the channel
References structuredProxyPushSupplier.
Referenced by connect().
| boolean com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::isInitialized | ( | ) | [inline] |
Referenced by initialize().
| boolean com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::isSuspended | ( | ) | [inline] |
References suspended.
Referenced by com::cosylab::logging::engine::ACS::ACSRemoteAccess::isSupended().
| void com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::offer_change | ( | org.omg.CosNotification.EventType[] | added, | |
| org.omg.CosNotification.EventType[] | removed | |||
| ) | throws org.omg.CosNotifyComm.InvalidEventType [inline] |
| void com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::push_structured_event | ( | StructuredEvent | event | ) | throws org.omg.CosEventComm.Disconnected [inline] |
Adds all the logs to a list in a synchronized manner.
References com::cosylab::logging::engine::ACS::ACSLogRetrieval::addLog(), binaryFormat, closed, logRetrieval, suspended, and alma::Logging::XmlLogRecord::xml.
| void com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::setSupended | ( | boolean | suspended | ) | [inline] |
Suspend the notification of the incoming logs The logs received while suspended discarded (i.e. lost forever)
| suspend | If true suspend the notification of new logs |
References listenersDispatcher, com::cosylab::logging::engine::ACS::ACSListenersDispatcher::publishConnected(), and com::cosylab::logging::engine::ACS::ACSListenersDispatcher::publishSuspended().
Referenced by com::cosylab::logging::engine::ACS::ACSRemoteAccess::setSuspended().
| void com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::setupEvents | ( | ) | [inline] |
Changes subscription on ConsumerAdmin.
References acsra, com::cosylab::logging::engine::ACS::ACSRemoteAccess::getConsumerAdmin(), isEventSetup, listenersDispatcher, and com::cosylab::logging::engine::ACS::ACSListenersDispatcher::publishReport().
Referenced by com::cosylab::logging::engine::ACS::ACSRemoteAccess::createStructuredPushConsumer().
| void com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::teardownEvents | ( | ) | [inline] |
Remove subscription on ConsumerAdmin.
References acsra, com::cosylab::logging::engine::ACS::ACSRemoteAccess::getConsumerAdmin(), isEventSetup, listenersDispatcher, and com::cosylab::logging::engine::ACS::ACSListenersDispatcher::publishReport().
Referenced by destroy().
ACSRemoteAccess com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::acsra = null [private] |
Referenced by connect(), destroy(), initialize(), setupEvents(), and teardownEvents().
Referenced by push_structured_event().
volatile boolean com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::closed = false [private] |
Referenced by close(), and push_structured_event().
boolean com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::isConnected = false [protected] |
boolean com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::isEventSetup = false [protected] |
boolean com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::isInitialized = false [protected] |
ACSListenersDispatcher com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::listenersDispatcher = null [private] |
Referenced by connect(), initialize(), setSupended(), setupEvents(), and teardownEvents().
ACSLogRetrieval com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::logRetrieval [private] |
Referenced by push_structured_event().
StructuredProxyPushSupplier com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::structuredProxyPushSupplier = null [protected] |
Referenced by connect(), destroy(), initialize(), and isConnected().
boolean com::cosylab::logging::engine::ACS::ACSStructuredPushConsumer::suspended = false [private] |
If it is suspended then the incoming messages are discarded instead of being notified to the listeners
Referenced by isSuspended(), and push_structured_event().
1.6.2