

Public Member Functions | |
| IDLSendAlarmTest () throws Exception | |
| void | alarmReceived (AlarmView alarm) |
| void | testSendAlarmThroughIDL () throws Exception |
Protected Member Functions | |
| void | setUp () throws Exception |
| void | tearDown () throws Exception |
Private Attributes | |
| CategoryClient | categoryClient |
| ContainerServices | contSvcs |
| Logger | logger |
| CERNAlarmService | alarmService = null |
| final List< AlarmView > | alarms = Collections.synchronizedList(new LinkedList<AlarmView>()) |
Static Private Attributes | |
| static final String | IDLTestFF = "IDLFamily" |
| static final String | IDLTestFM = "IDLMember" |
| static final int | IDLTestFC = 1 |
Test the sending of alarms through the submitAlarm IDL method
| alma::acs::lasercore::test::IDLSendAlarmTest::IDLSendAlarmTest | ( | ) | throws Exception [inline] |
Constructor
| Exception |
| void alma::acs::lasercore::test::IDLSendAlarmTest::alarmReceived | ( | AlarmView | alarm | ) | [inline] |
Implements alma::acs::lasercore::test::stress::category::CategoryListener.
References alma::acs::lasercore::test::stress::category::AlarmView::active, alma::acs::lasercore::test::stress::category::AlarmView::alarmID, alarms, IDLTestFC, IDLTestFF, and IDLTestFM.
| void alma::acs::lasercore::test::IDLSendAlarmTest::setUp | ( | ) | throws Exception [inline, protected] |
Reimplemented from alma::acs::component::client::ComponentClientTestCase.
References alma::acs::lasercore::test::stress::CategoryClient::addAlarmListener(), alarms, alarmService, categoryClient, alma::acs::lasercore::test::stress::CategoryClient::connect(), contSvcs, alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::getAlarmService(), alma::acs::component::client::ComponentClientTestCase::getContainerServices(), alma::acs::container::ContainerServicesBase::getLogger(), alma::alarmsystem::AlarmServiceOperations::isACSAlarmService(), and logger.
| void alma::acs::lasercore::test::IDLSendAlarmTest::tearDown | ( | ) | throws Exception [inline, protected] |
Reimplemented from alma::acs::component::client::ComponentClientTestCase.
References alarms, categoryClient, and alma::acs::lasercore::test::stress::CategoryClient::disconnect().
| void alma::acs::lasercore::test::IDLSendAlarmTest::testSendAlarmThroughIDL | ( | ) | throws Exception [inline] |
Send an alarm with the IDL method
| Exception |
References alarms, alarmService, IDLTestFC, IDLTestFF, IDLTestFM, logger, and alma::alarmsystem::AlarmServiceOperations::submitAlarm().
final List<AlarmView> alma::acs::lasercore::test::IDLSendAlarmTest::alarms = Collections.synchronizedList(new LinkedList<AlarmView>()) [private] |
The vector with the alarms received from the categories. The key is the alarm ID
Referenced by alarmReceived(), setUp(), tearDown(), and testSendAlarmThroughIDL().
The alarm service
Referenced by setUp(), and testSendAlarmThroughIDL().
The category client
Referenced by setUp(), and tearDown().
Container services
Referenced by setUp().
final int alma::acs::lasercore::test::IDLSendAlarmTest::IDLTestFC = 1 [static, private] |
The fault code of the test alarm
Referenced by alarmReceived(), and testSendAlarmThroughIDL().
final String alma::acs::lasercore::test::IDLSendAlarmTest::IDLTestFF = "IDLFamily" [static, private] |
The fault family of the test alarm
Referenced by alarmReceived(), and testSendAlarmThroughIDL().
final String alma::acs::lasercore::test::IDLSendAlarmTest::IDLTestFM = "IDLMember" [static, private] |
The fault member of the test alarm
Referenced by alarmReceived(), and testSendAlarmThroughIDL().
Logger alma::acs::lasercore::test::IDLSendAlarmTest::logger [private] |
The logger
Referenced by setUp(), and testSendAlarmThroughIDL().
1.6.2