public class AlarmSystemInterfaceProxy extends java.lang.Object implements AlarmSystemInterface, SynchroBufferListener, ExceptionListener
| Constructor and Description |
|---|
AlarmSystemInterfaceProxy(java.lang.String sourceName)
Create a new instance of AlarmSystemInterfaceProxy
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the instance.
|
java.lang.String |
getSourceName()
Get the source name.
|
void |
onException(MOMException e)
The exception handler called in case of communication exception
|
void |
pull(PullEvent event)
Implement the SysnchroBufferListener interface.
|
void |
push(java.util.Collection states)
Push an fault states collection.
|
void |
push(FaultState state)
Push a fault state.
|
void |
pushActiveList(java.util.Collection active)
Push the source active list forcing a backup
|
void |
setSourceName(java.lang.String newSourceName)
Set the source name.
|
public AlarmSystemInterfaceProxy(java.lang.String sourceName)
throws ASIException
sourceName - the name of the alarm sourceASIExceptionpublic void setSourceName(java.lang.String newSourceName)
setSourceName in interface AlarmSystemInterfacenewSourceName - the source name.public java.lang.String getSourceName()
getSourceName in interface AlarmSystemInterfacepublic void close()
close in interface AlarmSystemInterfacepublic void onException(MOMException e)
onException in interface ExceptionListenere - the MOMException caughtpublic void pull(PullEvent event) throws PullException
pull in interface SynchroBufferListenerevent - the alarm message collection pulled from the bufferPullException - if the messages can not be publishedpublic void push(FaultState state) throws ASIException
push in interface AlarmSystemInterfacestate - the fault state to pushASIException - if the fault state can not be pushed.public void push(java.util.Collection states)
throws ASIException
push in interface AlarmSystemInterfacestates - the fault states collection to pushASIException - if the fault state collection can not be pushed.public void pushActiveList(java.util.Collection active)
throws ASIException
pushActiveList in interface AlarmSystemInterfaceactive - the source active listASIException - if the fault state active list can not be pushed.