public class AlarmCategoryDumper extends AlarmDumperBase implements AlarmSelectionListener
m_logger, m_shutdownHook| Constructor and Description |
|---|
AlarmCategoryDumper(java.util.logging.Logger theLogger,
java.lang.String mangerLoc)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the resources of the alarm client
|
static void |
main(java.lang.String[] args)
Main delegate to
AlarmDumperBase#clientRunner(String[], boolean) |
void |
onAlarm(Alarm alarm)
Callback method.
|
void |
onException(LaserSelectionException e)
Callback method.
|
void |
startReceivingAlarms()
Connects to the NC and start receiving alarms.
|
clientRunner, formatTimestamp, receiveAlarms, receiveAlarms, registerShutdownHook, tearDowncreateContainerServices, destroyContainerServices, getAcsCorba, getAcsManagerProxygetContainerServices, initAlarmSystem, initRemoteLogging, tearDownAlarmSystempublic AlarmCategoryDumper(java.util.logging.Logger theLogger,
java.lang.String mangerLoc)
throws java.lang.Exception
theLogger - The loggermangerLoc - The CORBA loc of the managerjava.lang.Exception - if an error happens instantiating the AdvancedComponentClientpublic void startReceivingAlarms()
throws java.lang.Exception
AlarmDumperBase
This must be implemented to connect to the right NC.
If the connection failed, AlarmDumperBase.startReceivingAlarms() must thrown an exception
startReceivingAlarms in class AlarmDumperBasejava.lang.Exceptionpublic void close()
throws java.lang.Exception
AlarmDumperBaseclose in class AlarmDumperBasejava.lang.Exceptionpublic void onAlarm(Alarm alarm)
AlarmSelectionListeneronAlarm in interface AlarmSelectionListeneralarm - the changed alarmpublic void onException(LaserSelectionException e)
AlarmSelectionListeneronException in interface AlarmSelectionListenere - the LaserSelectionException carrying the exception codepublic static void main(java.lang.String[] args)
AlarmDumperBase#clientRunner(String[], boolean)args -