

Public Member Functions | |
| LogEngineProfiler () | |
| void | execute () |
| void | addShutdownHook () |
| void | xmlEntryReceived (String xmlLogString) |
| void | logEntryReceived (ILogEntry logEntry) |
Static Public Member Functions | |
| static void | main (String[] args) |
Private Attributes | |
| final LCEngine | engine |
| final Object | mutex = new Object() |
Objects of this class connects to the logging NC with an instance of LCEngine and gets logs. The logs received are discarded i.e. this class does not add any computation/storage to what the jlog engine does so that we can profile the engine classes launching this log consumer.
The process never ends so the user has to press CTRL+C to terminate it.
| alma::acs::jlog::test::LogEngineProfiler::LogEngineProfiler | ( | ) | [inline] |
Constructor
References 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::LogEngineProfiler::addShutdownHook | ( | ) | [inline] |
Closes the engine when the user presses CTRL+C
References com::cosylab::logging::engine::ACS::LCEngine::close(), engine, com::cosylab::logging::engine::ACS::LCEngine::isConnected(), and mutex.
| void alma::acs::jlog::test::LogEngineProfiler::execute | ( | ) | [inline] |
| void alma::acs::jlog::test::LogEngineProfiler::logEntryReceived | ( | ILogEntry | logEntry | ) | [inline] |
The method is executed when a new log arrives from the NC
| logEntry | The new log just read from the NC |
Implements com::cosylab::logging::engine::ACS::ACSRemoteLogListener.
| static void alma::acs::jlog::test::LogEngineProfiler::main | ( | String[] | args | ) | [inline, static] |
References execute(), and LogEngineProfiler().
| void alma::acs::jlog::test::LogEngineProfiler::xmlEntryReceived | ( | String | xmlLogString | ) | [inline] |
The method is executed when a new XML string arrives from the NC
| xmlLogString | The new XML string just read from the NC |
Implements com::cosylab::logging::engine::ACS::ACSRemoteRawLogListener.
final LCEngine alma::acs::jlog::test::LogEngineProfiler::engine [private] |
The engine to connect to logging NC
Referenced by addShutdownHook(), and LogEngineProfiler().
final Object alma::acs::jlog::test::LogEngineProfiler::mutex = new Object() [private] |
The object to wait for terminating the process
Referenced by addShutdownHook(), and execute().
1.6.2