public class AlarmServiceUtils
extends java.lang.Object
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.
| Constructor and Description |
|---|
AlarmServiceUtils(AcsLogger theLogger)
Constructor
|
AlarmServiceUtils(org.omg.CORBA.ORB orb,
AcsLogger theLogger)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
AlarmService |
getAcsAlarmService()
Get a reference to the
CERNAlarmService. |
AlarmService |
getAlarmService()
Get a reference to the
AlarmService. |
boolean |
getAlarmServiceType()
Return the type of the alarm service in use
|
static void |
main(java.lang.String[] args)
The main method
|
static void |
printUsage() |
void |
shutdownORB()
Shutdown the orb.
|
public AlarmServiceUtils(org.omg.CORBA.ORB orb,
AcsLogger theLogger)
orb - The ORBtheLogger - The loggerpublic AlarmServiceUtils(AcsLogger theLogger)
theLogger - The logger; if null a new logger is instantiatedpublic static void main(java.lang.String[] args)
args - public static void printUsage()
public AlarmService getAlarmService()
throws java.lang.Exception
AlarmService.AlarmServicejava.lang.Exceptionpublic boolean getAlarmServiceType()
throws java.lang.Exception
true if the alarm system implementation is ACS,
false otherwisejava.lang.Exceptionpublic AlarmService getAcsAlarmService()
throws java.lang.Exception
CERNAlarmService.CERNAlarmServicejava.lang.Exceptionpublic void shutdownORB()
This method must be called if a new ORB is created by an object of this class.