public class ProcessMonitor extends Monitor
actionCount, actionGroup, aPatternGroup, cachedSkip, category, dependencyGroup, description, disabledWithReport, disableMode, exceptionCount, exceptionTolerance, FILE_SEPARATOR, formatText, keyList, maxPage, maxRetry, name, normalStep, pm, previousStatus, repeatPeriod, report, reportMode, reportName, resolution, serialNumber, site, skip, statsLogger, statusOffset, statusText, step, template, timeFormat, timeTemplate, tolerance, type, xPatternGroup
DISABLED, EXCEPTION, NOSKIP, REPORT_CACHED, REPORT_CLUSTER, REPORT_FINAL, REPORT_FLOW, REPORT_LOCAL, REPORT_NODE, REPORT_NONE, REPORT_SHARED, SKIPPED
Constructor and Description |
---|
ProcessMonitor(java.util.Map props) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
checkpoint()
returns the checkpoint Map for the action
|
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.
|
int |
getPid(java.lang.String line) |
Event |
performAction(int status,
long currentTime,
java.util.Map<java.lang.String,java.lang.Object> latest)
examines the report on the monitored entity and reacts to it as an action
|
void |
restoreFromCheckpoint(java.util.Map<java.lang.String,java.lang.Object> chkpt)
restores the state of the action from the checkpoint Map
|
destroy, finalize, getName, getReportKeys, getReportMode, getReportName, getSkippingStatus, initTimeTemplate, updateContent
public java.util.Map<java.lang.String,java.lang.Object> generateReport(long currentTime) throws TimeoutException
MonitorReport
generateReport
in interface MonitorReport
generateReport
in class Monitor
TimeoutException
public Event performAction(int status, long currentTime, java.util.Map<java.lang.String,java.lang.Object> latest)
MonitorAction
performAction
in interface MonitorAction
performAction
in class Monitor
public int getPid(java.lang.String line)
public java.util.Map<java.lang.String,java.lang.Object> checkpoint()
MonitorAction
checkpoint
in interface MonitorAction
checkpoint
in class Monitor
public void restoreFromCheckpoint(java.util.Map<java.lang.String,java.lang.Object> chkpt)
MonitorAction
restoreFromCheckpoint
in interface MonitorAction
restoreFromCheckpoint
in class Monitor