com.caucho.env.dbpool
Class ConnectionPoolHealthCheckImpl

java.lang.Object
  extended by com.caucho.health.check.AbstractHealthCheck
      extended by com.caucho.env.dbpool.ConnectionPoolHealthCheckImpl
All Implemented Interfaces:
HealthStatusListener, HealthCheck
Direct Known Subclasses:
ConnectionPoolHealthCheck

public class ConnectionPoolHealthCheckImpl
extends AbstractHealthCheck
implements HealthStatusListener

Health check for the connection pool.


Constructor Summary
ConnectionPoolHealthCheckImpl()
           
 
Method Summary
 HealthCheckResult checkHealth()
           
 void updateHealthStatus(java.lang.Object source, HealthStatus status, java.lang.String message)
          Invoked when a health status update occurs.
 
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

ConnectionPoolHealthCheckImpl

public ConnectionPoolHealthCheckImpl()
Method Detail

checkHealth

public HealthCheckResult checkHealth()
Specified by:
checkHealth in interface HealthCheck

updateHealthStatus

public void updateHealthStatus(java.lang.Object source,
                               HealthStatus status,
                               java.lang.String message)
Description copied from interface: HealthStatusListener
Invoked when a health status update occurs.

Specified by:
updateHealthStatus in interface HealthStatusListener
Parameters:
source - the object that generated the status
status - health status
message - health message