Package wt.queue
Class WtQueueEntry
java.lang.Object
wt.fc._WTObject
wt.fc.WTObject
wt.fc._Item
wt.fc.Item
wt.queue._WtQueueEntry
wt.queue.WtQueueEntry
- 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
- Direct Known Subclasses:
wt.queue._QueueEntry,wt.queue._ScheduleQueueEntry
@GenAsPersistable(superClass=Item.class,versions=-6719972175812851039L,properties={@GeneratedProperty(name="queueRef",type=ObjectReference.class,javaDoc="Reference to the processing queue to which the entry belongs.",accessors=@PropertyAccessors(setExceptions={})),@GeneratedProperty(name="targetMethod",type=java.lang.String.class,javaDoc="Name of the method to be executed.",accessors=@PropertyAccessors(setExceptions={}),constraints=@PropertyConstraints(upperLimit=60)),@GeneratedProperty(name="targetClass",type=java.lang.String.class,javaDoc="Fully qualified name of the class whose\'s method is to be executed.",accessors=@PropertyAccessors(setExceptions={})),@GeneratedProperty(name="startExec",type=java.sql.Timestamp.class,javaDoc="Time that execution started.",accessors=@PropertyAccessors(setExceptions={})),@GeneratedProperty(name="endExec",type=java.sql.Timestamp.class,javaDoc="Time execution finished (COMPLETED or FAILED).",accessors=@PropertyAccessors(setExceptions={})),@GeneratedProperty(name="entryOwner",type=WTPrincipalReference.class,accessors=@PropertyAccessors(setExceptions={})),@GeneratedProperty(name="statusInfo",type=StatusInfo.class,accessors=@PropertyAccessors(setExceptions={})),@GeneratedProperty(name="entryNumber",type=java.lang.Long.class,accessors=@PropertyAccessors(setExceptions={}),constraints=@PropertyConstraints(required=true),columnProperties=@ColumnProperties(index=true,columnType=SEQUENCE)),@GeneratedProperty(name="failureCount",type=java.lang.Long.class,accessors=@PropertyAccessors(setExceptions={}))})
public abstract class WtQueueEntry
extends wt.queue._WtQueueEntry
Supported API: true
Extendable: false
- See Also:
-
Field Summary
Fields inherited from class wt.queue._WtQueueEntry
END_EXEC, ENTRY_NUMBER, ENTRY_OWNER, EXTERNALIZATION_VERSION_UID, FAILURE_COUNT, QUEUE_REF, START_EXEC, STATUS_INFO, TARGET_CLASS, TARGET_METHODFields 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 TypeMethodDescriptionstatic booleandoExit()Returns a boolean indicating whether or not the current entry, if executing, should return.execute()Executes the entry's processing request.
Supported API: trueReturns the principal that owns the entry's execution.static booleanReturns a boolean indicating whether there is a pending stop request that is associated with a delete entries request This method should be by used queue entries to check and see if there is an outstanding stop/delete/entries request pending.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
getClassInfo, getConceptualClassname, getEndExec, getEntryNumber, getEntryOwner, getFailureCount, getQueueRef, getStartExec, getStatusInfo, getTargetClass, getTargetMethod, getType, readExternal, readExternal, readVersion, setEndExec, setEntryNumber, setEntryOwner, setFailureCount, setQueueRef, setStartExec, setStatusInfo, setTargetClass, setTargetMethod, super_readExternal_WtQueueEntry, super_readVersion_WtQueueEntry, super_writeExternal_WtQueueEntry, writeExternal, writeExternalMethods 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
-
execute
Executes the entry's processing request. Assumes the identity of the entry's principal for the execution.Note that subclasses should call super.execute() prior to executing their own logic.
Supported API: true- Returns:
- StatusInfo
- Throws:
WTException
-
toString
Returns a string representation of the entry.
Supported API: true -
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- 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- Parameters:
status_code-- Throws:
WTException
-
getDisplayString
Supported API: true- Returns:
- String
-
doExit
public static boolean doExit()Returns a boolean indicating whether or not the current entry, if executing, should return. This method should be by used queue entries to check and see if there is an outstanding stop request pending. This will allow the entry to abort execution before the thread is interrupted
Supported API: true- Returns:
- boolean
-
isStopDeletePending
public static boolean isStopDeletePending()Returns a boolean indicating whether there is a pending stop request that is associated with a delete entries request This method should be by used queue entries to check and see if there is an outstanding stop/delete/entries request pending. This will allow the entry to abort execution before the thread is interrupted
Supported API: true- Returns:
- boolean
-