Public Member Functions | Static Public Member Functions

alma.acs.alarmsystem.corbaservice.AlarmServiceUtils Class Reference

Inheritance diagram for alma.acs.alarmsystem.corbaservice.AlarmServiceUtils:
alma.alarmsystem.corbaservice.CernAlarmServiceUtils

List of all members.

Public Member Functions

 AlarmServiceUtils (ORB orb, AcsLogger theLogger)
 AlarmServiceUtils (AcsLogger theLogger)
AlarmService getAlarmService () throws Exception
boolean getAlarmServiceType () throws Exception
AlarmService getAcsAlarmService () throws Exception
void shutdownORB ()

Static Public Member Functions

static void main (String[] args)
static void printUsage ()

Detailed Description

An helper class with a set of useful methods.

Some of the methods of this class can be used through a script.

AlarmServiceUtils needs a ORB that can be passed in the constructor directly or through an instance of ContainerServicesBase.
If the empty constructor is used, a new ORB is instantiated.

Author:
acaproni

Constructor & Destructor Documentation

alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.AlarmServiceUtils ( ORB  orb,
AcsLogger  theLogger 
)

Constructor

Parameters:
orb The ORB
theLogger The logger

Referenced by alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.main().

alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.AlarmServiceUtils ( AcsLogger  theLogger  ) 

Constructor

Parameters:
containerServices The container services Constructor
theLogger The logger; if null a new logger is instantiated

Member Function Documentation

AlarmService alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.getAcsAlarmService (  )  throws Exception
boolean alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.getAlarmServiceType (  )  throws Exception

Return the type of the alarm service in use

Returns:
true if the alarm system implementation is ACS, false otherwise

References alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.getAlarmService().

static void alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.printUsage (  )  [static]
void alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.shutdownORB (  ) 

Shutdown the orb.

This method must be called if a new ORB is created by an object of this class.

Referenced by alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.main().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties