com.caucho.health.predicate
Class AbstractHealthCheckPredicate

java.lang.Object
  extended by com.caucho.health.predicate.AbstractHealthPredicate
      extended by com.caucho.health.predicate.AbstractScheduledHealthPredicate
          extended by com.caucho.health.predicate.AbstractHealthCheckPredicate
All Implemented Interfaces:
HealthPredicate
Direct Known Subclasses:
IfFlapping, IfHealthStatus, IfMessage, IfRecovered

@Configurable
public abstract class AbstractHealthCheckPredicate
extends AbstractScheduledHealthPredicate


Constructor Summary
AbstractHealthCheckPredicate()
           
AbstractHealthCheckPredicate(HealthCheck healthCheck)
           
 
Method Summary
 HealthCheck getHealthCheck()
           
protected  HealthCheckResult getLastResult(HealthService healthService)
           
 void setHealthCheck(HealthCheck healthCheck)
          Set health check - optional, if not present summary status will be used
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.health.predicate.AbstractScheduledHealthPredicate
isMatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractHealthCheckPredicate

public AbstractHealthCheckPredicate()

AbstractHealthCheckPredicate

public AbstractHealthCheckPredicate(HealthCheck healthCheck)
Method Detail

setHealthCheck

@Configurable
public void setHealthCheck(HealthCheck healthCheck)
Set health check - optional, if not present summary status will be used


getHealthCheck

public HealthCheck getHealthCheck()

getLastResult

protected HealthCheckResult getLastResult(HealthService healthService)

toString

public java.lang.String toString()
Overrides:
toString in class AbstractHealthPredicate