alma::alarmsystem::test::manager::ManagerTest Class Reference

Inheritance diagram for alma::alarmsystem::test::manager::ManagerTest:
Inheritance graph
[legend]
Collaboration diagram for alma::alarmsystem::test::manager::ManagerTest:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ManagerTest ()
void close ()
void onAlarm (Alarm alarm)
void onException (LaserSelectionException e)
void faultStateReceived (FaultState faultState)
void sourceXMLMsgReceived (String asiMessage)
void test ()

Static Public Member Functions

static void main (String[] args)

Private Attributes

AdvancedComponentClient client
CategoryClient categoryClient
ContainerServices containerServices
volatile int alarmsReceived = 0

Static Private Attributes

static final int WAIT_TIME = 120000

Detailed Description

Listen to alarms from sources and the alarm component. The alarms are written to the stdout to be checked by tat.

Author:
acaproni

Constructor & Destructor Documentation

alma::alarmsystem::test::manager::ManagerTest::ManagerTest (  )  [inline]

Constructor.

Connect as a component client.

Parameters:
pidFileName The name of the file containing the PID of the container to kill

References categoryClient, client, alma::alarmsystem::clients::CategoryClient::connect(), containerServices, and alma::acs::component::client::ComponentClient::getContainerServices().

Referenced by main().


Member Function Documentation

void alma::alarmsystem::test::manager::ManagerTest::close (  )  [inline]
void alma::alarmsystem::test::manager::ManagerTest::faultStateReceived ( FaultState  faultState  )  [inline]
static void alma::alarmsystem::test::manager::ManagerTest::main ( String[]  args  )  [inline, static]

Start the program and wait to leave the manager enough time to detect the crash of the container and send the alarm.

Parameters:
args 

References ManagerTest(), and test().

void alma::alarmsystem::test::manager::ManagerTest::onAlarm ( Alarm  alarm  )  [inline]
void alma::alarmsystem::test::manager::ManagerTest::onException ( LaserSelectionException  e  )  [inline]
See also:
AlarmSelectionListener

Implements cern::laser::client::services::selection::AlarmSelectionListener.

void alma::alarmsystem::test::manager::ManagerTest::sourceXMLMsgReceived ( String  asiMessage  )  [inline]
void alma::alarmsystem::test::manager::ManagerTest::test (  )  [inline]

References alarmsReceived, close(), and WAIT_TIME.

Referenced by main().


Member Data Documentation

The number of alarms received from the alarm service

Referenced by onAlarm(), and test().

The client to receive alarms from categories

Referenced by close(), and ManagerTest().

ACS component client

Referenced by ManagerTest().

ContainerServices

Referenced by ManagerTest().

final int alma::alarmsystem::test::manager::ManagerTest::WAIT_TIME = 120000 [static, private]

The millisecs to wait for alarms

Referenced by test().


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

Generated by  doxygen 1.6.2