org.csc.phynixx.watchdog
Class TimeoutCondition

java.lang.Object
  extended by org.csc.phynixx.watchdog.NotificationCondition
      extended by org.csc.phynixx.watchdog.TimeoutCondition
All Implemented Interfaces:
ITimeoutCondition, IWatchedCondition

public abstract class TimeoutCondition
extends NotificationCondition
implements ITimeoutCondition


Nested Class Summary
 
Nested classes/interfaces inherited from class org.csc.phynixx.watchdog.NotificationCondition
NotificationCondition.IConditionNotifier
 
Constructor Summary
TimeoutCondition(long timeout)
           
 
Method Summary
 boolean checkCondition()
           
abstract  void conditionViolated()
          callback if the condition is vioalated
 long getTimeout()
           
 void resetCondition()
           
 void resetCondition(long timeout)
           
 void setActive(boolean active)
          activate/deactivate the condition
 String toString()
           
 
Methods inherited from class org.csc.phynixx.watchdog.NotificationCondition
addNotifier, finalize, isActive, isUseless, notifyCondition, setUseless
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.csc.phynixx.watchdog.IWatchedCondition
isActive, isUseless
 

Constructor Detail

TimeoutCondition

public TimeoutCondition(long timeout)
Method Detail

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.