org.csc.phynixx.watchdog
Interface IWatchedCondition

All Known Subinterfaces:
ITimeoutCondition
All Known Implementing Classes:
NotificationCondition, TimeoutCondition

public interface IWatchedCondition


Method Summary
 boolean checkCondition()
           
 void conditionViolated()
          callback if the condition is vioalated
 boolean isActive()
           
 boolean isUseless()
          indicates that the condition isn't needed any longer ...
 void setActive(boolean active)
          activate/deactivate the condition
 

Method Detail

checkCondition

boolean checkCondition()
Returns:
true if and if the condition is NOT violated

conditionViolated

void conditionViolated()
callback if the condition is vioalated


setActive

void setActive(boolean active)
activate/deactivate the condition

Parameters:
active - state to be set

isActive

boolean isActive()

isUseless

boolean isUseless()
indicates that the condition isn't needed any longer ...

Returns:


Copyright © 2015. All rights reserved.