

Public Member Functions | |
| CoreCDBAlarmTest () throws Exception | |
| void | alarmReceived (AlarmView alarm) |
| void | testCDBAlarm () throws Exception |
Protected Member Functions | |
| void | setUp () throws Exception |
| void | tearDown () throws Exception |
Private Member Functions | |
| void | shutdownAS () throws Exception |
| void | startAS () throws Exception |
Private Attributes | |
| CategoryClient | categoryClient = null |
| ContainerServices | contSvcs |
| Logger | logger |
| final List< AlarmView > | alarms = Collections.synchronizedList(new LinkedList<AlarmView>()) |
Test the sending of core alarms from the alarm component.
The test checks if the alarm component send an alarm if one file of the CDB (for instance PS.xml) is unreadable.
The test works by changing the readability property of PS.xml. When the alarm component starts, it sends an alarm about a misconfigured CDB. The alarm will be received by the category client.
| alma::acs::lasercore::test::CoreCDBAlarmTest::CoreCDBAlarmTest | ( | ) | throws Exception [inline] |
Constructor
| Exception |
| void alma::acs::lasercore::test::CoreCDBAlarmTest::alarmReceived | ( | AlarmView | alarm | ) | [inline] |
| void alma::acs::lasercore::test::CoreCDBAlarmTest::setUp | ( | ) | throws Exception [inline, protected] |
Reimplemented from alma::acs::component::client::ComponentClientTestCase.
References alma::acs::lasercore::test::stress::CategoryClient::addAlarmListener(), categoryClient, alma::acs::lasercore::test::stress::CategoryClient::connect(), contSvcs, alma::acs::component::client::ComponentClientTestCase::getContainerServices(), alma::acs::container::ContainerServicesBase::getLogger(), and logger.
| void alma::acs::lasercore::test::CoreCDBAlarmTest::shutdownAS | ( | ) | throws Exception [inline, private] |
Shuts down the alarm service
References contSvcs, alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::getAlarmService(), logger, and alma::alarmsystem::AlarmServiceOperations::shutdown().
Referenced by testCDBAlarm().
| void alma::acs::lasercore::test::CoreCDBAlarmTest::startAS | ( | ) | throws Exception [inline, private] |
Launch the alarm service
| Exception |
References contSvcs, alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::getAlarmService(), and logger.
Referenced by testCDBAlarm().
| void alma::acs::lasercore::test::CoreCDBAlarmTest::tearDown | ( | ) | throws Exception [inline, protected] |
Reimplemented from alma::acs::component::client::ComponentClientTestCase.
References categoryClient, and alma::acs::lasercore::test::stress::CategoryClient::disconnect().
| void alma::acs::lasercore::test::CoreCDBAlarmTest::testCDBAlarm | ( | ) | throws Exception [inline] |
To test if the alarm service send an alarm in case of an error in the CDB:
| Exception |
References alarms, com::cosylab::CDB::JDALOperations::clear_cache_all(), logger, alma::acs::component::client::ComponentClientTestCase::m_acsManagerProxy, shutdownAS(), and startAS().
final List<AlarmView> alma::acs::lasercore::test::CoreCDBAlarmTest::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(), and testCDBAlarm().
The category client
Referenced by setUp(), and tearDown().
Container services
Referenced by setUp(), shutdownAS(), and startAS().
Logger alma::acs::lasercore::test::CoreCDBAlarmTest::logger [private] |
The logger
Referenced by setUp(), shutdownAS(), startAS(), and testCDBAlarm().
1.6.2