com.caucho.health.check
Class AbstractHealthCheck

java.lang.Object
  extended by com.caucho.health.check.AbstractHealthCheck
All Implemented Interfaces:
HealthCheck
Direct Known Subclasses:
AbstractMemoryHealthCheckImpl, ConnectionPoolHealthCheckImpl, CpuHealthCheckImpl, ExprHealthCheckImpl, HealthServiceHealthCheckImpl, HeartbeatHealthCheckImpl, HttpStatusHealthCheckImpl, JvmDeadlockHealthCheckImpl, LicenseHealthCheckImpl, ResinHealthCheckImpl, TransactionHealthCheckImpl

public abstract class AbstractHealthCheck
extends java.lang.Object
implements HealthCheck


Constructor Summary
AbstractHealthCheck()
           
 
Method Summary
protected  AbstractHealthCheck findDelegate(HealthService healthService)
          Finds and returns any delegate health check.
protected  AbstractHealthCheck getDelegate()
           
 java.lang.String getName()
           
 void init()
           
 boolean isEnabled()
           
 void setEnabled(boolean isEnabled)
           
 void setName(java.lang.String name)
           
 void start()
           
 void stop()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.health.check.HealthCheck
checkHealth
 

Constructor Detail

AbstractHealthCheck

public AbstractHealthCheck()
Method Detail

findDelegate

protected AbstractHealthCheck findDelegate(HealthService healthService)
Finds and returns any delegate health check. Used to configure singleton system health checks.


setEnabled

@Configurable
public void setEnabled(boolean isEnabled)

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface HealthCheck

setName

@Configurable
public void setName(java.lang.String name)

getName

public java.lang.String getName()
Specified by:
getName in interface HealthCheck

init

@PostConstruct
public void init()

start

public void start()
Specified by:
start in interface HealthCheck

stop

public void stop()
Specified by:
stop in interface HealthCheck

getDelegate

protected AbstractHealthCheck getDelegate()

toString

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