com.caucho.env.health
Class AbstractMemoryHealthCheckImpl

java.lang.Object
  extended by com.caucho.health.check.AbstractHealthCheck
      extended by com.caucho.env.health.AbstractMemoryHealthCheckImpl
All Implemented Interfaces:
HealthCheck
Direct Known Subclasses:
MemoryPermGenHealthCheckImpl, MemoryTenuredHealthCheckImpl

public abstract class AbstractMemoryHealthCheckImpl
extends AbstractHealthCheck


Constructor Summary
AbstractMemoryHealthCheckImpl()
           
 
Method Summary
 HealthCheckResult checkHealth()
           
 long getMemoryFreeMin()
           
protected  MemoryPoolAdapter getMemoryPool()
           
protected abstract  MemoryPoolAdapter.MemUsage getMemoryUsage()
           
 void setFreeWarningImpl(double pFree)
           
 void setMemoryFreeMinImpl(long min)
           
 
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

AbstractMemoryHealthCheckImpl

public AbstractMemoryHealthCheckImpl()
Method Detail

setMemoryFreeMinImpl

public void setMemoryFreeMinImpl(long min)

getMemoryFreeMin

public long getMemoryFreeMin()

setFreeWarningImpl

public void setFreeWarningImpl(double pFree)

getMemoryPool

protected MemoryPoolAdapter getMemoryPool()

checkHealth

public HealthCheckResult checkHealth()

getMemoryUsage

protected abstract MemoryPoolAdapter.MemUsage getMemoryUsage()
                                                      throws javax.management.JMException
Throws:
javax.management.JMException