public class TenMinutesContainer extends java.lang.Object implements java.lang.Runnable, SourceListener
If the tool listens for alarms for more then one week, the oldest number are removed.
| Modifier and Type | Field and Description |
|---|---|
static int |
MINUTESTIMEINTERVAL
The time interval (in minutes) for recording alarms
|
protected boolean |
shutdown
true if the container has been shut down |
| Modifier and Type | Method and Description |
|---|---|
void |
faultStateReceived(FaultState faultState)
An alarm has been received from the source NC.
|
static TenMinutesContainer |
getInstance() |
void |
refresh()
Ask the view to refresh the chart
|
void |
run()
The thread does nothing but waiting that the time elapses then
start a new sample.
|
void |
setChartViewer(ChartViewBase view)
Set the view showing numbers from this container
|
void |
shutdownContainer()
Shut down the container and free the resources
|
void |
sourceXMLMsgReceived(java.lang.String asiMessage)
An XML has been received from the source NC.
|
public static final int MINUTESTIMEINTERVAL
protected boolean shutdown
true if the container has been shut downpublic static TenMinutesContainer getInstance()
public void faultStateReceived(FaultState faultState)
SourceListenerfaultStateReceived in interface SourceListenerpublic void sourceXMLMsgReceived(java.lang.String asiMessage)
SourceListenerThe XML follows the ASIMessage.xsd schema definition and therefore it might have one or more fault states.
sourceXMLMsgReceived in interface SourceListenerasiMessage - The ASIMessage received from an alarm sourcepublic void run()
run in interface java.lang.Runnablepublic void shutdownContainer()
public void setChartViewer(ChartViewBase view)
view - public void refresh()