|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.queue.StandardQueueService
Standard implementation of the QueueService interface.
Use the newStandardQueueService
static factory method(s),
not the StandardQueueService
constructor, to construct instances
of this class. Instances must be constructed using the static factory(s),
in order to ensure proper initialization of the instance.
Supported API: true
Extendable: false
Nested Class Summary | |
(package private) class |
StandardQueueService.AllManagersStartedEventListener
|
Field Summary | |
private StandardQueueService.AllManagersStartedEventListener |
allManagersStartedListener
|
private static String |
CLASSNAME
|
private static long |
DEFAULT_INTERVAL
Default wait/sleep interval to be used for all created queues. |
private static boolean |
EXECUTE_QUEUES
|
private static int |
MAX_PROCESS_QUEUES
|
private static int |
MAX_SCHEDULE_QUEUES
|
private static String |
PROCESS_Q
|
private static String |
Q_RESOURCE
|
private QueueMonitorHelper |
queueMonitorHelper
|
private static String |
RESOURCE
|
private static String |
SCHEDULE_Q
|
private StandardQueueMonitor |
standardQueueMonitor
|
private static boolean |
VERBOSE
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardQueueService()
|
Method Summary | |
private int |
countQueues(Class type)
|
ProcessingQueue |
createQueue(String queue_name)
Creates a new queue given its name. |
ProcessingQueue |
createQueue(String queue_name,
String host)
Creates a new queue given its name. |
ScheduleQueue |
createScheduleQueue(String queue_name)
Supported API: false |
ScheduleQueue |
createScheduleQueue(String queue_name,
String host)
Supported API: false |
void |
deleteEntries(ProcessingQueue queue)
Deletes all entries of a specified tree. |
void |
deleteEntries(ProcessingQueue queue,
String status_code)
Deletes all entries that have the status code specified. |
void |
deleteEntries(ScheduleQueue queue)
Supported API: false |
void |
deleteEntries(ScheduleQueue queue,
String status_code)
Supported API: false |
void |
deleteEntry(QueueInfo qi,
QueueEntryInfo qei)
Supported API: false |
ProcessingQueue |
deleteQueue(ProcessingQueue queue)
Deletes the queue given its name. |
ScheduleQueue |
deleteQueue(ScheduleQueue queue)
Supported API: false |
void |
enableQueue(ProcessingQueue queue,
boolean desired)
Supported API: false |
void |
enableQueue(ScheduleQueue queue,
boolean desired)
Supported API: false |
void |
executeEntry(QueueEntry entry)
Execute the entry passed as argument. |
boolean |
executeQueues()
|
String |
getConceptualClassname()
Deprecated. |
long |
getInterval(ProcessingQueue queue)
Retrieves the waiting/sleeping interval of the queue passed as argument. |
ProcessingQueue |
getQueue(String queue_name)
Supported API: false |
WtQueue |
getQueue(String queue_name,
Class queue_type)
Supported API: false |
boolean |
isActive(ProcessingQueue queue)
Retuns 'true' if queue has been started (and not stoppped). |
boolean |
isActive(ScheduleQueue queue)
Supported API: false |
static StandardQueueService |
newStandardQueueService()
Supported API: false |
protected void |
performStartupProcess()
Performs start up initialization -- creating the thread table in this case. |
Enumeration |
queueEntries(ProcessingQueue queue)
Returns all queue entries as an enumeration. |
Enumeration |
queueEntries(ProcessingQueue queue,
String status_code)
Returns all existing queue entries that are in the state passed as argument. |
Enumeration |
queueEntries(ProcessingQueue queue,
Vector status_codes)
Supported API: false |
Enumeration |
queueEntries(ScheduleQueue queue)
Supported API: false |
Enumeration |
queueEntries(ScheduleQueue queue,
String status_code)
Supported API: false |
Enumeration |
queues()
Returns all existing queues (active or not). |
Enumeration |
queues(Class queue_type)
Supported API: false |
void |
resetQueueEntry(ProcessingQueue queue,
String entry_num)
Supported API: false |
void |
resetQueueEntry(ScheduleQueue queue)
Supported API: false |
void |
setExceptionRetries(WtQueue queue,
String retries)
Supported API: false |
void |
setFailureNotificationEmail(WtQueue queue,
String email)
Supported API: false |
void |
setInterval(ProcessingQueue queue,
long interval)
Establishes the wait/sleep interval for a specific queue. |
void |
setPollingInterval(WtQueue queue,
String interval)
Supported API: false |
void |
setQueueExecutionHost(ProcessingQueue queue,
String host)
Supported API: false |
void |
setQueueExecutionHost(ScheduleQueue queue,
String host)
Supported API: false |
void |
setSuspendDuration(WtQueue queue,
String duration)
Supported API: false |
void |
startAllQueues()
Starts all existing queues. |
void |
startProcessing(ProcessingQueue queue)
Starts immediate processing for a specified queue. |
void |
startProcessing(ScheduleQueue queue)
Supported API: false |
void |
startQueue(ProcessingQueue queue)
Starts a specific queue. |
void |
startQueue(ScheduleQueue queue)
Supported API: true |
void |
startQueueProcessing(String queueName)
Supported API: false |
void |
stopAllQueues()
Stops all existing queues. |
void |
stopQueue(ProcessingQueue queue)
Stops a specific queue. |
void |
stopQueue(ScheduleQueue queue)
Supported API: true |
void |
updateQueueEntry(WtQueue queue,
UpdateEntry entryInfo)
Supported API: false |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final long DEFAULT_INTERVAL
private static boolean VERBOSE
private static boolean EXECUTE_QUEUES
private static int MAX_PROCESS_QUEUES
private static int MAX_SCHEDULE_QUEUES
private StandardQueueMonitor standardQueueMonitor
private QueueMonitorHelper queueMonitorHelper
private StandardQueueService.AllManagersStartedEventListener allManagersStartedListener
private static final String Q_RESOURCE
private static final String PROCESS_Q
private static final String SCHEDULE_Q
Constructor Detail |
public StandardQueueService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
public static StandardQueueService newStandardQueueService() throws WTException
WTException
protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
public Enumeration queues() throws WTException
queues
in interface QueueService
WTException
public Enumeration queues(Class queue_type) throws WTException
queues
in interface QueueService
queue_type
-
WTException
public ProcessingQueue getQueue(String queue_name) throws WTException
getQueue
in interface QueueService
queue_name
-
WTException
public WtQueue getQueue(String queue_name, Class queue_type) throws WTException
getQueue
in interface QueueService
queue_name
- queue_type
-
WTException
public void startAllQueues() throws WTException
startAllQueues
in interface QueueService
WTException
public void stopAllQueues() throws WTException
stopAllQueues
in interface QueueService
WTException
public void enableQueue(ProcessingQueue queue, boolean desired) throws WTException
enableQueue
in interface QueueService
queue
- desired
-
WTException
public void enableQueue(ScheduleQueue queue, boolean desired) throws WTException
enableQueue
in interface QueueService
queue
- desired
-
WTException
public ProcessingQueue createQueue(String queue_name) throws WTException
createQueue
in interface QueueService
queue_name
-
WTException
public ScheduleQueue createScheduleQueue(String queue_name) throws WTException
createScheduleQueue
in interface QueueService
queue_name
-
WTException
public ProcessingQueue deleteQueue(ProcessingQueue queue) throws WTException
deleteQueue
in interface QueueService
queue
-
WTException
public ScheduleQueue deleteQueue(ScheduleQueue queue) throws WTException
deleteQueue
in interface QueueService
queue
-
WTException
public boolean isActive(ProcessingQueue queue) throws WTException
isActive
in interface QueueService
queue
-
WTException
public boolean isActive(ScheduleQueue queue) throws WTException
isActive
in interface QueueService
queue
-
WTException
public long getInterval(ProcessingQueue queue) throws WTException
getInterval
in interface QueueService
queue
-
WTException
public void startQueue(ProcessingQueue queue) throws WTException
startQueue
in interface QueueService
queue
-
WTException
public void startQueue(ScheduleQueue queue) throws WTException
startQueue
in interface QueueService
queue
-
WTException
public void stopQueue(ProcessingQueue queue) throws WTException
stopQueue
in interface QueueService
queue
-
WTException
public void stopQueue(ScheduleQueue queue) throws WTException
stopQueue
in interface QueueService
queue
-
WTException
public void setInterval(ProcessingQueue queue, long interval) throws WTException
setInterval
in interface QueueService
queue
- interval
-
WTException
public void deleteEntries(ProcessingQueue queue) throws WTException
deleteEntries
in interface QueueService
queue
-
WTException
public void deleteEntries(ScheduleQueue queue) throws WTException
deleteEntries
in interface QueueService
queue
-
WTException
public void deleteEntries(ProcessingQueue queue, String status_code) throws WTException
deleteEntries
in interface QueueService
queue
- status_code
-
WTException
public void deleteEntries(ScheduleQueue queue, String status_code) throws WTException
deleteEntries
in interface QueueService
queue
- status_code
-
WTException
public Enumeration queueEntries(ProcessingQueue queue) throws WTException
queueEntries
in interface QueueService
queue
-
WTException
public Enumeration queueEntries(ScheduleQueue queue) throws WTException
queueEntries
in interface QueueService
queue
-
WTException
public Enumeration queueEntries(ProcessingQueue queue, String status_code) throws WTException
queueEntries
in interface QueueService
queue
- status_code
-
WTException
public Enumeration queueEntries(ProcessingQueue queue, Vector status_codes) throws WTException
queueEntries
in interface QueueService
queue
- status_codes
-
WTException
public Enumeration queueEntries(ScheduleQueue queue, String status_code) throws WTException
queueEntries
in interface QueueService
queue
- status_code
-
WTException
public void startProcessing(ProcessingQueue queue) throws WTException
startProcessing
in interface QueueService
queue
-
WTException
public void startProcessing(ScheduleQueue queue) throws WTException
startProcessing
in interface QueueService
queue
-
WTException
public void executeEntry(QueueEntry entry) throws WTException
executeEntry
in interface QueueService
entry
-
WTException
public void setQueueExecutionHost(ProcessingQueue queue, String host) throws WTException
setQueueExecutionHost
in interface QueueService
queue
- host
-
WTException
public void setQueueExecutionHost(ScheduleQueue queue, String host) throws WTException
setQueueExecutionHost
in interface QueueService
queue
- host
-
WTException
public ProcessingQueue createQueue(String queue_name, String host) throws WTException
createQueue
in interface QueueService
queue_name
- host
-
WTException
public ScheduleQueue createScheduleQueue(String queue_name, String host) throws WTException
createScheduleQueue
in interface QueueService
queue_name
- host
-
WTException
public void resetQueueEntry(ProcessingQueue queue, String entry_num) throws WTException
resetQueueEntry
in interface QueueService
queue
- entry_num
-
WTException
public void resetQueueEntry(ScheduleQueue queue) throws WTException
resetQueueEntry
in interface QueueService
queue
-
WTException
public void deleteEntry(QueueInfo qi, QueueEntryInfo qei) throws WTException
deleteEntry
in interface QueueService
qi
- qei
-
WTException
public void updateQueueEntry(WtQueue queue, UpdateEntry entryInfo) throws WTException
updateQueueEntry
in interface QueueService
queue
- entryInfo
-
WTException
public void setPollingInterval(WtQueue queue, String interval) throws WTException
setPollingInterval
in interface QueueService
queue
- interval
-
WTException
public void setSuspendDuration(WtQueue queue, String duration) throws WTException
setSuspendDuration
in interface QueueService
queue
- duration
-
WTException
public void setExceptionRetries(WtQueue queue, String retries) throws WTException
setExceptionRetries
in interface QueueService
queue
- retries
-
WTException
public void setFailureNotificationEmail(WtQueue queue, String email) throws WTException
setFailureNotificationEmail
in interface QueueService
queue
- email
-
WTException
public void startQueueProcessing(String queueName) throws WTException
startQueueProcessing
in interface QueueService
queueName
-
WTException
public boolean executeQueues()
private int countQueues(Class type) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |