alma::demo::test::DemoTest Class Reference

Collaboration diagram for alma::demo::test::DemoTest:
Collaboration graph
[legend]

List of all members.

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"

Detailed Description

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.

Author:
acaproni

Constructor & Destructor Documentation

alma::demo::test::DemoTest::DemoTest (  )  [inline]

Member Function Documentation

void alma::demo::test::DemoTest::connectSrcChannel (  )  [inline, private]
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.

Returns:
If the reference to the AS is valid

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

Parameters:
args 

References DemoTest(), disconnect(), getAlarmServiceComponent(), testCppComponents(), testJavaMR(), and testJavaNR().

synchronized void alma::demo::test::DemoTest::receive ( ACSJMSMessageEntity  msg  )  [inline]
void alma::demo::test::DemoTest::setupSourceListener (  )  [inline, private]
void alma::demo::test::DemoTest::testCppComponents (  )  [inline]
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

  • AlarmSystem (not needed but in this way we are sure it is running)
  • PS
  • Mount
  • Antenna

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


Member Data Documentation

Referenced by DemoTest().

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


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

Generated by  doxygen 1.6.2