Package wt.queue
Class QueueEntry
java.lang.Object
wt.fc._WTObject
wt.fc.WTObject
wt.fc._Item
wt.fc.Item
wt.queue._WtQueueEntry
wt.queue.WtQueueEntry
wt.queue._QueueEntry
wt.queue.QueueEntry
- 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,wt.locks._Lockable,Lockable
@GenAsPersistable(superClass=WtQueueEntry.class,
interfaces=Lockable.class,
versions=1130870142956337703L,
properties=@GeneratedProperty(name="args",type=java.io.Serializable.class,accessors=@PropertyAccessors(getAccess=PRIVATE),columnProperties=@ColumnProperties(columnType=INLINE_BLOB,oracleTableSize=HUGE)),
tableProperties=@TableProperties(compositeIndex1="queueRef.key.id+statusInfo.code+entryNumber",oracleTableSize=LARGE))
public class QueueEntry
extends wt.queue._QueueEntry
The
QueueEntry represents an individual processing request.
Each queue entry is associated to a named processing queue and can be
in one of the following states: READY, SUSPENDED, EXECUTING, COMPLETED
and FAILED.
Use the newQueueEntry static factory method(s), not the
QueueEntry 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:
-
Method Summary
Modifier and TypeMethodDescription
Supported API: trueReturns the principal that owns the entry's execution.getQueue()Returns the queue to which the entry belongs.protected voidinitialize(ProcessingQueue queue) Supports initialization, following construction of an instance.static QueueEntrynewQueueEntry(ProcessingQueue queue) Constructs a new entry representing a processing queue request.voidSets the status code of the entry to passed as argument.toString()Returns a string representation of the entry.Methods inherited from class wt.queue.WtQueueEntry
doExit, isStopDeletePendingMethods inherited from class wt.fc.WTObject
getDisplayIdentifier, getDisplayIdentity, getDisplayTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface wt.fc.Persistable
checkAttributes
-
Method Details
-
newQueueEntry
Constructs a new entry representing a processing queue request.
Supported API: true- Parameters:
queue-- Returns:
- QueueEntry
- Throws:
WTException
-
initialize
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.
Supported API: true- Parameters:
queue-- Throws:
WTException
-
toString
Returns a string representation of the entry.
Supported API: true- Overrides:
toStringin classWtQueueEntry- Returns:
- String
-
getPrincipal
Returns the principal that owns the entry's execution. The access control for execution will be enforced relative to this principal.
Supported API: true- Overrides:
getPrincipalin classWtQueueEntry- Returns:
- WTPrincipal
- Throws:
WTException
-
setStatus
Sets the status code of the entry to passed as argument. The only statuses allowed are READY and SUSPENDED. The message is set to "Status set by operator." (it is defined in the resource bundle of the package.
Supported API: true- Overrides:
setStatusin classWtQueueEntry- Parameters:
status_code-- Throws:
WTException
-
getQueue
Returns the queue to which the entry belongs.
Supported API: true- Returns:
- ProcessingQueue
- Throws:
WTException
-
getDisplayString
Supported API: true- Overrides:
getDisplayStringin classWtQueueEntry- Returns:
- String
-