@Singleton @Configurable public class PdfReport extends AbstractHealthAction
<health:PdfReport>
<path>${resin.home}/doc/admin/pdf-gen.php</path>
<report>Summary</report>
<health:IfCron value="0 0 * * 0"/>
</health:PdfReport>
Constructor and Description |
---|
PdfReport() |
Modifier and Type | Method and Description |
---|---|
HealthActionResult |
doActionImpl(HealthEvent healthEvent) |
void |
init() |
void |
setLogDirectory(java.lang.String logDirectory)
PDF output directory (defaults to resin log directory)
|
void |
setMail(Session session)
Mail from address
|
void |
setMailFrom(java.lang.String mailFrom)
Mail from address
|
void |
setMailTo(java.lang.String mailTo)
Mail address
|
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 |
setProfileTick(Period period)
Set the length of time for the cpu profile tick
|
void |
setProfileTime(Period period)
Set the length of time for the report snapshot cpu profile
|
void |
setReport(java.lang.String report)
report type key (default Summary)
|
void |
setSnapshot(boolean isSnapshot)
Set true if the report should take a snapshot first.
|
void |
setSnapshotHeapDump(boolean isHeapDump)
Set true to enable/disable heapdump snapshot
|
void |
setSnapshotJmx(boolean isJmx)
Set true to enable/disable heapdump jmx
|
void |
setSynchronous(boolean isSync) |
void |
setWatchdog(boolean isWatchdog)
Sets watchdog (postmortem)
|
add, addListener, doAction, getPredicates, start, stop, toString
@Configurable public void setPath(java.lang.String path)
@Configurable public void setReport(java.lang.String report)
@Configurable public void setPeriod(Period period)
@Configurable public void setLogDirectory(java.lang.String logDirectory)
logDirectory
- @Configurable public void setMailTo(java.lang.String mailTo)
@Configurable public void setMailFrom(java.lang.String mailFrom)
@Configurable public void setMail(Session session)
@Configurable public void setSnapshot(boolean isSnapshot)
@Configurable public void setSnapshotHeapDump(boolean isHeapDump)
@Configurable public void setSnapshotJmx(boolean isJmx)
@Configurable public void setProfileTime(Period period)
@Configurable public void setProfileTick(Period period)
@Configurable public void setWatchdog(boolean isWatchdog)
public void setSynchronous(boolean isSync)
@PostConstruct public void init()
init
in class AbstractHealthAction
public HealthActionResult doActionImpl(HealthEvent healthEvent) throws java.lang.Exception
doActionImpl
in class AbstractHealthAction
java.lang.Exception