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

alma::acs::jlog::test::LongRunTest Class Reference

List of all members.

Public Member Functions

 LongRunTest (String endTime, String msec, String logInt) throws IllegalArgumentException
void run ()
 LongRunTest (String endTime, String msec, String logInt) throws IllegalArgumentException
void run ()

Static Public Member Functions

void usage ()
void main (String[] args)
void usage ()
void main (String[] args)

Private Member Functions

void setInterval (String millisec, String blockInt) throws IllegalArgumentException
void setEndTime (String time) throws IllegalArgumentException
boolean checkTime ()
boolean connectACSComponentClient ()
void publishLogsBlock ()
void setInterval (String millisec, String blockInt) throws IllegalArgumentException
void setEndTime (String time) throws IllegalArgumentException
boolean checkTime ()
boolean connectACSComponentClient ()
void publishLogsBlock ()

Private Attributes

int endHr
int endMin
int msec
int blockInterval = LongRunTest.LOGS_INTERVAL
AdvancedComponentClient client = null
Logger logger = null

Static Private Attributes

final int LOGS_INTERVAL = 100
final String logMsg = "Log message published at "

Detailed Description

The class sends log till a certain time. The purpose is to execute jlog for a long periodo of time.

: this class illegally uses code from module jcont which is not availeble because jlog builds before jcont. It only works with the current practice of first building src in all modules and then the tests later.

Author:
acaproni


Constructor & Destructor Documentation

alma::acs::jlog::test::LongRunTest::LongRunTest String  endTime,
String  msec,
String  logInt
throws IllegalArgumentException [inline]
 

alma::acs::jlog::test::LongRunTest::LongRunTest String  endTime,
String  msec,
String  logInt
throws IllegalArgumentException [inline]
 


Member Function Documentation

boolean alma::acs::jlog::test::LongRunTest::checkTime  )  [inline, private]
 

Returns:
true if the current time

boolean alma::acs::jlog::test::LongRunTest::checkTime  )  [inline, private]
 

Returns:
true if the current time

boolean alma::acs::jlog::test::LongRunTest::connectACSComponentClient  )  [inline, private]
 

Connect to ACS as component client. It connects client and the logger.

Returns:
True if the connection is ok

boolean alma::acs::jlog::test::LongRunTest::connectACSComponentClient  )  [inline, private]
 

Connect to ACS as component client. It connects client and the logger.

Returns:
True if the connection is ok

void alma::acs::jlog::test::LongRunTest::main String[]  args  )  [inline, static]
 

The starting point of the application

void alma::acs::jlog::test::LongRunTest::main String[]  args  )  [inline, static]
 

The starting point of the application

void alma::acs::jlog::test::LongRunTest::publishLogsBlock  )  [inline, private]
 

Logs a block of logs i.e. one log of each type separated byt LOGS_INTERVAL msec

void alma::acs::jlog::test::LongRunTest::publishLogsBlock  )  [inline, private]
 

Logs a block of logs i.e. one log of each type separated byt LOGS_INTERVAL msec

void alma::acs::jlog::test::LongRunTest::run  )  [inline]
 

The thread to publish logs

void alma::acs::jlog::test::LongRunTest::run  )  [inline]
 

The thread to publish logs

void alma::acs::jlog::test::LongRunTest::setEndTime String  time  )  throws IllegalArgumentException [inline, private]
 

Decode the hr:min string into the local variables

Parameters:
time The time in the format hh:mm

void alma::acs::jlog::test::LongRunTest::setEndTime String  time  )  throws IllegalArgumentException [inline, private]
 

Decode the hr:min string into the local variables

Parameters:
time The time in the format hh:mm

void alma::acs::jlog::test::LongRunTest::setInterval String  millisec,
String  blockInt
throws IllegalArgumentException [inline, private]
 

Decode the millisec

Parameters:
millisec The interval in msec between the sending of two blocks of logs
logInt The interval in msec between the sending of two logs in a block (it can be null, in that case the default is used)

void alma::acs::jlog::test::LongRunTest::setInterval String  millisec,
String  blockInt
throws IllegalArgumentException [inline, private]
 

Decode the millisec

Parameters:
millisec The interval in msec between the sending of two blocks of logs
logInt The interval in msec between the sending of two logs in a block (it can be null, in that case the default is used)

void alma::acs::jlog::test::LongRunTest::usage  )  [inline, static]
 

Print the usage message on stdout

void alma::acs::jlog::test::LongRunTest::usage  )  [inline, static]
 

Print the usage message on stdout


Member Data Documentation

int alma::acs::jlog::test::LongRunTest::blockInterval = LongRunTest.LOGS_INTERVAL [private]
 

AdvancedComponentClient alma::acs::jlog::test::LongRunTest::client = null [private]
 

int alma::acs::jlog::test::LongRunTest::endHr [private]
 

int alma::acs::jlog::test::LongRunTest::endMin [private]
 

Logger alma::acs::jlog::test::LongRunTest::logger = null [private]
 

final String alma::acs::jlog::test::LongRunTest::logMsg = "Log message published at " [static, private]
 

final int alma::acs::jlog::test::LongRunTest::LOGS_INTERVAL = 100 [static, private]
 

int alma::acs::jlog::test::LongRunTest::msec [private]
 


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