Public Member Functions | |
AlarmSender (SenderMode mode, long param) throws Exception | |
Override void | run () |
Static Public Member Functions | |
void | printUsage () |
void | main (String[] args) |
Package Types | |
Private Types | |
enum | SenderMode { NEVER_ENDING, TIME_LIMIT, null } |
Private Member Functions | |
void | send_alarm (String family, String member, int code, boolean active) throws Exception |
Private Attributes | |
ComponentClient | client = null |
SenderMode | mode |
long | param |
ACSAlarmSystemInterface | alarmSource |
Static Private Attributes | |
final int | TIME_INTERVAL = 250 |
This process sends the same alarms defined in CategoryClientTest
to use the same CDB. It is composed of a thread whose termination is defined by the first parameter of the command line (i.e. a SenderMode.)
|
The different ways of working of this client.
|
|
Constructor.
|
|
|
|
Print the USAGE string in the standard output |
|
The thread sending alarms. the termination of the thread depends on the selected SenderMode. The thread is composed of a loop that sends each alarms until the max limit of alarms or time is reached or forever if the mode is NEVER_ENDING.
The loop send all the alarms defined in |
|
Push an alarm
|
|
|
|
|
|
|
|
|
|
|