Package com.redwood.scheduler.api.model
Interface FinalStatusHandler
- 
- All Superinterfaces:
- Detail,- Readable,- SchedulerEntity,- SchedulerEntityComp
 
 public interface FinalStatusHandler extends Detail, Readable Describes what to do when a Job reaches a final state
- 
- 
Field SummaryFields Modifier and Type Field Description static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "FinalStatusHandler" objects.static StringSEC_RANK_ALLThis rank is made of the following privileges:static StringSEC_RANK_NONEThis rank has no privileges assigned to it.static QueryObjectType<FinalStatusHandler>TYPEType that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).- 
Fields inherited from interface com.redwood.scheduler.api.model.SchedulerEntityACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description FinalStatusActiongetAction()Get the value for Action.JobDefinitiongetJobDefinition()Get the JobDefinition.StringgetMessageText()Get the value for MessageText.LonggetRestartDelayAmount()Get the value for RestartDelayAmount.TimeUnitgetRestartDelayUnits()Get the value for RestartDelayUnits.JobStatusgetStatus()Get the value for Status.voidsetAction(FinalStatusAction newAction)Set the value for Action.voidsetMessageText(String newMessageText)Set the value for MessageText.voidsetRestartDelayAmount(Long newRestartDelayAmount)Set the value for RestartDelayAmount.voidsetRestartDelayUnits(TimeUnit newRestartDelayUnits)Set the value for RestartDelayUnits.voidsetStatus(JobStatus newStatus)Set the value for Status.- 
Methods inherited from interface com.redwood.scheduler.api.model.SchedulerEntitycanPerform, createSubjectObjectPrivilegeGrant, deleteObject, getAuditTrail, getAuditTrailSize, getBehavior, getEffectiveBehavior, getErrorNameEN, getErrorNameKey, getLLPVersion, getLOV, getLOVSupport, getObjectType, getParentSchedulerEntities, getRuntime, getSubjectObjectPrivilegeGrantBySubject, getSubjectObjectPrivilegeGrants, getUniqueId, getUrl, getUrl, isCreated, isDeletable, isDeleted, isModifiable, isModified, isSelectVersioned, processRelatedObjects, processRelatedObjects, processRelatedObjects, refreshObject, resetObject, resetObject, resetValuesToDefault, selectForRead
 
- 
 
- 
- 
- 
Field Detail- 
OBJECT_TYPEstatic final String OBJECT_TYPE String that will be returned fromSchedulerEntity.getObjectType()for "FinalStatusHandler" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<FinalStatusHandler> TYPE Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
 - 
SEC_RANK_NONEstatic final String SEC_RANK_NONE This rank has no privileges assigned to it.- See Also:
- Constant Field Values
 
 - 
SEC_RANK_ALLstatic final String SEC_RANK_ALL This rank is made of the following privileges:- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getStatusJobStatus getStatus() Get the value for Status. () This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getActionFinalStatusAction getAction() Get the value for Action. (What to do on this final state) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getMessageTextString getMessageText() Get the value for MessageText. (an operator message to send when this status is reached)- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getRestartDelayAmountLong getRestartDelayAmount() Get the value for RestartDelayAmount. (number of 'restart delay time units' after the finish time of the original job to submit the restart at) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getRestartDelayUnitsTimeUnit getRestartDelayUnits() Get the value for RestartDelayUnits. (time units for 'restart delay amount' - seconds, minutes, hours, days. May not be null, defaults to minutes) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setStatusvoid setStatus(JobStatus newStatus) Set the value for Status. () This value is mandatory.- Parameters:
- newStatus- the new value for Status. If this is- null, then the object cannot be persisted.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setActionvoid setAction(FinalStatusAction newAction) Set the value for Action. (What to do on this final state) This value is mandatory.- Parameters:
- newAction- the new value for Action. If this is- null, then the object cannot be persisted.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setMessageTextvoid setMessageText(String newMessageText) Set the value for MessageText. (an operator message to send when this status is reached) This value is optional.- Parameters:
- newMessageText- the new value for MessageText.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setRestartDelayAmountvoid setRestartDelayAmount(Long newRestartDelayAmount) Set the value for RestartDelayAmount. (number of 'restart delay time units' after the finish time of the original job to submit the restart at) This value is mandatory.- Parameters:
- newRestartDelayAmount- the new value for RestartDelayAmount. If this is- null, then the object cannot be persisted.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setRestartDelayUnitsvoid setRestartDelayUnits(TimeUnit newRestartDelayUnits) Set the value for RestartDelayUnits. (time units for 'restart delay amount' - seconds, minutes, hours, days. May not be null, defaults to minutes) This value is mandatory.- Parameters:
- newRestartDelayUnits- the new value for RestartDelayUnits. If this is- null, then the object cannot be persisted.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getJobDefinitionJobDefinition getJobDefinition() Get the JobDefinition.- Returns:
- JobDefinition
- Throws:
- com.redwood.scheduler.api.exception.ObjectDeletedException- If this method is called when the object has been marked for deletion.
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- If this method is called when the object has been removed from it's session.
 
 
- 
 
-