alma::acs::jlog::test::LogEngineProfiler Class Reference

Inheritance diagram for alma::acs::jlog::test::LogEngineProfiler:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::jlog::test::LogEngineProfiler:
Collaboration graph
[legend]

List of all members.

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()

Detailed Description

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.

Author:
acaproni

Constructor & Destructor Documentation

alma::acs::jlog::test::LogEngineProfiler::LogEngineProfiler (  )  [inline]

Member Function Documentation

void alma::acs::jlog::test::LogEngineProfiler::addShutdownHook (  )  [inline]
void alma::acs::jlog::test::LogEngineProfiler::execute (  )  [inline]

Wait until the user presses CTRL+C.

References mutex.

Referenced by main().

void alma::acs::jlog::test::LogEngineProfiler::logEntryReceived ( ILogEntry  logEntry  )  [inline]

The method is executed when a new log arrives from the NC

Parameters:
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

Parameters:
xmlLogString The new XML string just read from the NC

Implements com::cosylab::logging::engine::ACS::ACSRemoteRawLogListener.


Member Data Documentation

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().


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

Generated by  doxygen 1.6.2