com.caucho.health.action
Class ActionSequence

java.lang.Object
  extended by com.caucho.health.action.AbstractHealthAction
      extended by com.caucho.health.action.ActionSequence
All Implemented Interfaces:
HealthAction
Direct Known Subclasses:
Snapshot

@Singleton
@Configurable
public class ActionSequence
extends AbstractHealthAction

Sequence of health actions.

<health:ActionSequence>
   <health:FailSafeRestart timeout="10m">
   <health:DumpThreads/>
   <health:DumpHeap/>
   <health:StartProfiler active-time="5m"/>
   <health:Restart/>
   
   <health:IfHealthCritical time="5m"/>
 </health:ActionSequence>
 


Nested Class Summary
protected  class ActionSequence.IfExecuting
           
 
Field Summary
 java.util.ArrayList<HealthAction> _actionList
           
 
Constructor Summary
ActionSequence()
           
 
Method Summary
 void add(HealthAction action)
           
 void doActionImpl(HealthEvent healthEvent)
           
 void init()
           
 
Methods inherited from class com.caucho.health.action.AbstractHealthAction
add, addListener, doAction, getPredicates, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_actionList

public java.util.ArrayList<HealthAction> _actionList
Constructor Detail

ActionSequence

public ActionSequence()
Method Detail

init

@PostConstruct
public void init()
Overrides:
init in class AbstractHealthAction

add

public void add(HealthAction action)

doActionImpl

public void doActionImpl(HealthEvent healthEvent)
Specified by:
doActionImpl in class AbstractHealthAction