public class ChannelMonitor extends Monitor
Modifier and Type | Field and Description |
---|---|
static int |
CH_ALL |
static int |
CH_BINDING |
static int |
CH_CLNTCONN |
static int |
CH_INACTIVE |
static int |
CH_INITIALIZING |
static int |
CH_NOAPPS |
static int |
CH_NOTFOUND |
static int |
CH_PAUSED |
static int |
CH_RECEIVER |
static int |
CH_REQUESTER |
static int |
CH_REQUESTING |
static int |
CH_RETRYING |
static int |
CH_RUNNING |
static int |
CH_SENDER |
static int |
CH_SERVER |
static int |
CH_STARTING |
static int |
CH_STOPPED |
static int |
CH_STOPPING |
static int |
CH_STUCK |
static int |
CH_SVRCONN |
static int |
CH_UNKNOWN |
static int[] |
chAttrs |
static java.lang.String[] |
chStatusText |
static java.lang.String[] |
chTypeText |
static int |
Q_KEEPOPEN |
static int[] |
qAttrs |
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 |
---|
ChannelMonitor(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 |
destroy()
closes and releases all opened resources
|
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.
|
static void |
main(java.lang.String[] args) |
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
|
finalize, getName, getReportKeys, getReportMode, getReportName, getSkippingStatus, initTimeTemplate, updateContent
public static final java.lang.String[] chStatusText
public static final int CH_STUCK
public static final int CH_NOAPPS
public static final int CH_UNKNOWN
public static final int CH_NOTFOUND
public static final int CH_INACTIVE
public static final int CH_BINDING
public static final int CH_STARTING
public static final int CH_RUNNING
public static final int CH_STOPPING
public static final int CH_RETRYING
public static final int CH_STOPPED
public static final int CH_REQUESTING
public static final int CH_PAUSED
public static final int CH_INITIALIZING
public static int[] qAttrs
public static int[] chAttrs
public static final int Q_KEEPOPEN
public static final int CH_SENDER
public static final int CH_SERVER
public static final int CH_RECEIVER
public static final int CH_REQUESTER
public static final int CH_ALL
public static final int CH_CLNTCONN
public static final int CH_SVRCONN
public static final java.lang.String[] chTypeText
public java.util.Map<java.lang.String,java.lang.Object> generateReport(long currentTime) throws java.io.IOException
MonitorReport
generateReport
in interface MonitorReport
generateReport
in class Monitor
java.io.IOException
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 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
public void destroy()
MonitorReport
destroy
in interface MonitorReport
destroy
in class Monitor
public static void main(java.lang.String[] args)