org.csc.phynixx.watchdog
Class TimeoutCondition
java.lang.Object
org.csc.phynixx.watchdog.NotificationCondition
org.csc.phynixx.watchdog.TimeoutCondition
- All Implemented Interfaces:
- ITimeoutCondition, IWatchedCondition
public abstract class TimeoutCondition
- extends NotificationCondition
- implements ITimeoutCondition
TimeoutCondition
public TimeoutCondition(long timeout)
getTimeout
public long getTimeout()
- Specified by:
getTimeout in interface ITimeoutCondition
setActive
public void setActive(boolean active)
- Description copied from interface:
IWatchedCondition
- activate/deactivate the condition
- Specified by:
setActive in interface IWatchedCondition- Overrides:
setActive in class NotificationCondition
- Parameters:
active - state to be set
resetCondition
public void resetCondition()
- Specified by:
resetCondition in interface ITimeoutCondition
resetCondition
public void resetCondition(long timeout)
- Specified by:
resetCondition in interface ITimeoutCondition
checkCondition
public boolean checkCondition()
- Specified by:
checkCondition in interface IWatchedCondition- Overrides:
checkCondition in class NotificationCondition
- Returns:
- true if and if the condition is NOT violated
toString
public String toString()
- Overrides:
toString in class NotificationCondition
conditionViolated
public abstract void conditionViolated()
- Description copied from interface:
IWatchedCondition
- callback if the condition is vioalated
- Specified by:
conditionViolated in interface IWatchedCondition- Overrides:
conditionViolated in class NotificationCondition
Copyright © 2015. All rights reserved.