com.caucho.health.action
Class FailSafeRestart
java.lang.Object
com.caucho.health.action.AbstractHealthAction
com.caucho.health.action.FailSafeRestart
- All Implemented Interfaces:
- HealthAction
@Singleton
@Configurable
public class FailSafeRestart
- extends AbstractHealthAction
Health action to trigger a timed restart of Resin, normally used in
conjunction with an ActionSequence to gather shutdown information.
<health:ActionSequence>
<health:FailSafeRestart timeout="10m">
<health:DumpThreads/>
<health:DumpHeap/>
<health:StartProfiler active-time="5m"/>
<health:Restart/>
<health:IfHealthCritical time="5m"/>
</health:ActionSequence>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FailSafeRestart
public FailSafeRestart()
setTimeout
@Configurable
public void setTimeout(Period timeout)
- Time to force a restart if one has not yet occurred
- Parameters:
timeout - as a Period
setTimeoutMillis
@Configurable
public void setTimeoutMillis(long timeout)
- Time to force a restart if one has not yet occurred
- Parameters:
timeout - in milliseconds
getTimeoutMillis
public long getTimeoutMillis()
doActionImpl
public void doActionImpl(HealthEvent healthEvent)
- Specified by:
doActionImpl in class AbstractHealthAction