|
![]() |
||||||||||
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.MonitorManager
A manager for the Monitors. This class starts by loading all the monitors as specificed in the configuration. These monitors should implement the PluginMonitor interface. This class then takes the feed of data coming in over CORBA from the ClientServant queue. This data is then looked at to determine type. It then places it into either a data queue, or an other queue, and all data in the the all queue. Monitors then read the data off the queue that they are interested in and process the data accordingly.
Field Summary | |
private Queue |
_allQueue
Outgoing ALL Queue |
private Queue |
_dataQueue
Outgoing data Queue |
private static MonitorManager |
_instance
A reference to the single instance of this class |
private Logger |
_logger
This holds a reference to the system logger that is being used. |
private LinkedList |
_monitorPipeline
LinkedList for holding the PluginMonitor objects (the pipeline). |
private String |
_name
This is the friendly identifier of the component this class is running in. |
private Queue |
_otherQueue
Outgoing other Queue |
private int |
_qID
Our incoming queue ID |
private Queue |
_queue
A reference to our incoming Queue |
private ReferenceManager |
_refman
A reference to the reference manager in use |
private String |
_suffix
file name suffix for plugin monitor classes: |
private XMLCache |
_xmlCache
A reference to the XMLCache in use |
static String |
REVISION
The current CVS revision of this class |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
private |
MonitorManager()
Constructs a new MonitorManager. |
Method Summary | |
Queue |
getAllQueue()
In case a Monitor wants more than one type of packet, this queue can be obtained. |
Queue |
getDataQueue()
Allows Monitors to obtain the queue of data packets |
static MonitorManager |
getInstance()
Return a reference to the single class. |
Queue |
getOtherQueue()
Allows Monitors to obtain the queue of all other packets |
void |
run()
Runs the MonitorManager. |
String |
toString()
Overrides the Object.toString()
method to provide clean logging (every class should have this). |
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 static final String REVISION
private String _name
private Logger _logger
private ReferenceManager _refman
private Queue _queue
private int _qID
private final String _suffix
private LinkedList _monitorPipeline
private Queue _dataQueue
private Queue _otherQueue
private Queue _allQueue
private XMLCache _xmlCache
private static MonitorManager _instance
Constructor Detail |
private MonitorManager()
Method Detail |
public static MonitorManager getInstance()
public void run()
public String toString()
Object.toString()
method to provide clean logging (every class should have this).
This uses the uk.org.iscream.cms.util.FormatName class
to format the toString()
public Queue getDataQueue()
public Queue getOtherQueue()
public Queue getAllQueue()
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |