alma::acs::lasercore::test::CoreCDBAlarmTest Class Reference

Inheritance diagram for alma::acs::lasercore::test::CoreCDBAlarmTest:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::lasercore::test::CoreCDBAlarmTest:
Collaboration graph
[legend]

List of all members.

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< AlarmViewalarms = Collections.synchronizedList(new LinkedList<AlarmView>())

Detailed Description

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.

Author:
acaproni

Constructor & Destructor Documentation

alma::acs::lasercore::test::CoreCDBAlarmTest::CoreCDBAlarmTest (  )  throws Exception [inline]

Constructor

Exceptions:
Exception 

Member Function Documentation

void alma::acs::lasercore::test::CoreCDBAlarmTest::alarmReceived ( AlarmView  alarm  )  [inline]
void alma::acs::lasercore::test::CoreCDBAlarmTest::setUp (  )  throws Exception [inline, protected]
void alma::acs::lasercore::test::CoreCDBAlarmTest::shutdownAS (  )  throws Exception [inline, private]
void alma::acs::lasercore::test::CoreCDBAlarmTest::startAS (  )  throws Exception [inline, private]

Launch the alarm service

Exceptions:
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]
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:

  1. shut down the AS
  2. change the reading permission of a file
  3. restart the AS
  4. wait for the alarm or a timeout
Exceptions:
Exception 

References alarms, com::cosylab::CDB::JDALOperations::clear_cache_all(), logger, alma::acs::component::client::ComponentClientTestCase::m_acsManagerProxy, shutdownAS(), and startAS().


Member Data Documentation

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().

The logger

Referenced by setUp(), shutdownAS(), startAS(), and testCDBAlarm().


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

Generated by  doxygen 1.6.2