|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
uk.org.iscream.cms.server.client.MonitorSkeleton
uk.org.iscream.cms.server.client.monitors.Paging__Monitor
This Monitor watches the Paging activity for all machines
Field Summary | |
private String[] |
_attributeNames
An array of "nice names" for the attributes in _attributes. |
private String[] |
_attributes
An array of attributes which we will be checking. |
private HashMap |
_hosts
A HashMap of Registers (or groups of Registers), one for each host we're monitoring. |
private String |
_name
This is the friendly identifier of the component this class is running in. |
String |
DESC
A description of this monitor |
String |
REVISION
The current CVS revision of this class |
Fields inherited from class uk.org.iscream.cms.server.client.MonitorSkeleton |
_alerterQueue, _logger, _qID, _running |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
Paging__Monitor()
|
Method Summary | |
void |
analysePacket(XMLPacket packet)
Analyse a packet of data, and generate an alert if necessary. |
private int |
checkAttributeThreshold(String attributeString,
Register reg)
Checks a piece of current data, and returns the threshold it breaches, if any. |
String |
getDescription()
return the String representation of what the monitor does |
protected Queue |
getQueue()
Returns a reference to a specific Queue for this monitor. |
private void |
initAttributeRegsiters(String source,
HashMap attributeRegisters)
Initialises a HashMap of Registers with the current list of attributes. |
String |
toString()
Overrides the Object.toString()
method to provide clean logging (every class should have this). |
Methods inherited from class uk.org.iscream.cms.server.client.MonitorSkeleton |
checkBooleanConfig, getQueueId, processAlert, run |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public final String REVISION
public final String DESC
private String _name
private HashMap _hosts
private String[] _attributes
private String[] _attributeNames
Constructor Detail |
public Paging__Monitor()
Method Detail |
public void analysePacket(XMLPacket packet)
analysePacket
in class MonitorSkeleton
packet
- the XMLPacket to analysepublic String toString()
Object.toString()
method to provide clean logging (every class should have this).
This uses the uk.org.iscream.cms.util.NameFormat class
to format the toString()
public String getDescription()
getDescription
in interface PluginMonitor
getDescription
in class MonitorSkeleton
private int checkAttributeThreshold(String attributeString, Register reg)
attributeString
- a String representing the current data valuereg
- the Register for the host
private void initAttributeRegsiters(String source, HashMap attributeRegisters)
source
- the host we are looking atattributeRegisters
- a HashMap to put the new Registers inprotected Queue getQueue()
getQueue
in class MonitorSkeleton
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |