Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::jlog::test::LogDispatcherTest Class Reference

Collaboration diagram for alma::acs::jlog::test::LogDispatcherTest:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LogDispatcherTest ()
 LogDispatcherTest (String str)
void testXMLDispatch () throws Exception
void testBinaryDispatch () throws Exception
void testGetSetDiscardLevel () throws Exception
void testDynamicDiscardLevel () throws Exception

Protected Member Functions

void setUp () throws Exception
void tearDown () throws Exception

Private Member Functions

void waitProcessingComplete (ACSLogRetrieval processor)
synchronized String toCacheString (ILogEntry log) throws Exception
LogBinaryRecord convertLogToBinary (ILogEntry log) throws Exception

Private Attributes

final int LOGS_NUMBER = 50000
LogsRecv logRecv = null
Collection< ILogEntrylogs = null
StopWatch stopWatch = new StopWatch()
int logsReceived = 0
int rawLogsReceived = 0

Detailed Description

A class to test the dispatching of logs in XML and binary format. It tests the flow of the logs between they are added in the ACSLogRetrieval till the moment they are published to the listeners.

Author:
acaproni


Constructor & Destructor Documentation

alma::acs::jlog::test::LogDispatcherTest::LogDispatcherTest  )  [inline]
 

Constructor

alma::acs::jlog::test::LogDispatcherTest::LogDispatcherTest String  str  )  [inline]
 

Constructor


Member Function Documentation

LogBinaryRecord alma::acs::jlog::test::LogDispatcherTest::convertLogToBinary ILogEntry  log  )  throws Exception [inline, private]
 

Convert a ILogEntry into a binary log

Parameters:
The log to convert
Returns:
The binary log

void alma::acs::jlog::test::LogDispatcherTest::setUp  )  throws Exception [inline, protected]
 

See also:
junit.framework.TestCase

void alma::acs::jlog::test::LogDispatcherTest::tearDown  )  throws Exception [inline, protected]
 

See also:
junit.framework.TestCase

void alma::acs::jlog::test::LogDispatcherTest::testBinaryDispatch  )  throws Exception [inline]
 

Test the dispatching of binary logs

Exceptions:
Exception 

void alma::acs::jlog::test::LogDispatcherTest::testDynamicDiscardLevel  )  throws Exception [inline]
 

Test the changing of the discard level by simulating a low memory situation

Exceptions:
Exception 

void alma::acs::jlog::test::LogDispatcherTest::testGetSetDiscardLevel  )  throws Exception [inline]
 

Test setting and getting of the discard level.

Exceptions:
Exception 

void alma::acs::jlog::test::LogDispatcherTest::testXMLDispatch  )  throws Exception [inline]
 

Test the dispatching of XML logs

Exceptions:
Exception 

synchronized String alma::acs::jlog::test::LogDispatcherTest::toCacheString ILogEntry  log  )  throws Exception [inline, private]
 

Build the string for the cache out of an ILogEntry for the case of binary logs

Parameters:
log The log to get the cache string in binary format
Returns:
The cache string (binary format)

void alma::acs::jlog::test::LogDispatcherTest::waitProcessingComplete ACSLogRetrieval  processor  )  [inline, private]
 

Wait until all the logs are processed

Parameters:
processor 


Member Data Documentation

LogsRecv alma::acs::jlog::test::LogDispatcherTest::logRecv = null [private]
 

Collection<ILogEntry> alma::acs::jlog::test::LogDispatcherTest::logs = null [private]
 

final int alma::acs::jlog::test::LogDispatcherTest::LOGS_NUMBER = 50000 [private]
 

int alma::acs::jlog::test::LogDispatcherTest::logsReceived = 0 [private]
 

int alma::acs::jlog::test::LogDispatcherTest::rawLogsReceived = 0 [private]
 

StopWatch alma::acs::jlog::test::LogDispatcherTest::stopWatch = new StopWatch() [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:53:35 2009 for ACS Java API by doxygen 1.3.8