|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.queue.QueueWatcher
This class holds the threads and state associated with running a particular queue
Field Summary | |
private static long |
DEFAULT_INTERVAL
|
(package private) WtQueue |
q
|
(package private) boolean |
queueEnabled
|
private QueueMonitorHelper |
queueMonitorHelper
|
(package private) String |
queueName
|
private static boolean |
REFRESH_VERBOSE
|
(package private) Thread |
runner
|
private static boolean |
RUNNER_CHECK
|
(package private) boolean |
startRunner
|
(package private) boolean |
thisHost
|
private static boolean |
UPDATE_VERBOSE
|
private static boolean |
VERBOSE
|
Constructor Summary | |
QueueWatcher(WtQueue queue,
boolean enabled,
boolean host)
Constructor Supported API: false |
Method Summary | |
boolean |
activeRunnerThread()
returns the active state of the process thread Supported API: false |
String |
getName()
returns the queue name Supported API: false |
private QueueMonitorHelper |
getQMHelper()
Method which establishes and return an instance of QueueMonitorHelper Supported API: false |
WtQueue |
getQueue()
returns the queue instance held by this QueueWatcher Supported API: false |
boolean |
getQueueEnabled()
returns the queues enabled status for this watcher Supported API: false |
Thread |
getRunner()
returns the process thread associated with this queue Supported API: false |
boolean |
getStartRunner()
get start runner thread enable flag |
boolean |
getThisQueueHost()
returns a boolean indicating whether this queue is run on this host Supported API: false |
boolean |
okToMonitor()
Test to see if its ok to monitor this queue Supported API: false |
private void |
refreshQueueWatcher(WtQueue queue)
Synchronized method which refreshes the queue instance held by this queue watcher Supported API: false |
void |
setQueueEnabled(boolean enable)
sets the queues enabled status for this watcher Supported API: false |
private void |
setQueueState(WtQueue queue,
String state)
method which sets and saves a queues running state Supported API: false |
void |
startProcessing()
method which wakes up the process thread for this queue Supported API: false |
void |
startQueue()
starts this queue by creating and starting a process thread for the queue. |
void |
startQueueRunner(boolean value)
set start runner thread enable flag |
void |
stopQueue()
stops the queue eliminating the associated process thred Supported API: false |
void |
updateState(WtQueue queue)
update a queues state information Supported API: false |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static boolean VERBOSE
private static boolean UPDATE_VERBOSE
private static boolean REFRESH_VERBOSE
private static boolean RUNNER_CHECK
private static long DEFAULT_INTERVAL
private QueueMonitorHelper queueMonitorHelper
String queueName
WtQueue q
boolean queueEnabled
boolean thisHost
Thread runner
boolean startRunner
Constructor Detail |
public QueueWatcher(WtQueue queue, boolean enabled, boolean host)
queue
- enabled
- host
- Method Detail |
private void refreshQueueWatcher(WtQueue queue) throws WTException
WTException
private QueueMonitorHelper getQMHelper()
public boolean okToMonitor()
public void setQueueEnabled(boolean enable)
public boolean getQueueEnabled()
public boolean getThisQueueHost()
public String getName()
public WtQueue getQueue()
public Thread getRunner()
public boolean activeRunnerThread()
public void startQueueRunner(boolean value)
public boolean getStartRunner()
public void startQueue() throws WTException
WTException
public void stopQueue() throws WTException
WTException
public void updateState(WtQueue queue) throws WTException
WTException
public void startProcessing() throws WTException
WTException
private void setQueueState(WtQueue queue, String state) throws WTException
queue
- state
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |