com.caucho.health.action
Class AbstractHealthAction

java.lang.Object
  extended by com.caucho.health.action.AbstractHealthAction
All Implemented Interfaces:
HealthAction
Direct Known Subclasses:
ActionSequence, CallJmxOperation, DumpHealth, DumpHeap, DumpJmx, DumpThreads, ExecCommand, FailSafeRestart, PdfReport, PhpAction, Restart, SendMail, SetJmxAttribute, SetLogLevel, StartProfiler, WarnWatchdog

@Configurable
public abstract class AbstractHealthAction
extends java.lang.Object
implements HealthAction


Constructor Summary
AbstractHealthAction()
           
 
Method Summary
 void add(HealthPredicate predicate)
           
 void addListener(HealthActionListener listener)
           
 void doAction(HealthEvent healthEvent)
           
abstract  void doActionImpl(HealthEvent healthEvent)
           
 java.util.List<HealthPredicate> getPredicates()
           
 void init()
           
 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
 

Constructor Detail

AbstractHealthAction

public AbstractHealthAction()
Method Detail

add

@Configurable
public void add(HealthPredicate predicate)

getPredicates

public java.util.List<HealthPredicate> getPredicates()

addListener

public void addListener(HealthActionListener listener)

init

@PostConstruct
public void init()

doAction

public final void doAction(HealthEvent healthEvent)
Specified by:
doAction in interface HealthAction

doActionImpl

public abstract void doActionImpl(HealthEvent healthEvent)

start

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

stop

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

toString

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