public class DBQuery extends Monitor
| Modifier and Type | Field and Description |
|---|---|
static int |
CONNFAILED |
static int |
LOGINREFUSED |
static int |
LOGINTIMEOUT |
static int |
NOTAVAILABLE |
static int |
PROTOCOLERROR |
static int |
QUERYERROR |
static int |
QUERYFAILED |
static int |
QUERYOK |
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, xPatternGroupDISABLED, EXCEPTION, NOSKIP, REPORT_CACHED, REPORT_CLUSTER, REPORT_FINAL, REPORT_FLOW, REPORT_LOCAL, REPORT_NODE, REPORT_NONE, REPORT_SHARED, SKIPPED| Constructor and Description |
|---|
DBQuery(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
|
void |
dbClose() |
void |
destroy()
closes and releases all opened resources
|
protected void |
finalize() |
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.
|
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
|
getName, getReportKeys, getReportMode, getReportName, getSkippingStatus, initTimeTemplate, updateContentpublic static final int NOTAVAILABLE
public static final int CONNFAILED
public static final int QUERYOK
public static final int PROTOCOLERROR
public static final int QUERYERROR
public static final int QUERYFAILED
public static final int LOGINTIMEOUT
public static final int LOGINREFUSED
public java.util.Map<java.lang.String,java.lang.Object> generateReport(long currentTime)
throws java.io.IOException
MonitorReportgenerateReport in interface MonitorReportgenerateReport in class Monitorjava.io.IOExceptionpublic Event performAction(int status, long currentTime, java.util.Map<java.lang.String,java.lang.Object> latest)
MonitorActionperformAction in interface MonitorActionperformAction in class Monitorpublic void dbClose()
public java.util.Map<java.lang.String,java.lang.Object> checkpoint()
MonitorActioncheckpoint in interface MonitorActioncheckpoint in class Monitorpublic void restoreFromCheckpoint(java.util.Map<java.lang.String,java.lang.Object> chkpt)
MonitorActionrestoreFromCheckpoint in interface MonitorActionrestoreFromCheckpoint in class Monitorpublic void destroy()
MonitorReportdestroy in interface MonitorReportdestroy in class Monitor