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

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

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

static void usage ()
static void main (String[] args)
static void usage ()
static 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

static final int LOGS_INTERVAL = 100
static 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

References endHr, and endMin.

boolean alma::acs::jlog::test::LongRunTest::checkTime (  )  [inline, private]
Returns:
true if the current time

References endHr, and endMin.

Referenced by run().

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

References client, and logger.

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

References client, and logger.

Referenced by LongRunTest().

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

The starting point of the application

References LongRunTest().

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

The starting point of the application

References LongRunTest().

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

The thread to publish logs

References checkTime(), msec, and publishLogsBlock().

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

The thread to publish logs

References checkTime(), msec, and publishLogsBlock().

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

References endHr, and endMin.

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

References endHr, and endMin.

Referenced by LongRunTest().

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)

References blockInterval, and msec.

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)

References blockInterval, and msec.

Referenced by LongRunTest().

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

Print the usage message on stdout

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

Print the usage message on stdout


Member Data Documentation

Referenced by publishLogsBlock(), and setInterval().

Referenced by checkTime(), and setEndTime().

Referenced by checkTime(), and setEndTime().

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

Referenced by LongRunTest(), run(), and setInterval().


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

Generated by  doxygen 1.6.2