Package com.redwood.scheduler.api.model
Interface JobRuntimeLimit
- 
- All Superinterfaces:
- BusinessKeyObject,- Detail,- NamedDetailObject,- Readable,- SchedulerEntity,- SchedulerEntityComp
 
 public interface JobRuntimeLimit extends NamedDetailObject, BusinessKeyObject, Readable Runtime limits defined for a job Runtime limits enable you to define 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 "JobRuntimeLimit" 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<JobRuntimeLimit>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.EventDefinitiongetEventDefinition()Get the EventDefinition.JobgetJob()Get the Job.LonggetLimitDuration()Get the value for LimitDuration.DateTimeZonegetLimitTime()Get the value for LimitTime.MaxMinTypegetMaxMinType()Get the value for MaxMinType.TimeZonegetTimeZone()Get the TimeZone.booleanisKillJob()Get the value for KillJob.voidsetAdHocAlertSource(AdHocAlertSource newAdHocAlertSource)Set the value for AdHocAlertSource.voidsetEventDefinition(EventDefinition newEventDefinition)Set the value for EventDefinition.voidsetKillJob(boolean newKillJob)Set the value for KillJob.voidsetLimitDuration(Long newLimitDuration)Set the value for LimitDuration.voidsetLimitTime(DateTimeZone newLimitTime)Set the value for LimitTime.voidsetMaxMinType(MaxMinType newMaxMinType)Set the value for MaxMinType.voidsetTimeZone(TimeZone newTimeZone)Set the value for TimeZone.- 
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 "JobRuntimeLimit" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<JobRuntimeLimit> 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- 
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.
 
 - 
getLimitDurationLong getLimitDuration() Get the value for LimitDuration. (The calculated runtime limit in milliseconds since the job runstart.)- 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.
 
 - 
getLimitTimeDateTimeZone getLimitTime() Get the value for LimitTime. (The calculated timestamp.)- 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.
 
 - 
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.
 
 - 
setLimitDurationvoid setLimitDuration(Long newLimitDuration) Set the value for LimitDuration. (The calculated runtime limit in milliseconds since the job runstart.) This value is optional.- Parameters:
- newLimitDuration- the new value for LimitDuration.
- 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.
 
 - 
setLimitTimevoid setLimitTime(DateTimeZone newLimitTime) Set the value for LimitTime. (The calculated timestamp.) This value is optional.- Parameters:
- newLimitTime- the new value for LimitTime.
- 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.
 
 - 
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.
 
 - 
getTimeZoneTimeZone getTimeZone() Get the TimeZone.- Returns:
- TimeZone
- 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.
 
 - 
getJobJob getJob() Get the Job.- Returns:
- Job
- 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?
 
 - 
setTimeZonevoid setTimeZone(TimeZone newTimeZone) Set the value for TimeZone. This value is optional.- Parameters:
- newTimeZone- is the object to set TimeZone to. The time zone for the limit time.
 
 
- 
 
-