@Singleton @Configurable public class FailSafeRestart extends AbstractHealthAction
<health:ActionSequence>
<health:FailSafeRestart timeout="10m">
<health:DumpThreads/>
<health:DumpHeap/>
<health:StartProfiler active-time="5m"/>
<health:Restart/>
<health:IfHealthCritical time="5m"/>
</health:ActionSequence>
Constructor and Description |
---|
FailSafeRestart() |
Modifier and Type | Method and Description |
---|---|
HealthActionResult |
doActionImpl(HealthEvent healthEvent) |
long |
getTimeoutMillis() |
void |
setTimeout(Period timeout)
Time to force a restart if one has not yet occurred
|
void |
setTimeoutMillis(long timeout)
Time to force a restart if one has not yet occurred
|
add, addListener, doAction, getPredicates, init, start, stop, toString
@Configurable public void setTimeout(Period timeout)
timeout
- as a Period@Configurable public void setTimeoutMillis(long timeout)
timeout
- in millisecondspublic long getTimeoutMillis()
public HealthActionResult doActionImpl(HealthEvent healthEvent) throws java.lang.Exception
doActionImpl
in class AbstractHealthAction
java.lang.Exception