|
![]() |
||||||||||
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.Queue__Monitor
This Monitor watches the internal server queues. YES! this system is SO great it monitors itself!
Field Summary | |
private ConfigurationProxy |
_cp
A reference to the configuration proxy in use |
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 |
private String |
SOURCE
|
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 | |
Queue__Monitor()
|
Method Summary | |
void |
analysePacket(XMLPacket packet)
Analyse a packet of data, and generate an alert if necessary. |
private int |
checkAttributeThreshold(double qSize,
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. |
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 final String SOURCE
private String _name
private ConfigurationProxy _cp
private HashMap _hosts
Constructor Detail |
public Queue__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(double qSize, Register reg)
qSize
- the size of a queuereg
- the Register for the host
protected Queue getQueue()
getQueue
in class MonitorSkeleton
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |