
Public Member Functions | |
| DemoTest () | |
| void | disconnect () |
| boolean | getAlarmServiceComponent () |
| void | testJavaNR () |
| void | testJavaMR () |
| void | testCppComponents () |
| synchronized void | receive (ACSJMSMessageEntity msg) |
Static Public Member Functions | |
| static void | main (String[] args) |
Package Attributes | |
| Logger | logger |
| AlarmService | alarmSvc = null |
Private Member Functions | |
| void | connectSrcChannel () |
| void | setupSourceListener () |
Private Attributes | |
| AdvancedComponentClient | m_client |
| ContainerServices | m_contSvcs |
| Consumer | m_consumer = null |
Static Private Attributes | |
| static final String | srcChName = "CMW.ALARM_SYSTEM.ALARMS.SOURCES.ALARM_SYSTEM_SOURCES" |
Check the sending of the messages done by the java and C++ components. The check is done getting the components and invoking the fault and terminate_fault method. The generated output is checked for correctness by TAT
NOTE: the reduction operated by the AS is also checked because it consists of a couple of booleans in the messages published by the service.
| alma::demo::test::DemoTest::DemoTest | ( | ) | [inline] |
Constructor
References connectSrcChannel(), alma::acs::component::client::ComponentClient::getContainerServices(), logger, m_client, and m_contSvcs.
Referenced by main().
| void alma::demo::test::DemoTest::connectSrcChannel | ( | ) | [inline, private] |
Connect to the NC of the sources
References alma::acs::nc::Consumer::addSubscription(), alma::acs::nc::Consumer::consumerReady(), logger, m_consumer, m_contSvcs, and srcChName.
Referenced by DemoTest().
| void alma::demo::test::DemoTest::disconnect | ( | ) | [inline] |
References alma::acs::nc::Consumer::disconnect(), and m_consumer.
Referenced by main().
| boolean alma::demo::test::DemoTest::getAlarmServiceComponent | ( | ) | [inline] |
Get the AS component. The test does not need such component but this forces the AS to run.
References alarmSvc, alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::getAlarmService(), and m_contSvcs.
Referenced by main().
| static void alma::demo::test::DemoTest::main | ( | String[] | args | ) | [inline, static] |
The starting point of the test
| args |
References DemoTest(), disconnect(), getAlarmServiceComponent(), testCppComponents(), testJavaMR(), and testJavaNR().
| synchronized void alma::demo::test::DemoTest::receive | ( | ACSJMSMessageEntity | msg | ) | [inline] |
The method recives all the messages published in the NC by the sources
| msg | The message received from the NC |
References cern::laser::source::alarmsysteminterface::impl::FaultStateImpl::getCode(), cern::laser::source::alarmsysteminterface::impl::FaultStateImpl::getDescriptor(), cern::laser::source::alarmsysteminterface::impl::FaultStateImpl::getFamily(), and cern::laser::source::alarmsysteminterface::impl::FaultStateImpl::getMember().
| void alma::demo::test::DemoTest::setupSourceListener | ( | ) | [inline, private] |
Setup the listener for the sources
References alma::acs::nc::Consumer::addSubscription(), alma::acs::nc::Consumer::consumerReady(), logger, m_consumer, m_contSvcs, and srcChName.
| void alma::demo::test::DemoTest::testCppComponents | ( | ) | [inline] |
Get the C++ Mount component and invoke the fault and terminate fault method
References alma::alarmsystemdemo::MountOperations::faultMount(), alma::acs::container::ContainerServices::getComponent(), m_contSvcs, alma::acs::container::ContainerServices::releaseComponent(), and alma::alarmsystemdemo::MountOperations::terminate_faultMount().
Referenced by main().
| void alma::demo::test::DemoTest::testJavaMR | ( | ) | [inline] |
1. Get the component to test the Multiplicity reduction 2. call the fault and the terminate methods to activate the reduction (the MR causes the generation of another alarm when the threshold is passed)
References alma::acs::container::ContainerServices::getComponent(), m_contSvcs, alma::alarmsystemdemo::MFOperations::multiFault(), alma::acs::container::ContainerServices::releaseComponent(), and alma::alarmsystemdemo::MFOperations::terminate_multiFault().
Referenced by main().
| void alma::demo::test::DemoTest::testJavaNR | ( | ) | [inline] |
1. Get the java components for the NODE reduction
2. Call the fult method of the PS (it will generate a chain of failures up to the Antenna) 3. Call the terminate_fault method of the PS (that will generate a second chain of failures)
References alma::acs::container::ContainerServices::getComponent(), m_contSvcs, and alma::acs::container::ContainerServices::releaseComponent().
Referenced by main().
AlarmService alma::demo::test::DemoTest::alarmSvc = null [package] |
Referenced by getAlarmServiceComponent().
Logger alma::demo::test::DemoTest::logger [package] |
Referenced by connectSrcChannel(), DemoTest(), and setupSourceListener().
Referenced by DemoTest().
Consumer alma::demo::test::DemoTest::m_consumer = null [private] |
Referenced by connectSrcChannel(), disconnect(), and setupSourceListener().
Referenced by connectSrcChannel(), DemoTest(), getAlarmServiceComponent(), setupSourceListener(), testCppComponents(), testJavaMR(), and testJavaNR().
final String alma::demo::test::DemoTest::srcChName = "CMW.ALARM_SYSTEM.ALARMS.SOURCES.ALARM_SYSTEM_SOURCES" [static, private] |
Actually there is only one channel used by all sources to publish alarms
Referenced by connectSrcChannel(), and setupSourceListener().
1.6.2