|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.fc.WTObject
wt.fc.Item
wt.queue.WtQueue
wt.queue.ProcessingQueue
public class ProcessingQueue
The ProcessingQueue represents a specific (named) processing
queue. Queues can be started and stopped independently (through the
queue service). The ProcessingQueue class also supports the creation
and execution of queue entries.
this method is no longer supported
Use the newProcessingQueue static factory method(s), not
the ProcessingQueue 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
| Method Summary | |
|---|---|
QueueEntry |
addEntry(WTPrincipal princ,
String t_method,
String t_class,
Class[] arg_types,
Object[] args)
Creates a new QueueEntry object corresponding to a processing request. |
void |
addMultiEntry(WTPrincipal princ,
String t_method,
String t_class,
Class[] arg_types,
Collection collection)
Create and commit multiple Queue entires from a Collection. |
boolean |
contains(QueueEntry entry)
Returns whether or not an entry belongs to the queue. |
void |
execEntries()
Execute all queue entries in the 'READY' state, in the increasing order of their 'entryNumbers'. |
QueueEntry |
execEntry(QueueEntry entry)
Executes a the queue entry passed as argument. |
protected void |
initialize(String name)
Supports initialization, following construction of an instance. |
protected void |
initialize(String name,
String host)
Supports initialization, following construction of an instance. |
static ProcessingQueue |
newProcessingQueue(String name)
Constructs a queue given its name. |
static ProcessingQueue |
newProcessingQueue(String name,
String host)
Constructs a queue given its name. |
String |
toString()
Returns a string representaion of the queue. |
| Methods inherited from class wt.fc.WTObject |
|---|
getDisplayIdentifier, getDisplayIdentity, getDisplayType |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static ProcessingQueue newProcessingQueue(String name)
throws WTException
name -
WTException
protected void initialize(String name)
throws WTException
name -
WTException
public QueueEntry addEntry(WTPrincipal princ,
String t_method,
String t_class,
Class[] arg_types,
Object[] args)
throws WTException
princ - t_method - t_class - arg_types - args -
WTException
public QueueEntry execEntry(QueueEntry entry)
throws WTException
entry -
WTException
public boolean contains(QueueEntry entry)
throws WTException
entry -
WTExceptionpublic String toString()
toString in class WtQueue
public void execEntries()
throws WTException
execEntries in class WtQueueWTException
public static ProcessingQueue newProcessingQueue(String name,
String host)
throws WTException
name - host -
WTException
protected void initialize(String name,
String host)
throws WTException
name - host -
WTException
public void addMultiEntry(WTPrincipal princ,
String t_method,
String t_class,
Class[] arg_types,
Collection collection)
throws WTException
princ - t_method - t_class - arg_types - collection -
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||