public abstract class Report extends java.lang.Object implements MonitorReport
Modifier and Type | Field and Description |
---|---|
protected int |
cachedSkip |
protected java.util.List[] |
dependencyGroup |
protected boolean |
disabledWithReport |
protected int |
disableMode |
protected static java.lang.String |
FILE_SEPARATOR |
protected static java.lang.String[] |
formatText |
protected java.lang.String[] |
keyList |
protected java.lang.String |
name |
protected org.apache.oro.text.regex.Perl5Matcher |
pm |
protected java.util.Map<java.lang.String,java.lang.Object> |
report |
protected int |
reportMode |
protected java.lang.String |
reportName |
protected int |
resolution |
protected int |
serialNumber |
protected int |
skip |
protected GenericLogger |
statsLogger |
protected int |
step |
protected Template |
template |
protected java.text.SimpleDateFormat[] |
timeFormat |
protected Template |
timeTemplate |
protected java.lang.String |
type |
DISABLED, EXCEPTION, NOSKIP, REPORT_CACHED, REPORT_CLUSTER, REPORT_FINAL, REPORT_FLOW, REPORT_LOCAL, REPORT_NODE, REPORT_NONE, REPORT_SHARED, SKIPPED
Constructor and Description |
---|
Report(java.util.Map props) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
closes and releases all opened resources
|
protected void |
finalize() |
abstract java.util.Map<java.lang.String,java.lang.Object> |
generateReport(long currentTime)
generates a report on a monitored entity and returns it as a Map.
|
java.lang.String[] |
getReportKeys()
returns a copy of the shared report keys
|
int |
getReportMode()
returns the report mode
|
java.lang.String |
getReportName()
returns the name of the report
|
int |
getSkippingStatus()
returns the skipping status
|
protected int |
initTimeTemplate(java.lang.String text)
initializes the time-dependent template for dynamic support
|
protected java.lang.String |
updateContent(long currentTime)
returns the updated time-dependent content or null if it is static
|
protected java.lang.String name
protected java.lang.String type
protected int step
protected int skip
protected int disableMode
protected int serialNumber
protected int reportMode
protected int cachedSkip
protected int resolution
protected boolean disabledWithReport
protected Template template
protected java.util.Map<java.lang.String,java.lang.Object> report
protected java.util.List[] dependencyGroup
protected GenericLogger statsLogger
protected java.lang.String reportName
protected java.lang.String[] keyList
protected org.apache.oro.text.regex.Perl5Matcher pm
protected java.text.SimpleDateFormat[] timeFormat
protected Template timeTemplate
protected static final java.lang.String[] formatText
protected static final java.lang.String FILE_SEPARATOR
public abstract java.util.Map<java.lang.String,java.lang.Object> generateReport(long currentTime) throws java.lang.Exception
MonitorReport
generateReport
in interface MonitorReport
java.lang.Exception
public int getSkippingStatus()
MonitorReport
getSkippingStatus
in interface MonitorReport
public int getReportMode()
MonitorReport
getReportMode
in interface MonitorReport
public java.lang.String getReportName()
MonitorReport
getReportName
in interface MonitorReport
public java.lang.String[] getReportKeys()
MonitorReport
getReportKeys
in interface MonitorReport
protected int initTimeTemplate(java.lang.String text)
protected java.lang.String updateContent(long currentTime)
public void destroy()
MonitorReport
destroy
in interface MonitorReport
protected void finalize()
finalize
in class java.lang.Object