org.csc.phynixx.watchdog
Class NotificationCondition
java.lang.Object
org.csc.phynixx.watchdog.NotificationCondition
- All Implemented Interfaces:
- IWatchedCondition
- Direct Known Subclasses:
- TimeoutCondition
public class NotificationCondition
- extends Object
- implements IWatchedCondition
NotificationCondition
public NotificationCondition()
isActive
public boolean isActive()
- Specified by:
isActive
in interface IWatchedCondition
setActive
public void setActive(boolean active)
- Description copied from interface:
IWatchedCondition
- activate/deactivate the condition
- Specified by:
setActive
in interface IWatchedCondition
- Parameters:
active
- state to be set
checkCondition
public boolean checkCondition()
- Specified by:
checkCondition
in interface IWatchedCondition
- Returns:
- true if and if the condition is NOT violated
conditionViolated
public void conditionViolated()
- Description copied from interface:
IWatchedCondition
- callback if the condition is vioalated
- Specified by:
conditionViolated
in interface IWatchedCondition
addNotifier
public void addNotifier(NotificationCondition.IConditionNotifier notifier)
notifyCondition
protected void notifyCondition()
toString
public String toString()
- Overrides:
toString
in class Object
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize
in class Object
- Throws:
Throwable
isUseless
public boolean isUseless()
- Description copied from interface:
IWatchedCondition
- indicates that the condition isn't needed any longer ...
- Specified by:
isUseless
in interface IWatchedCondition
- Returns:
setUseless
public void setUseless(boolean mode)
Copyright © 2015. All rights reserved.