com.caucho.health.action
Class PdfReport

java.lang.Object
  extended by com.caucho.health.action.AbstractHealthAction
      extended by com.caucho.health.action.PdfReport
All Implemented Interfaces:
HealthAction

@Singleton
@Configurable
public class PdfReport
extends AbstractHealthAction

Health action to generate a PDF report from a PHP script.

<health:PdfReport>
   <path>${resin.home}/doc/admin/pdf-gen.php</path>
   <report>Summary</report>
   <health:IfCron value="0 0 * * 0"/>
 </health:PdfReport> 
 


Constructor Summary
PdfReport()
           
 
Method Summary
 void doActionImpl(HealthEvent healthEvent)
           
 void init()
           
 void setLogDirectory(java.lang.String logDirectory)
          PDF output directory (defaults to resin log directory)
 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 setWatchdog(boolean isWatchdog)
          Sets watchdog (postmortem)
 
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
 

Constructor Detail

PdfReport

public PdfReport()
Method Detail

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 -

setMailTo

@Configurable
public void setMailTo(java.lang.String mailTo)
Mail address


setMailFrom

@Configurable
public void setMailFrom(java.lang.String mailFrom)
Mail from address


setSnapshot

@Configurable
public void setSnapshot(boolean isSnapshot)
Set true if the report should take a snapshot first.


setProfileTime

@Configurable
public void setProfileTime(Period period)
Set the length of time for the report snapshot cpu profile


setProfileTick

@Configurable
public void setProfileTick(Period period)
Set the length of time for the cpu profile tick


setWatchdog

@Configurable
public void setWatchdog(boolean isWatchdog)
Sets watchdog (postmortem)


init

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

doActionImpl

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