public abstract class TimeoutDetectorRT extends PointEventDetectorRT implements TimeoutClient
Modifier and Type | Field and Description |
---|---|
private com.serotonin.web.i18n.LocalizableMessage |
durationDescription
Internal configuration field.
|
private long |
durationMS
Internal configuration field.
|
private com.serotonin.timer.TimerTask |
task
Internal configuration field.
|
vo
Constructor and Description |
---|
TimeoutDetectorRT() |
Modifier and Type | Method and Description |
---|---|
private void |
cancelTask() |
protected com.serotonin.web.i18n.LocalizableMessage |
getDurationDescription() |
protected long |
getDurationMS() |
void |
initialize() |
protected boolean |
isJobScheduled() |
protected void |
scheduleJob(long timeout) |
void |
scheduleTimeout(long fireTime) |
protected abstract void |
scheduleTimeoutImpl(long fireTime) |
void |
terminate() |
protected void |
unscheduleJob() |
createEventContext, getEventDetectorKey, getEventType, getMessage, joinTermination, pointBackdated, pointChanged, pointInitialized, pointSet, pointTerminated, pointUpdated, raiseEvent, returnToNormal
addListener, fireEventDetectorStateChanged, fireEventDetectorTerminated, hasListeners, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isEventActive
private long durationMS
private com.serotonin.web.i18n.LocalizableMessage durationDescription
private com.serotonin.timer.TimerTask task
public void initialize()
initialize
in interface com.serotonin.util.ILifecycle
initialize
in class PointEventDetectorRT
protected boolean isJobScheduled()
public void terminate()
terminate
in interface com.serotonin.util.ILifecycle
terminate
in class PointEventDetectorRT
protected com.serotonin.web.i18n.LocalizableMessage getDurationDescription()
protected long getDurationMS()
protected void scheduleJob(long timeout)
protected void unscheduleJob()
public final void scheduleTimeout(long fireTime)
scheduleTimeout
in interface TimeoutClient
protected abstract void scheduleTimeoutImpl(long fireTime)
private void cancelTask()