public class MaintenanceEventRT extends java.lang.Object implements ModelTimeoutClient<java.lang.Boolean>
Modifier and Type | Field and Description |
---|---|
private com.serotonin.timer.TimerTask |
activeTask |
private boolean |
eventActive |
private MaintenanceEventType |
eventType |
private com.serotonin.timer.TimerTask |
inactiveTask |
private MaintenanceEventVO |
vo |
private static java.lang.String[] |
weekdays |
Constructor and Description |
---|
MaintenanceEventRT(MaintenanceEventVO vo) |
Modifier and Type | Method and Description |
---|---|
com.serotonin.timer.TimerTrigger |
createTrigger(boolean activeTrigger) |
com.serotonin.web.i18n.LocalizableMessage |
getMessage() |
MaintenanceEventVO |
getVo() |
void |
initialize() |
boolean |
isEventActive() |
void |
joinTermination() |
private void |
raiseEvent(long time) |
private void |
returnToNormal(long time) |
void |
scheduleTimeout(java.lang.Boolean active,
long fireTime) |
void |
terminate() |
boolean |
toggle() |
private final MaintenanceEventVO vo
private MaintenanceEventType eventType
private boolean eventActive
private com.serotonin.timer.TimerTask activeTask
private com.serotonin.timer.TimerTask inactiveTask
private static final java.lang.String[] weekdays
public MaintenanceEventRT(MaintenanceEventVO vo)
public MaintenanceEventVO getVo()
private void raiseEvent(long time)
private void returnToNormal(long time)
public com.serotonin.web.i18n.LocalizableMessage getMessage()
public boolean isEventActive()
public boolean toggle()
public void scheduleTimeout(java.lang.Boolean active, long fireTime)
scheduleTimeout
in interface ModelTimeoutClient<java.lang.Boolean>
public void initialize()
public void terminate()
public void joinTermination()
public com.serotonin.timer.TimerTrigger createTrigger(boolean activeTrigger)