org.csc.phynixx.watchdog
Class NotificationCondition

java.lang.Object
  extended by org.csc.phynixx.watchdog.NotificationCondition
All Implemented Interfaces:
IWatchedCondition
Direct Known Subclasses:
TimeoutCondition

public class NotificationCondition
extends Object
implements IWatchedCondition


Nested Class Summary
static interface NotificationCondition.IConditionNotifier
           
 
Constructor Summary
NotificationCondition()
           
 
Method Summary
 void addNotifier(NotificationCondition.IConditionNotifier notifier)
           
 boolean checkCondition()
           
 void conditionViolated()
          callback if the condition is vioalated
protected  void finalize()
           
 boolean isActive()
           
 boolean isUseless()
          indicates that the condition isn't needed any longer ...
protected  void notifyCondition()
           
 void setActive(boolean active)
          activate/deactivate the condition
 void setUseless(boolean mode)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotificationCondition

public NotificationCondition()
Method Detail

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.