public class DummyAction extends java.lang.Object implements MonitorAction
Modifier and Type | Field and Description |
---|---|
protected int |
actionCount |
protected EventActionGroup |
actionGroup |
protected java.lang.String |
category |
protected java.lang.String |
description |
protected java.lang.String |
msg |
protected java.lang.String |
name |
protected int |
previousStatus |
protected int |
repeatPeriod |
protected java.lang.String |
site |
protected static java.lang.String[] |
statusText |
protected int |
tolerance |
protected java.lang.String |
type |
protected java.lang.String |
uri |
Constructor and Description |
---|
DummyAction(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.lang.String |
getName()
returns the name of the action
|
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
|
protected java.lang.String name
protected java.lang.String site
protected java.lang.String type
protected java.lang.String description
protected java.lang.String category
protected java.lang.String uri
protected java.lang.String msg
protected int previousStatus
protected int tolerance
protected int repeatPeriod
protected int actionCount
protected EventActionGroup actionGroup
protected static final java.lang.String[] statusText
public Event performAction(int status, long currentTime, java.util.Map<java.lang.String,java.lang.Object> latest)
MonitorAction
performAction
in interface MonitorAction
public java.lang.String getName()
MonitorAction
getName
in interface MonitorAction
public java.util.Map<java.lang.String,java.lang.Object> checkpoint()
MonitorAction
checkpoint
in interface MonitorAction
public void restoreFromCheckpoint(java.util.Map<java.lang.String,java.lang.Object> chkpt)
MonitorAction
restoreFromCheckpoint
in interface MonitorAction