
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 " |
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.
| alma::acs::jlog::test::LongRunTest::LongRunTest | ( | String | endTime, | |
| String | msec, | |||
| String | logInt | |||
| ) | throws IllegalArgumentException [inline] |
References connectACSComponentClient(), msec, setEndTime(), and setInterval().
Referenced by main().
| alma::acs::jlog::test::LongRunTest::LongRunTest | ( | String | endTime, | |
| String | msec, | |||
| String | logInt | |||
| ) | throws IllegalArgumentException [inline] |
References connectACSComponentClient(), msec, setEndTime(), and setInterval().
| boolean alma::acs::jlog::test::LongRunTest::checkTime | ( | ) | [inline, private] |
| boolean alma::acs::jlog::test::LongRunTest::checkTime | ( | ) | [inline, private] |
| boolean alma::acs::jlog::test::LongRunTest::connectACSComponentClient | ( | ) | [inline, private] |
| boolean alma::acs::jlog::test::LongRunTest::connectACSComponentClient | ( | ) | [inline, private] |
Connect to ACS as component client. It connects client and the logger.
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] |
Logs a block of logs i.e. one log of each type separated byt LOGS_INTERVAL msec
References alma::acs::logging::AcsLogLevel::ALERT, blockInterval, alma::acs::logging::AcsLogLevel::CRITICAL, alma::acs::logging::AcsLogLevel::DEBUG, alma::acs::logging::AcsLogLevel::EMERGENCY, alma::acs::logging::AcsLogLevel::ERROR, alma::acs::logging::AcsLogLevel::INFO, logger, alma::acs::logging::AcsLogLevel::NOTICE, and alma::acs::logging::AcsLogLevel::WARNING.
| 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
References alma::acs::logging::AcsLogLevel::ALERT, blockInterval, alma::acs::logging::AcsLogLevel::CRITICAL, alma::acs::logging::AcsLogLevel::DEBUG, alma::acs::logging::AcsLogLevel::EMERGENCY, alma::acs::logging::AcsLogLevel::ERROR, alma::acs::logging::AcsLogLevel::INFO, logger, alma::acs::logging::AcsLogLevel::NOTICE, and alma::acs::logging::AcsLogLevel::WARNING.
Referenced by run().
| 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] |
| void alma::acs::jlog::test::LongRunTest::setEndTime | ( | String | time | ) | throws IllegalArgumentException [inline, private] |
Decode the hr:min string into the local variables
| time | The time in the format hh:mm |
Referenced by LongRunTest().
| void alma::acs::jlog::test::LongRunTest::setInterval | ( | String | millisec, | |
| String | blockInt | |||
| ) | throws IllegalArgumentException [inline, private] |
Decode the millisec
| 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
| 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
Referenced by publishLogsBlock(), and setInterval().
AdvancedComponentClient alma::acs::jlog::test::LongRunTest::client = null [private] |
Referenced by connectACSComponentClient().
int alma::acs::jlog::test::LongRunTest::endHr [private] |
Referenced by checkTime(), and setEndTime().
int alma::acs::jlog::test::LongRunTest::endMin [private] |
Referenced by checkTime(), and setEndTime().
Logger alma::acs::jlog::test::LongRunTest::logger = null [private] |
Referenced by connectACSComponentClient(), and publishLogsBlock().
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] |
int alma::acs::jlog::test::LongRunTest::msec [private] |
Referenced by LongRunTest(), run(), and setInterval().
1.6.2