|
|||||||||
| 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.ScheduleQueue
public class ScheduleQueue
Use the newScheduleQueue static factory method(s), not the
ScheduleQueue 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 | |
|---|---|
ScheduleQueueEntry |
addEntry(WTPrincipal princ,
String t_method,
String t_class,
Class[] arg_types,
Object[] args,
Timestamp sched_time)
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,
Timestamp[] sched_time)
Create and commit multiple Queue entires from a Collection. |
boolean |
contains(ScheduleQueueEntry 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'. |
ScheduleQueueEntry |
execEntry(ScheduleQueueEntry 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 ScheduleQueue |
newScheduleQueue(String name)
Constructs a queue given its name. |
static ScheduleQueue |
newScheduleQueue(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 ScheduleQueue newScheduleQueue(String name)
throws WTException
name -
WTException
protected void initialize(String name)
throws WTException
name -
WTException
public ScheduleQueueEntry addEntry(WTPrincipal princ,
String t_method,
String t_class,
Class[] arg_types,
Object[] args,
Timestamp sched_time)
throws WTException
princ - t_method - t_class - arg_types - args - sched_time -
WTException
public ScheduleQueueEntry execEntry(ScheduleQueueEntry entry)
throws WTException
entry -
WTException
public boolean contains(ScheduleQueueEntry entry)
throws WTException
entry -
WTException
public void execEntries()
throws WTException
execEntries in class WtQueueWTExceptionpublic String toString()
toString in class WtQueue
public static ScheduleQueue newScheduleQueue(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,
Timestamp[] sched_time)
throws WTException
princ - t_method - t_class - arg_types - collection - sched_time -
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||