alma::acs::jlog::test::LogListener Class Reference

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

List of all members.

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

Detailed Description

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

Author:
acaproni

Constructor & Destructor Documentation

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

Member Function Documentation

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 XML that was not possible to parse
  • a cache string if the binary format of logs is in use

The cache string is a string used in the cache whose format might change with different implementation of of the cache.

Parameters:
xml That string that caused the error

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

void alma::acs::jlog::test::LogListener::logEntryReceived ( ILogEntry  log  )  [inline]
static void alma::acs::jlog::test::LogListener::main ( String[]  args  )  [inline, static]

Main

Parameters:
args 

References disconnect(), and LogListener().

void alma::acs::jlog::test::LogListener::reportStatus ( String  status  )  [inline]
void alma::acs::jlog::test::LogListener::xmlEntryReceived ( String  str  )  [inline]

Member Data Documentation

Referenced by disconnect(), and LogListener().


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

Generated by  doxygen 1.6.2