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 Summary
Fields Modifier and Type Field Description static String
OBJECT_TYPE
String that will be returned fromSchedulerEntity.getObjectType()
for "JobRuntimeLimit" objects.static String
SEC_RANK_ALL
This rank is made of the following privileges:static String
SEC_RANK_NONE
This rank has no privileges assigned to it.static QueryObjectType<JobRuntimeLimit>
TYPE
Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...)
.static com.redwood.scheduler.infrastructure.logging.Versions
VERSION_JOBRUNTIMELIMIT
-
Fields inherited from interface com.redwood.scheduler.api.model.BusinessKeyObject
COPYRIGHT_MESSAGE_BKO, ID_BKO
-
Fields inherited from interface com.redwood.scheduler.api.model.Detail
VERSION_DETAIL
-
Fields inherited from interface com.redwood.scheduler.api.model.NamedDetailObject
VERSION_NAMEDDETAILOBJECT
-
Fields inherited from interface com.redwood.scheduler.api.model.Readable
COPYRIGHT_MESSAGE_E, ID_E
-
Fields inherited from interface com.redwood.scheduler.api.model.SchedulerEntity
ACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM, VERSION_SCHEDULERENTITY
-
Fields inherited from interface com.redwood.scheduler.api.model.compatibility_14.SchedulerEntityComp
VERSION_SCHEDULERENTITYCOMP
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AdHocAlertSource
getAdHocAlertSource()
Get the AdHocAlertSource.EventDefinition
getEventDefinition()
Get the EventDefinition.Job
getJob()
Get the Job.Long
getLimitDuration()
Get the value for LimitDuration.DateTimeZone
getLimitTime()
Get the value for LimitTime.MaxMinType
getMaxMinType()
Get the value for MaxMinType.TimeZone
getTimeZone()
Get the TimeZone.boolean
isKillJob()
Get the value for KillJob.void
setAdHocAlertSource(AdHocAlertSource newAdHocAlertSource)
Set the value for AdHocAlertSource.void
setEventDefinition(EventDefinition newEventDefinition)
Set the value for EventDefinition.void
setKillJob(boolean newKillJob)
Set the value for KillJob.void
setLimitDuration(Long newLimitDuration)
Set the value for LimitDuration.void
setLimitTime(DateTimeZone newLimitTime)
Set the value for LimitTime.void
setMaxMinType(MaxMinType newMaxMinType)
Set the value for MaxMinType.void
setTimeZone(TimeZone newTimeZone)
Set the value for TimeZone.-
Methods inherited from interface com.redwood.scheduler.api.model.BusinessKeyObject
getBusinessKey
-
Methods inherited from interface com.redwood.scheduler.api.model.NamedDetailObject
getComment, getDescription, getName, getSearchName, setComment, setDescription, setName
-
Methods inherited from interface com.redwood.scheduler.api.model.SchedulerEntity
canPerform, 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
-
VERSION_JOBRUNTIMELIMIT
static final com.redwood.scheduler.infrastructure.logging.Versions VERSION_JOBRUNTIMELIMIT
-
OBJECT_TYPE
static final String OBJECT_TYPE
String that will be returned fromSchedulerEntity.getObjectType()
for "JobRuntimeLimit" objects.- See Also:
- Constant Field Values
-
TYPE
static final QueryObjectType<JobRuntimeLimit> TYPE
Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...)
.
-
SEC_RANK_NONE
static final String SEC_RANK_NONE
This rank has no privileges assigned to it.- See Also:
- Constant Field Values
-
SEC_RANK_ALL
static final String SEC_RANK_ALL
This rank is made of the following privileges:- See Also:
- Constant Field Values
-
-
Method Detail
-
getMaxMinType
MaxMinType getMaxMinType()
Get the value for MaxMinType. (Maximum or minimum runtime limit?) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getLimitDuration
Long getLimitDuration()
Get the value for LimitDuration. (The calculated runtime limit in milliseconds since the job runstart.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getLimitTime
DateTimeZone getLimitTime()
Get the value for LimitTime. (The calculated timestamp.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
isKillJob
boolean 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:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setMaxMinType
void 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 isnull
, then the object cannot be persisted.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setLimitDuration
void 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:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setLimitTime
void setLimitTime(DateTimeZone newLimitTime)
Set the value for LimitTime. (The calculated timestamp.) This value is optional.- Parameters:
newLimitTime
- the new value for LimitTime.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setKillJob
void 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:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getEventDefinition
EventDefinition getEventDefinition()
Get the EventDefinition.- Returns:
- EventDefinition
- Throws:
ObjectDeletedException
- If this method is called when the object has been marked for deletion.ObjectNotAttachedToSessionException
- If this method is called when the object has been removed from it's session.
-
getAdHocAlertSource
AdHocAlertSource getAdHocAlertSource()
Get the AdHocAlertSource.- Returns:
- AdHocAlertSource
- Throws:
ObjectDeletedException
- If this method is called when the object has been marked for deletion.ObjectNotAttachedToSessionException
- If this method is called when the object has been removed from it's session.
-
getTimeZone
TimeZone getTimeZone()
Get the TimeZone.- Returns:
- TimeZone
- Throws:
ObjectDeletedException
- If this method is called when the object has been marked for deletion.ObjectNotAttachedToSessionException
- If this method is called when the object has been removed from it's session.
-
getJob
Job getJob()
Get the Job.- Returns:
- Job
- Throws:
ObjectDeletedException
- If this method is called when the object has been marked for deletion.ObjectNotAttachedToSessionException
- If this method is called when the object has been removed from it's session.
-
setEventDefinition
void 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?
-
setAdHocAlertSource
void 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?
-
setTimeZone
void 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.
-
-