public class MonitorGroup
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FILE_SEPARATOR |
static int |
GROUP_CAPACITY |
static int |
TASK_COUNT |
static int |
TASK_GID |
static int |
TASK_ID |
static int |
TASK_RETRY |
static int |
TASK_SIZE |
static int |
TASK_STATUS |
static int |
TASK_TIME |
static int |
TASK_TYPE |
Constructor and Description |
---|
MonitorGroup(java.util.Map props) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.util.Map<java.lang.String,java.lang.Object> |
diff(java.util.Map props)
It returns a Map with only modified or new props.
|
int |
dispatch(XQueue xq)
It dispatches refreshed monitors to xq and returns total number of
dispached monitor jobs
|
protected void |
finalize() |
int |
getCapacity() |
int |
getDebugMode() |
int |
getHeartbeat() |
int |
getMaxRetry() |
long |
getMTime() |
java.lang.String |
getName() |
static java.util.Map |
getReport(java.lang.String rptName)
returns the report map stored in the sharedReport on the rptName
|
int |
getSize() |
int |
getTimeout() |
static java.util.Map<java.lang.String,java.lang.Object> |
initMonitor(java.util.Map ph,
java.lang.String prefix)
It initializes a monitor object with the given property map and returns
a Map upon success or null otherwise.
|
boolean |
isDynamic() |
java.util.Map<java.lang.String,java.lang.String> |
queryInfo(long currentTime,
long sessionTime,
java.lang.String target,
java.lang.String key,
int type)
returns a Map containing queried information of the group according to
the result type
|
int |
reload(java.util.Map<java.lang.String,java.lang.Object> change)
It reloads the changes for the entire group.
|
void |
setDebugMode(int debug) |
void |
showChange(java.lang.String prefix,
java.lang.String base,
java.util.Map<java.lang.String,java.lang.Object> change,
boolean detail)
It loggs the details of the change returned by diff()
|
public static final int TASK_ID
public static final int TASK_GID
public static final int TASK_SIZE
public static final int TASK_TYPE
public static final int TASK_RETRY
public static final int TASK_STATUS
public static final int TASK_COUNT
public static final int TASK_TIME
public static final int GROUP_CAPACITY
public static final java.lang.String FILE_SEPARATOR
public java.util.Map<java.lang.String,java.lang.Object> diff(java.util.Map props)
public void showChange(java.lang.String prefix, java.lang.String base, java.util.Map<java.lang.String,java.lang.Object> change, boolean detail)
public int reload(java.util.Map<java.lang.String,java.lang.Object> change)
public int dispatch(XQueue xq)
public java.util.Map<java.lang.String,java.lang.String> queryInfo(long currentTime, long sessionTime, java.lang.String target, java.lang.String key, int type)
public java.lang.String getName()
public int getSize()
public int getCapacity()
public int getHeartbeat()
public int getTimeout()
public int getMaxRetry()
public long getMTime()
public int getDebugMode()
public void setDebugMode(int debug)
public boolean isDynamic()
public void close()
protected void finalize()
finalize
in class java.lang.Object
public static java.util.Map<java.lang.String,java.lang.Object> initMonitor(java.util.Map ph, java.lang.String prefix)
public static java.util.Map getReport(java.lang.String rptName)