|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.queue.QueueMonitorHelper
This class provides support methods to the QueueMonitor some of which are also used by the StandardQueueService
Nested Class Summary | |
(package private) static class |
QueueMonitorHelper.QueueModificationListener
Top level inner class which signals queue modifications - creates and deletes |
(package private) static class |
QueueMonitorHelper.QueueStateListener
Top level inner class which signals queue modifications - queue state changes |
Field Summary | |
private static boolean |
CACHE_VERBOSE
|
private static String |
DEFAULT_HOST
|
private static boolean |
HOST_CHECK
|
private static String |
PROCESS_Q
|
private static Hashtable |
queueHosts
|
private static String |
SCHEDULE_Q
|
private static Vector |
thisHost
|
private static boolean |
VERBOSE
|
private static long |
WAIT_STATE_CHANGE
|
Constructor Summary | |
QueueMonitorHelper()
|
Method Summary | |
boolean |
checkQSS(WtQueue queue)
Check to see if a queue has been started Supported API: false |
private static Boolean |
checkQueueHost(Boolean qHost,
WtQueue queue)
check to see if queue execution host has changed Supported API: false |
void |
createQueue(WtQueue queue)
Saves a queue and emmits a queue modification signal Supported API: false |
void |
deleteEntries(WtQueue queue)
Delete a queues entries Supported API: false |
void |
deleteEntries(WtQueue queue,
String status_code)
Delete a queues entries with a specific status code Supported API: false |
void |
deleteEntry(QueueInfo qi,
QueueEntryInfo qei)
Delete a specific queue entry Used by jsp based Queue Manager Supported API: false |
WtQueue |
deleteQueue(WtQueue queue)
Deletes a queue first stop the queue delete associated queue enties finally delete the queue and signal a queue modification Supported API: false |
boolean |
duplicateQueueName(String q_name,
String q_type)
|
private static Enumeration |
getHost()
Method to determine execution host (hostname) Supported API: false |
static long |
getInterval(ProcessingQueue queue)
Get processing queue polling interval Supported API: false |
private static Hashtable |
getQueueHosts()
returns the queueHosts table or creates and returns the hashtable if one doesn't exist Supported API: false |
private static Boolean |
getThisHost(String queue)
Determines if a queue executes on this host based on wt.properties entry Supported API: false |
private static Boolean |
getThisHost(WtQueue queue)
Determines if a queue executes on this host based on persistent host attribute Note: The persistent host attribute take presidence over a wt.properties host entry for a given queue Supported API: false |
static WtQueue |
getWtQueue(String name,
Class type)
Get an instance of WtQueue Supported API: false |
static WtQueue |
getWtQueue(WtQueue q)
Get an instance of WtQueue Supported API: false |
boolean |
isActive(WtQueue aQueue)
Determines if queue is active Supported API: false |
boolean |
okToStartStop(WtQueue queue)
Check to see if this queue is controlable Supported API: false |
Enumeration |
queueEntries(ProcessingQueue queue,
String status_code)
Get a process queues entries which have a specific status code Supported API: false |
Enumeration |
queueEntries(ProcessingQueue queue,
Vector status_codes)
Get a process queues entries which have a specific status code Supported API: false |
Enumeration |
queueEntries(ScheduleQueue queue,
String status_code)
Get a schedule queues entries which have a specific status code Supported API: false |
Enumeration |
queueEntries(WtQueue queue)
Get a queues entries Supported API: false |
Enumeration |
queues()
Get all ProcessingQueues Supported API: false |
Enumeration |
queues(Class queue_type)
Get all Queues of a given type Supported API: false |
boolean |
queueStopped(WtQueue queue)
Check to see if a queue has been stopped Supported API: false |
WtQueue |
refreshQueue(WtQueue queue)
Refresh a queue instance Supported API: false |
void |
resetAllEntries(WtQueue queue,
Class q_class)
|
void |
resetEntriesPQ(ProcessingQueue queue,
String entry_num)
|
void |
resetEntriesSQ(ScheduleQueue queue)
|
static void |
setQueueEnabled(WtQueue aQueue,
boolean desired)
Set a queue's enabled state Supported API: false |
void |
setQueueExecutionHost(WtQueue queue,
String hostName)
Set a queues execution host Supported API: false |
void |
startQueue(WtQueue queue)
Start a queue Supported API: false |
void |
stopQueue(WtQueue queue)
Stop a queue Supported API: false |
boolean |
thisQueueThisHost(String queue,
WtQueue aQueue)
Determines if queue should run on this server Supported API: false |
WtQueueEntry |
updateEntry(WtQueueEntry qe,
UpdateEntry ue)
|
void |
updateEntry(WtQueue queue,
UpdateEntry ue)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static Hashtable queueHosts
private static Vector thisHost
private static boolean VERBOSE
private static boolean CACHE_VERBOSE
private static boolean HOST_CHECK
private static long WAIT_STATE_CHANGE
private static final String PROCESS_Q
private static final String SCHEDULE_Q
private static String DEFAULT_HOST
Constructor Detail |
public QueueMonitorHelper()
Method Detail |
private static Enumeration getHost()
private static Hashtable getQueueHosts()
private static Boolean getThisHost(String queue)
queue
-
private static Boolean getThisHost(WtQueue queue)
queue
-
private static Boolean checkQueueHost(Boolean qHost, WtQueue queue)
queue
- qHost
-
public boolean thisQueueThisHost(String queue, WtQueue aQueue)
queue
- aQueue
-
public boolean isActive(WtQueue aQueue) throws WTException
aQueue
-
WTException
public static WtQueue getWtQueue(WtQueue q) throws WTException
WTException
public static WtQueue getWtQueue(String name, Class type) throws WTException
name
- type
-
WTException
public static long getInterval(ProcessingQueue queue) throws WTException
queue
-
WTException
public static void setQueueEnabled(WtQueue aQueue, boolean desired) throws WTException
aQueue
-
WTException
public void createQueue(WtQueue queue) throws WTException
queue
-
WTException
public WtQueue deleteQueue(WtQueue queue) throws WTException
queue
-
WTException
public Enumeration queues() throws WTException
WTException
public Enumeration queues(Class queue_type) throws WTException
queue_type
-
WTException
public WtQueue refreshQueue(WtQueue queue) throws WTException
queue
-
WTException
public boolean queueStopped(WtQueue queue) throws WTException
queue
-
WTException
public boolean checkQSS(WtQueue queue) throws WTException
queue
-
WTException
public void deleteEntries(WtQueue queue) throws WTException
queue
-
WTException
public void deleteEntries(WtQueue queue, String status_code) throws WTException
queue
- status_code
-
WTException
public void deleteEntry(QueueInfo qi, QueueEntryInfo qei) throws WTException
WTException
public Enumeration queueEntries(WtQueue queue) throws WTException
queue
-
WTException
public Enumeration queueEntries(ProcessingQueue queue, String status_code) throws WTException
queue
- status_code
-
WTException
public Enumeration queueEntries(ProcessingQueue queue, Vector status_codes) throws WTException
queue
- status_codes
-
WTException
public Enumeration queueEntries(ScheduleQueue queue, String status_code) throws WTException
queue
- status_code
-
WTException
public void setQueueExecutionHost(WtQueue queue, String hostName) throws WTException
queue
- hostName
-
WTException
public void stopQueue(WtQueue queue) throws WTException
queue
-
WTException
public void startQueue(WtQueue queue) throws WTException
queue
-
WTException
public boolean okToStartStop(WtQueue queue)
queue
- public void resetEntriesPQ(ProcessingQueue queue, String entry_num) throws WTException
WTException
public void updateEntry(WtQueue queue, UpdateEntry ue)
public WtQueueEntry updateEntry(WtQueueEntry qe, UpdateEntry ue) throws WTException
WTException
public void resetEntriesSQ(ScheduleQueue queue) throws WTException
WTException
public void resetAllEntries(WtQueue queue, Class q_class) throws WTException
WTException
public boolean duplicateQueueName(String q_name, String q_type) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |