|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--uk.org.iscream.cms.server.client.monitors.WebFeeder__Monitor
Provides a full XMLPacket feed to the WebFeeder
Field Summary | |
private Logger |
_logger
This holds a reference to the system logger that is being used. |
private String |
_name
This is the friendly identifier of the component this class is running in. |
protected int |
_qID
Holds our queue ID number. |
protected boolean |
_running
A flag so we can stop if required. |
static String |
DESC
A description of this monitor |
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 | |
WebFeeder__Monitor()
Constructs a new instance of this hook for the WebFeeder. |
Method Summary | |
void |
analysePacket(XMLPacket packet)
Sends a packet to the WebFeeder for processing, if we are active. |
String |
getDescription()
return the String representation of what the monitor does |
protected Queue |
getQueue()
Returns a reference to a specific Queue for this monitor. |
protected int |
getQueueId()
Gets us a queue within the Queue we're using. |
void |
run()
Keeps getting packets from the queue, and analyses them. |
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
public static final String DESC
private String _name
private Logger _logger
protected int _qID
protected boolean _running
Constructor Detail |
public WebFeeder__Monitor()
Method Detail |
public void run()
run
in interface Runnable
run
in class Thread
public void analysePacket(XMLPacket packet)
packet
- the XMLPacket to send to the WebFeederpublic String getDescription()
getDescription
in interface PluginMonitor
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()
toString
in class Thread
protected Queue getQueue()
protected int getQueueId()
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |