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 () |
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.
alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.AlarmServiceUtils | ( | ORB | orb, | |
AcsLogger | theLogger | |||
) |
Constructor
orb | The ORB | |
theLogger | The logger |
Referenced by alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.main().
alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.AlarmServiceUtils | ( | AcsLogger | theLogger | ) |
Constructor
containerServices | The container services Constructor | |
theLogger | The logger; if null a new logger is instantiated |
AlarmService alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.getAcsAlarmService | ( | ) | throws Exception |
Get a reference to the CERNAlarmService.
References alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.getAlarmService().
AlarmService alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.getAlarmService | ( | ) | throws Exception |
Get a reference to the AlarmService.
Referenced by alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.getAcsAlarmService(), alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.getAlarmServiceType(), alma.alarmsystem.corbaservice.CernAlarmServiceUtils.getCernAlarmService(), and alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.main().
boolean alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.getAlarmServiceType | ( | ) | throws Exception |
Return the type of the alarm service in use
true
if the alarm system implementation is ACS, false
otherwise References alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.getAlarmService().
static void alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.main | ( | String[] | args | ) | [static] |
The main method
args |
References alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.AlarmServiceUtils(), alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.getAlarmService(), alma.acs.logging.AcsLogger.log(), alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.printUsage(), and alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.shutdownORB().
static void alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.printUsage | ( | ) | [static] |
Referenced by alma.acs.alarmsystem.corbaservice.AlarmServiceUtils.main().
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().