Package com.redwood.scheduler.api.model
Interface JobGroup
- 
- All Superinterfaces:
- BusinessKeyObject,- ChangeOwner,- HasOwner,- Readable,- Root,- SchedulerEntity,- SchedulerEntityComp
 
 public interface JobGroup extends Root, ChangeOwner, HasOwner, BusinessKeyObject, Readable Common data for a set of similar jobs. This object currently serves two purposes. The first relates to recurrences and submit frames; the JobGroup is used to group all the jobs in the submit frame or recurrence group. This is the case if RecurrencePattern is non-null. The second purpose relates to the specifying where a job should start, via the StartAtValue attribute. This is a large field, so it was put here instead of directly on job.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "JobGroup" 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<JobGroup>TYPEType that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).- 
Fields inherited from interface com.redwood.scheduler.api.model.ChangeOwnerCREATED_BY_SUBJECT_FIELD
 - 
Fields inherited from interface com.redwood.scheduler.api.model.HasOwnerOWNER_SUBJECT_FIELD
 - 
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 DateTimeZonegetChangeOwnerTime()Get the value for ChangeOwnerTime.SubjectgetCreatedBySubject()Get the CreatedBySubject.DateTimeZonegetEndDate()Get the value for EndDate.ProcessServergetForcedProcessServer()Get the ForcedProcessServer.LonggetJobCount()Get the value for JobCount.JobDefinitiongetJobDefinition()Get the JobDefinition.TimeZonegetJobTimeZone()Get the JobTimeZone.LonggetMaxJobs()Get the value for MaxJobs.StringgetMinimumOpenDurationExpression()Get the value for MinimumOpenDurationExpression.DateTimeZonegetNextSubmitBaseTime()Get the value for NextSubmitBaseTime.SubjectgetOwnerSubject()Get the OwnerSubject.LonggetPresubmitCount()Get the value for PresubmitCount.LonggetPriority()Get the value for Priority.QueuegetQueue()Get the Queue.StringgetRecurrencePattern()Get the value for RecurrencePattern.StringgetStartAtValue()Get the value for StartAtValue.JobGroupStatusgetStatus()Get the value for Status.SubmitFramegetSubmitFrame()Get the SubmitFrame.TimeWindowgetTimeWindow()Get the TimeWindow.TimeZonegetTimeWindowTimeZone()Get the TimeWindowTimeZone.booleanisHoldOnSubmit()Get the value for HoldOnSubmit.voidsetForcedProcessServer(ProcessServer newForcedProcessServer)Set the value for ForcedProcessServer.voidsetMinimumOpenDurationExpression(String newMinimumOpenDurationExpression)Set the value for MinimumOpenDurationExpression.voidsetOwner(Subject newOwner)Change the owner of the JobGroup.voidsetStartAtValue(String newStartAtValue)Set the value for StartAtValue.- 
Methods inherited from interface com.redwood.scheduler.api.model.BusinessKeyObjectgetBusinessKey
 - 
Methods inherited from interface com.redwood.scheduler.api.model.RootgetCreationTime, getLastModificationTime, getLastModifierSubject
 - 
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 "JobGroup" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<JobGroup> 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- 
getChangeOwnerTimeDateTimeZone getChangeOwnerTime() Get the value for ChangeOwnerTime. (Timestamp that notes when the owner was changed.) 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.
 
 - 
getEndDateDateTimeZone getEndDate() Get the value for EndDate. (The job group ends at the defined date and time. )- 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.
 
 - 
isHoldOnSubmitboolean isHoldOnSubmit() Get the value for HoldOnSubmit. (Should any submitted Job be held by default.)- 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.
 
 - 
getJobCountLong getJobCount() Get the value for JobCount. (The current number of jobs that have been submitted for this job group. ) 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.
 
 - 
getMaxJobsLong getMaxJobs() Get the value for MaxJobs. (The job group ends if the defined maximum of jobs 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.
 
 - 
getNextSubmitBaseTimeDateTimeZone getNextSubmitBaseTime() Get the value for NextSubmitBaseTime. (The time that will be used as a start time for the calculation of the next RequestedStartTime for a Job with a SubmitFrame or a RecurrencePattern.)- 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.
 
 - 
getPresubmitCountLong getPresubmitCount() Get the value for PresubmitCount. (The number of jobs that is scheduled in advance.) 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.
 
 - 
getPriorityLong getPriority() Get the value for Priority. (The priority of a job. priority 1-100, higher has precedence; This field only has relevance if the resources or queue size is limited.) 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.
 
 - 
getRecurrencePatternString getRecurrencePattern() Get the value for RecurrencePattern. (The recurrence pattern for a job)- 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.
 
 - 
getStartAtValueString getStartAtValue() Get the value for StartAtValue. (Where jobs in this group should start from.)- 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.
 
 - 
getStatusJobGroupStatus getStatus() Get the value for Status. (The current status of the job group) 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.
 
 - 
getMinimumOpenDurationExpressionString getMinimumOpenDurationExpression() Get the value for MinimumOpenDurationExpression. (Default expression for the minimum number of milliseconds that should be available in the TimeWindow of the Job, the Job's Queue or the intersection of both, before this job will be submitted. The value can be a REL expression or a number.)- 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.
 
 - 
setStartAtValuevoid setStartAtValue(String newStartAtValue) Set the value for StartAtValue. (Where jobs in this group should start from.) This value is optional.- Parameters:
- newStartAtValue- the new value for StartAtValue.
- 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.
 
 - 
setMinimumOpenDurationExpressionvoid setMinimumOpenDurationExpression(String newMinimumOpenDurationExpression) Set the value for MinimumOpenDurationExpression. (Default expression for the minimum number of milliseconds that should be available in the TimeWindow of the Job, the Job's Queue or the intersection of both, before this job will be submitted. The value can be a REL expression or a number.) This value is optional.- Parameters:
- newMinimumOpenDurationExpression- the new value for MinimumOpenDurationExpression.
- 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.
 
 - 
setOwnervoid setOwner(Subject newOwner) Change the owner of the JobGroup. Requires 'changeOwner' global privilege.- Specified by:
- setOwnerin interface- ChangeOwner
- Parameters:
- newOwner- New owner for the Job Group. The SubjectType must be User.
 
 - 
getForcedProcessServerProcessServer getForcedProcessServer() Get the ForcedProcessServer.- Returns:
- ForcedProcessServer
- 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.
 
 - 
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.
 
 - 
getQueueQueue getQueue() Get the Queue.- Returns:
- Queue
- 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.
 
 - 
getSubmitFrameSubmitFrame getSubmitFrame() Get the SubmitFrame.- Returns:
- SubmitFrame
- 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.
 
 - 
getTimeWindowTimeWindow getTimeWindow() Get the TimeWindow.- Returns:
- TimeWindow
- 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.
 
 - 
getTimeWindowTimeZoneTimeZone getTimeWindowTimeZone() Get the TimeWindowTimeZone.- Returns:
- TimeWindowTimeZone
- 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.
 
 - 
getJobTimeZoneTimeZone getJobTimeZone() Get the JobTimeZone.- Returns:
- JobTimeZone
- 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.
 
 - 
getOwnerSubjectSubject getOwnerSubject() Get the OwnerSubject.- Specified by:
- getOwnerSubjectin interface- HasOwner
- Returns:
- OwnerSubject
- 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.
 
 - 
getCreatedBySubjectSubject getCreatedBySubject() Get the CreatedBySubject.- Specified by:
- getCreatedBySubjectin interface- ChangeOwner
- Returns:
- CreatedBySubject
- 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.
 
 - 
setForcedProcessServervoid setForcedProcessServer(ProcessServer newForcedProcessServer) Set the value for ForcedProcessServer. This value is optional.- Parameters:
- newForcedProcessServer- is the object to set ForcedProcessServer to. The process server on which the jobs of this job must run, regardless of other possibilities.
 
 
- 
 
-