

Public Member Functions | |
| void | errorReceived (String xml) |
| LogListener () | |
| void | acsLogConnEstablished () |
| void | acsLogConnDisconnected () |
| void | acsLogConnLost () |
| void | acsLogConnConnecting () |
| void | acsLogConnSuspended () |
| void | acsLogsDelay () |
| void | reportStatus (String status) |
| void | xmlEntryReceived (String str) |
| void | logEntryReceived (ILogEntry log) |
| void | disconnect () |
Static Public Member Functions | |
| static void | main (String[] args) |
Private Attributes | |
| LCEngine | engine |
A class to test the receptions of the logs through the listeners. The class instantiate a LCEngine and register itself as listeners. The logs and messages received are printed in the stdout
| alma::acs::jlog::test::LogListener::LogListener | ( | ) | [inline] |
The constructor
References com::cosylab::logging::engine::ACS::LCEngine::addLogConnectionListener(), com::cosylab::logging::engine::ACS::LCEngine::addLogErrorListener(), com::cosylab::logging::engine::ACS::LCEngine::addLogListener(), com::cosylab::logging::engine::ACS::LCEngine::addRawLogListener(), com::cosylab::logging::engine::ACS::LCEngine::connect(), and engine.
Referenced by main().
| void alma::acs::jlog::test::LogListener::acsLogConnConnecting | ( | ) | [inline] |
| void alma::acs::jlog::test::LogListener::acsLogConnDisconnected | ( | ) | [inline] |
| void alma::acs::jlog::test::LogListener::acsLogConnEstablished | ( | ) | [inline] |
Notify that the connection with ACS NC has been established
Implements com::cosylab::logging::engine::ACS::ACSLogConnectionListener.
| void alma::acs::jlog::test::LogListener::acsLogConnLost | ( | ) | [inline] |
| void alma::acs::jlog::test::LogListener::acsLogConnSuspended | ( | ) | [inline] |
| void alma::acs::jlog::test::LogListener::acsLogsDelay | ( | ) | [inline] |
| void alma::acs::jlog::test::LogListener::disconnect | ( | ) | [inline] |
Disconnect from the logging channel
References com::cosylab::logging::engine::ACS::LCEngine::disconnect(), and engine.
Referenced by main().
| void alma::acs::jlog::test::LogListener::errorReceived | ( | String | xml | ) | [inline] |
The method is executed when an error happened building a log from a string.
The parameter is the string that caused the error and it can be
The cache string is a string used in the cache whose format might change with different implementation of of the cache.
| xml | That string that caused the error |
Implements com::cosylab::logging::engine::ACS::ACSRemoteErrorListener.
| void alma::acs::jlog::test::LogListener::logEntryReceived | ( | ILogEntry | log | ) | [inline] |
Print only the messages received from the client
Implements com::cosylab::logging::engine::ACS::ACSRemoteLogListener.
References com::cosylab::logging::engine::log::ILogEntry::getField(), com::cosylab::logging::engine::log::ILogEntry::toString(), and com::cosylab::logging::engine::log::ILogEntry::toXMLString().
| static void alma::acs::jlog::test::LogListener::main | ( | String[] | args | ) | [inline, static] |
| void alma::acs::jlog::test::LogListener::reportStatus | ( | String | status | ) | [inline] |
| void alma::acs::jlog::test::LogListener::xmlEntryReceived | ( | String | str | ) | [inline] |
Print only the messages received from the client
Implements com::cosylab::logging::engine::ACS::ACSRemoteRawLogListener.
Referenced by disconnect(), and LogListener().
1.6.2