Package wt.queue
Class ScheduleQueue
java.lang.Object
wt.fc._WTObject
wt.fc.WTObject
wt.fc._Item
wt.fc.Item
wt.queue._WtQueue
wt.queue.WtQueue
wt.queue._ScheduleQueue
wt.queue.ScheduleQueue
- All Implemented Interfaces:
Externalizable,Serializable,wt.access._AccessControlled,wt.access._PolicyAccessControlled,wt.access._SecurityLabeled,AccessControlled,wt.access.PolicyAccessControlled,SecurityLabeled,wt.admin._DomainAdministered,DomainAdministered,wt.fc._NetFactor,wt.fc._ObjectMappable,wt.fc._Persistable,wt.fc.adminlock._AdministrativelyLockable,AdministrativelyLockable,NetFactor,ObjectMappable,Persistable,DisplayIdentification
@GenAsPersistable(superClass=WtQueue.class,
versions=-7711177415529140536L,
properties=@GeneratedProperty(name="nextProcessTime",type=java.sql.Timestamp.class))
public class ScheduleQueue
extends wt.queue._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
- See Also:
-
Field Summary
Fields inherited from class wt.queue._ScheduleQueue
EXTERNALIZATION_VERSION_UID, NEXT_PROCESS_TIMEFields inherited from class wt.queue.WtQueue
DELETING, disableQueueStats, disableStats, executingEntry, INIT, properties, QUEUE_ENTRY_NUM, QUEUE_NAME, READY, removeCompletedEntries, removeCompletedKey, STARTED, STARTING, stats, STOPPED, STOPPING, stopProcessing, SUSPENDED, transactionActiveFields inherited from class wt.queue._WtQueue
DELETE_WHEN_EMPTY, ENABLED, EXCEPTION_RETRIES, EXECUTION_HOST, LAST_STATE_SET, MAX_ENTRY_EXECUTION_TIME_THRESHOLD, NAME, QUEUE_LOCK, QUEUE_LOCK_REFERENCE, QUEUE_STATE, RANDOM_ACCESS_QUEUE, REMOVE_FAILED_ENTIRES, STOP_DELETE_REQUEST, STOP_INTERRUPT_WAIT_ENTRY_COMPLETION, STOP_WAIT_ENTRY_COMPLETION, SUSPEND_UNTIL, TOTAL_ENTRIES, TOTAL_NOTIFICATION_THRESHOLD, WAITING_ENTRIES, WAITING_NOTIFICATION_THRESHOLDFields inherited from class wt.fc.Item
SIMPLE_X10_UID, VERSION_40_UID, VERSION_51_UIDFields inherited from class wt.fc._WTObject
CREATE_TIMESTAMP, MODIFY_TIMESTAMPFields inherited from interface wt.fc.adminlock._AdministrativelyLockable
ADMINISTRATIVE_LOCKFields inherited from interface wt.admin._DomainAdministered
DOMAIN_REF, INHERITED_DOMAINFields inherited from interface wt.fc._Persistable
PERSIST_INFOFields inherited from interface wt.access._SecurityLabeled
SECURITY_LABELSFields inherited from interface wt.identity.DisplayIdentification
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPEFields inherited from interface wt.fc.Persistable
IDENTITY, TYPEFields inherited from interface wt.access.SecurityLabeled
SECURITY_LABELS_INTERNAL_VALUE -
Method Summary
Modifier and TypeMethodDescriptionaddEntry(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.voidaddMultiEntry(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.addUniqueEntry(WTPrincipal princ, String t_method, String t_class, Class[] arg_types, Object[] args, Timestamp sched_time) Deprecated.booleancontains(ScheduleQueueEntry entry) Returns whether or not an entry belongs to the queue.protected voidinitialize(String name) Supports initialization, following construction of an instance.static ScheduleQueuenewScheduleQueue(String name) Constructs a queue given its name.static ScheduleQueuenewScheduleQueue(String name, String host) Constructs a queue given its name.toString()Returns a string representaion of the queue.Methods inherited from class wt.queue._ScheduleQueue
getClassInfo, getConceptualClassname, getNextProcessTime, getType, readExternal, readExternal, readVersion, setNextProcessTime, super_readExternal_ScheduleQueue, super_readVersion_ScheduleQueue, super_writeExternal_ScheduleQueue, writeExternal, writeExternalMethods inherited from class wt.queue.WtQueue
getExceptionRetries, getQueueState, getSevereFailedEntryCount, getStopDeleteRequest, getStopWaitQueue, getSuspendDuration, getSuspendUntil, getTotalEntryCount, getWaitingEntryCount, isEnabled, logQueueProblem, removeCompleted, updateMethods inherited from class wt.queue._WtQueue
getExecutionHost, getLastStateSet, getMaxEntryExecutionTimeThreshold, getName, getQueueLock, getQueueLockReference, getTotalEntries, getTotalNotificationThreshold, getWaitingEntries, getWaitingNotificationThreshold, isDeleteWhenEmpty, isRandomAccessQueue, isRemoveFailedEntires, readVersion, setDeleteWhenEmpty, setEnabled, setExceptionRetries, setExecutionHost, setLastStateSet, setMaxEntryExecutionTimeThreshold, setQueueLock, setQueueLockReference, setRandomAccessQueue, setRemoveFailedEntires, setSuspendDuration, setSuspendUntil, setTotalEntries, setTotalNotificationThreshold, setWaitingEntries, setWaitingNotificationThreshold, super_readExternal_WtQueue, super_readVersion_WtQueue, super_writeExternal_WtQueueMethods inherited from class wt.fc.Item
initializeMethods inherited from class wt.fc._Item
getAdministrativeLock, getDomainRef, getSecurityLabels, isInheritedDomain, readVersion, setAdministrativeLock, setDomainRef, setInheritedDomain, setSecurityLabels, super_readExternal_Item, super_readVersion_Item, super_writeExternal_ItemMethods inherited from class wt.fc.WTObject
checkAttributes, duplicate, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getIdentityMethods inherited from class wt.fc._WTObject
equals, getCreateTimestamp, getModifyTimestamp, getPersistInfo, hashCode, readVersion, setPersistInfo
-
Method Details
-
newScheduleQueue
Constructs a queue given its name.
Supported API: true- Parameters:
name-- Returns:
- ScheduleQueue
- Throws:
WTException
-
initialize
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.
Supported API: true- Parameters:
name-- Throws:
WTException
-
addUniqueEntry
@Deprecated public ScheduleQueueEntry addUniqueEntry(WTPrincipal princ, String t_method, String t_class, Class[] arg_types, Object[] args, Timestamp sched_time) throws WTException Deprecated.Add a Queue entry with the given method invalid input: '&' class signature if one does not exist. Note this method doesn't tell us anything about whether more than one entry exists with the specified method invalid input: '&' class signature
Supported API: true- Parameters:
princ-t_method-t_class-arg_types-args-sched_time-- Returns:
- Throws:
WTException
-
addEntry
public ScheduleQueueEntry addEntry(WTPrincipal princ, String t_method, String t_class, Class[] arg_types, Object[] args, Timestamp sched_time) throws WTException Creates a new QueueEntry object corresponding to a processing request.
Supported API: true- Parameters:
princ-t_method-t_class-arg_types-args-sched_time-- Returns:
- ScheduleQueueEntry
- Throws:
WTException
-
contains
Returns whether or not an entry belongs to the queue.
Supported API: true- Parameters:
entry-- Returns:
- boolean
- Throws:
WTException
-
toString
Returns a string representaion of the queue.
Supported API: true -
newScheduleQueue
Constructs a queue given its name.
Supported API: true- Parameters:
name-host-- Returns:
- ScheduleQueue
- Throws:
WTException
-
addMultiEntry
public void addMultiEntry(WTPrincipal princ, String t_method, String t_class, Class[] arg_types, Collection collection, Timestamp[] sched_time) throws WTException Create and commit multiple Queue entires from a Collection. All entries are batch commited. The arg_types is used to define the type of arguments and number of entries to be created from the Collection. The collection itself will contain one or more sets of these arguments. This method will iterate through the collection creating multiple queue entires each containing the number and type of arguments specified in arg_types. If the number of values in the collection is not evenly divisiable by the number of types (in arg_types) a WTException will be thrown. An array of Timestamp(s) is provides such that each entry may be scheduled at a different time
Supported API: true- Parameters:
princ-t_method-t_class-arg_types-collection-sched_time-- Throws:
WTException
-