Public Member Functions | |
AlarmSystemInterfaceProxy (String sourceName) throws ASIException | |
void | setSourceName (String newSourceName) |
String | getSourceName () |
void | close () |
void | onException (MOMException e) |
void | pull (PullEvent event) throws PullException |
void | push (FaultState state) throws ASIException |
void | push (Collection states) throws ASIException |
void | pushActiveList (Collection active) throws ASIException |
Protected Member Functions | |
void | finalize () throws Throwable |
This class is the implementation of the interface between an alarm source and the alarm system. It provides the functionality defined in the interface AlarmSystemInterface.
cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy.AlarmSystemInterfaceProxy | ( | String | sourceName | ) | throws ASIException |
Create a new instance of AlarmSystemInterfaceProxy
sourceName | the name of the alarm source |
References cern.laser.util.buffer.SynchroBuffer.enable(), cern.laser.source.alarmsysteminterface.impl.Configurator.getConfiguration(), cern.cmw.mom.pubsub.Publisher.setExceptionListener(), cern.laser.source.alarmsysteminterface.ASIException.setRootCause(), cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy.setSourceName(), and cern.laser.util.buffer.SynchroBuffer.setSynchroBufferListener().
void cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy.close | ( | ) |
Close the instance.
References cern.cmw.mom.pubsub.Publisher.close(), and cern.laser.util.buffer.SynchroBuffer.close().
Referenced by cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy.finalize().
void cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy.finalize | ( | ) | throws Throwable [protected] |
Properly close all the resources.
Throwable | a Throwable exception |
References cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy.close().
String cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy.getSourceName | ( | ) |
Get the source name.
void cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy.onException | ( | MOMException | e | ) |
The exception handler called in case of communication exception
e | the MOMException caught |
Implements cern.cmw.mom.pubsub.ExceptionListener.
References cern.cmw.mom.pubsub.MOMException.testException().
void cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy.pull | ( | PullEvent | event | ) | throws PullException |
Implement the SysnchroBufferListener interface.
event | the alarm message collection pulled from the buffer |
PullException | if the messages can not be published |
void cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy.push | ( | Collection | states | ) | throws ASIException |
Push an fault states collection.
states | the fault states collection to push |
References cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy.push().
void cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy.push | ( | FaultState | state | ) | throws ASIException |
Push a fault state.
state | the fault state to push |
References cern.laser.util.buffer.SynchroBuffer.push().
Referenced by cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy.push().
void cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy.pushActiveList | ( | Collection | active | ) | throws ASIException |
Push the source active list forcing a backup
active | the source active list |
void cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy.setSourceName | ( | String | newSourceName | ) |
Set the source name.
newSourceName | the source name. |
Referenced by cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy.AlarmSystemInterfaceProxy().