Package com.redwood.scheduler.api.model
Interface JobDefinitionRuntimeLimit
- 
- All Superinterfaces:
- BusinessKeyObject,- Detail,- NamedDetailObject,- Readable,- SchedulerEntity,- SchedulerEntityComp
 
 public interface JobDefinitionRuntimeLimit extends NamedDetailObject, BusinessKeyObject, Readable Runtime limits defined for a job definition Runtime limits enable you to define generic job definitions that have different min and max runtimes according to the values in the RuntimeLimits.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "JobDefinitionRuntimeLimit" 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<JobDefinitionRuntimeLimit>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 AdHocAlertSourcegetAdHocAlertSource()Get the AdHocAlertSource.CalculatedRuntimeLimitTypegetCalculatedLimitType()Get the value for CalculatedLimitType.ERTPlusOrMinusTypegetERTPlusOrMinusType()Get the value for ERTPlusOrMinusType.EventDefinitiongetEventDefinition()Get the EventDefinition.JobDefinitiongetJobDefinition()Get the JobDefinition.StringgetLimitExpression()Get the value for LimitExpression.RuntimeLimitTypegetLimitType()Get the value for LimitType.LonggetLimitValue()Get the value for LimitValue.MaxMinTypegetMaxMinType()Get the value for MaxMinType.booleanisKillJob()Get the value for KillJob.voidsetAdHocAlertSource(AdHocAlertSource newAdHocAlertSource)Set the value for AdHocAlertSource.voidsetCalculatedLimitType(CalculatedRuntimeLimitType newCalculatedLimitType)Set the value for CalculatedLimitType.voidsetERTPlusOrMinusType(ERTPlusOrMinusType newERTPlusOrMinusType)Set the value for ERTPlusOrMinusType.voidsetEventDefinition(EventDefinition newEventDefinition)Set the value for EventDefinition.voidsetKillJob(boolean newKillJob)Set the value for KillJob.voidsetLimitExpression(String newLimitExpression)Set the value for LimitExpression.voidsetLimitType(RuntimeLimitType newLimitType)Set the value for LimitType.voidsetLimitValue(Long newLimitValue)Set the value for LimitValue.voidsetMaxMinType(MaxMinType newMaxMinType)Set the value for MaxMinType.- 
Methods inherited from interface com.redwood.scheduler.api.model.BusinessKeyObjectgetBusinessKey
 - 
Methods inherited from interface com.redwood.scheduler.api.model.NamedDetailObjectgetComment, getDescription, getName, getSearchName, setComment, setDescription, setName
 - 
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 "JobDefinitionRuntimeLimit" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<JobDefinitionRuntimeLimit> 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- 
getERTPlusOrMinusTypeERTPlusOrMinusType getERTPlusOrMinusType() Get the value for ERTPlusOrMinusType. (Add or subtract the offset?) 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.
 
 - 
getMaxMinTypeMaxMinType getMaxMinType() Get the value for MaxMinType. (Maximum or minimum runtime limit?) 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.
 
 - 
getLimitValueLong getLimitValue() Get the value for LimitValue. (Depending on the LimitType and the CalculatedLimitType. For LimitType Fixed, it is the fixed runtime limit for the job in millis. For the LimitType Offset, it is the offset to the average runtime in millis. For LimitType Calculated it is the offset to the average runtime in number of percentages of the average runtime (when CalculatedLimitType = Percent) or the number of standard deviations (when CalculatedLimitType = StdDev). )- 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.
 
 - 
getLimitExpressionString getLimitExpression() Get the value for LimitExpression. (The REL Expression, which should evaluate to a the runtime limit in millis (duration), or a fixed limit as DateTimeZone. )- 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.
 
 - 
getLimitTypeRuntimeLimitType getLimitType() Get the value for LimitType. (Indicates the type of the limit value Fixed, Offset, Calculated or Expression.) 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.
 
 - 
getCalculatedLimitTypeCalculatedRuntimeLimitType getCalculatedLimitType() Get the value for CalculatedLimitType. (Indicates the type of the calculated limit from the ERT: (P)ercent, (S)tdDev.) 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.
 
 - 
isKillJobboolean isKillJob() Get the value for KillJob. (Kill the job if the maximum limit or set the job to error if the minimum limit 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.
 
 - 
setERTPlusOrMinusTypevoid setERTPlusOrMinusType(ERTPlusOrMinusType newERTPlusOrMinusType) Set the value for ERTPlusOrMinusType. (Add or subtract the offset?) This value is mandatory.- Parameters:
- newERTPlusOrMinusType- the new value for ERTPlusOrMinusType. 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.
 
 - 
setMaxMinTypevoid setMaxMinType(MaxMinType newMaxMinType) Set the value for MaxMinType. (Maximum or minimum runtime limit?) This value is mandatory.- Parameters:
- newMaxMinType- the new value for MaxMinType. 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.
 
 - 
setLimitValuevoid setLimitValue(Long newLimitValue) Set the value for LimitValue. (Depending on the LimitType and the CalculatedLimitType. For LimitType Fixed, it is the fixed runtime limit for the job in millis. For the LimitType Offset, it is the offset to the average runtime in millis. For LimitType Calculated it is the offset to the average runtime in number of percentages of the average runtime (when CalculatedLimitType = Percent) or the number of standard deviations (when CalculatedLimitType = StdDev). ) This value is optional.- Parameters:
- newLimitValue- the new value for LimitValue.
- 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.
 
 - 
setLimitExpressionvoid setLimitExpression(String newLimitExpression) Set the value for LimitExpression. (The REL Expression, which should evaluate to a the runtime limit in millis (duration), or a fixed limit as DateTimeZone. ) This value is optional.- Parameters:
- newLimitExpression- the new value for LimitExpression.
- 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.
 
 - 
setLimitTypevoid setLimitType(RuntimeLimitType newLimitType) Set the value for LimitType. (Indicates the type of the limit value Fixed, Offset, Calculated or Expression.) This value is mandatory.- Parameters:
- newLimitType- the new value for LimitType. 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.
 
 - 
setCalculatedLimitTypevoid setCalculatedLimitType(CalculatedRuntimeLimitType newCalculatedLimitType) Set the value for CalculatedLimitType. (Indicates the type of the calculated limit from the ERT: (P)ercent, (S)tdDev.) This value is mandatory.- Parameters:
- newCalculatedLimitType- the new value for CalculatedLimitType. 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.
 
 - 
setKillJobvoid setKillJob(boolean newKillJob) Set the value for KillJob. (Kill the job if the maximum limit or set the job to error if the minimum limit is reached?)- Parameters:
- newKillJob- the new value for KillJob.
- 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.
 
 - 
getEventDefinitionEventDefinition getEventDefinition() Get the EventDefinition.- Returns:
- EventDefinition
- 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.
 
 - 
getAdHocAlertSourceAdHocAlertSource getAdHocAlertSource() Get the AdHocAlertSource.- Returns:
- AdHocAlertSource
- 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.
 
 - 
setEventDefinitionvoid setEventDefinition(EventDefinition newEventDefinition) Set the value for EventDefinition. This value is optional.- Parameters:
- newEventDefinition- is the object to set EventDefinition to. Which EventDefinition to be raised if the runtime limit is reached?
 
 - 
setAdHocAlertSourcevoid setAdHocAlertSource(AdHocAlertSource newAdHocAlertSource) Set the value for AdHocAlertSource. This value is optional.- Parameters:
- newAdHocAlertSource- is the object to set AdHocAlertSource to. Which AlertSource to be raised if the runtime limit is reached?
 
 
- 
 
-