com.caucho.health.action
Class Snapshot
java.lang.Object
com.caucho.health.action.AbstractHealthAction
com.caucho.health.action.ActionSequence
com.caucho.health.action.Snapshot
- All Implemented Interfaces:
- HealthAction
@Singleton
@Configurable
public class Snapshot
- extends ActionSequence
A specific sequence of health actions: thread dump, heap dump, jmx dump,
and pdf report. This is intended to generate a permanent representation, or
"snapshot" of the system at a point in time that includes all the
information necessary to debug server issues. It is usually intended to run
in response to a unexpected issue.
<health:Snapshot>
<health:OnAbnormalStop/>
</health:Snapshot
|
Method Summary |
void |
init()
|
void |
setLog(boolean isLog)
Output to server log in addition to internal database (default false). |
void |
setLogDirectory(java.lang.String logDirectory)
PDF output directory (defaults to resin log directory) |
void |
setPath(java.lang.String path)
path to a PDF generating .php file
(defaults to ${resin.home}/doc/admin/pdf-gen.php) |
void |
setPeriod(Period period)
specifies look back period of time. |
void |
setReport(java.lang.String report)
report type key (default Summary) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Snapshot
public Snapshot()
init
@PostConstruct
public void init()
- Overrides:
init in class ActionSequence
setLog
public void setLog(boolean isLog)
- Output to server log in addition to internal database (default false).
setPath
@Configurable
public void setPath(java.lang.String path)
- path to a PDF generating .php file
(defaults to ${resin.home}/doc/admin/pdf-gen.php)
setReport
@Configurable
public void setReport(java.lang.String report)
- report type key (default Summary)
setPeriod
@Configurable
public void setPeriod(Period period)
- specifies look back period of time. e.g. '-period 1D' create the report
since the same time yesterday (default 7D)
setLogDirectory
@Configurable
public void setLogDirectory(java.lang.String logDirectory)
- PDF output directory (defaults to resin log directory)
- Parameters:
logDirectory -