com.caucho.health.check
Class ExprHealthCheck

java.lang.Object
  extended by com.caucho.health.check.AbstractHealthCheck
      extended by com.caucho.env.health.ExprHealthCheckImpl
          extended by com.caucho.health.check.ExprHealthCheck
All Implemented Interfaces:
HealthCheck

@Named
@Singleton
@Configurable
public class ExprHealthCheck
extends ExprHealthCheckImpl

Evaluates user supplied JSP EL expressions as a boolean.

Resulting status depends on the category of expression that evaluates to false.


Constructor Summary
ExprHealthCheck()
           
 
Method Summary
 void addCriticalTest(Expr test)
          Add JSP-EL expression that will result in CRITICAL health status
 void addFatalTest(Expr test)
          Add JSP-EL expression that will result in FATAL health status
 void addWarningTest(Expr test)
          Add JSP-EL expression that will result in WARNING health status
 
Methods inherited from class com.caucho.env.health.ExprHealthCheckImpl
checkHealth, getCriticalTests, getFatalTests, getWarningTests
 
Methods inherited from class com.caucho.health.check.AbstractHealthCheck
findDelegate, getDelegate, getName, init, isEnabled, setEnabled, setName, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExprHealthCheck

public ExprHealthCheck()
Method Detail

addFatalTest

@Configurable
public void addFatalTest(Expr test)
Add JSP-EL expression that will result in FATAL health status

Overrides:
addFatalTest in class ExprHealthCheckImpl

addCriticalTest

@Configurable
public void addCriticalTest(Expr test)
Add JSP-EL expression that will result in CRITICAL health status

Overrides:
addCriticalTest in class ExprHealthCheckImpl

addWarningTest

@Configurable
public void addWarningTest(Expr test)
Add JSP-EL expression that will result in WARNING health status

Overrides:
addWarningTest in class ExprHealthCheckImpl