Package com.redwood.scheduler.api.model
Interface QueueProvider
- 
- All Superinterfaces:
- Association,- BusinessKeyObject,- Readable,- SchedulerEntity,- SchedulerEntityComp
 
 public interface QueueProvider extends Association, BusinessKeyObject, Readable Process Servers that serve a queue. Jobs assigned to a queue execute on on one of the process servers associated with the queue. Which process server is used depends on the load on the process servers, and is decided at runtime. The association between queue and process server has static limits (like ExecutionSize).
- 
- 
Field SummaryFields Modifier and Type Field Description static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "QueueProvider" 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<QueueProvider>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 LonggetExecutionSize()Get the value for ExecutionSize.LonggetHoldLevel()Get the value for HoldLevel.DateTimeZonegetNextWindowChange()Get the value for NextWindowChange.ProcessServergetProcessServer()Get the ProcessServer.QueuegetQueue()Get the Queue.TimeZonegetQueueProviderTimeZone()Get the QueueProviderTimeZone.QueueStatusgetStatus()Get the value for Status.TimeWindowgetTimeWindow()Get the TimeWindow.voidhold()Hold the QueueProvider, such that further Jobs are not allocated from this Queue to this ProcessServer.booleanisHeld()Get the value for Held.booleanisInclusive()Get the value for Inclusive.booleanisOpen()Get the value for Open.voidrelease()Release the QueueProvider, such that further Jobs can be allocated to this ProcessServer from this Queue.voidsetExecutionSize(Long newExecutionSize)Set the value for ExecutionSize.voidsetHeld(boolean newHeld)Set the value for Held.voidsetHoldLevel(Long newHoldLevel)Set the value for HoldLevel.voidsetInclusive(boolean newInclusive)Set the value for Inclusive.voidsetQueueProviderTimeZone(TimeZone newQueueProviderTimeZone)Set the value for QueueProviderTimeZone.voidsetTimeWindow(TimeWindow newTimeWindow)Set the value for TimeWindow.- 
Methods inherited from interface com.redwood.scheduler.api.model.BusinessKeyObjectgetBusinessKey
 - 
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 "QueueProvider" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<QueueProvider> 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- 
getExecutionSizeLong getExecutionSize() Get the value for ExecutionSize. (ExecutionSize is the maximum number of concurrent executing jobs allowed in the queue. IfIncludeWaitingJobsistruethis includes jobs in Executing and Idle JobStatusStates. IfIncludeWaitingJobsisfalsethen this only includes the jobs in the Executing JobStatusState.)- 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.
 
 - 
isHeldboolean isHeld() Get the value for Held. (Is the queue provider on hold?)- 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.
 
 - 
getHoldLevelLong getHoldLevel() Get the value for HoldLevel. (Jobs having a priority below the specified number will not be started on this process server for this queue)- 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.
 
 - 
isInclusiveboolean isInclusive() Get the value for Inclusive. (Does the execution size include waiting jobs?)- 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.
 
 - 
getNextWindowChangeDateTimeZone getNextWindowChange() Get the value for NextWindowChange. (The next date on which the time window will open or close the queue again)- 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.
 
 - 
isOpenboolean isOpen() Get the value for Open. (Is the queue provider open?)- 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.
 
 - 
getStatusQueueStatus getStatus() Get the value for Status. (Return the status of the queue provider) 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.
 
 - 
setExecutionSizevoid setExecutionSize(Long newExecutionSize) Set the value for ExecutionSize. (ExecutionSize is the maximum number of concurrent executing jobs allowed in the queue. IfIncludeWaitingJobsistruethis includes jobs in Executing and Idle JobStatusStates. IfIncludeWaitingJobsisfalsethen this only includes the jobs in the Executing JobStatusState.) This value is optional.- Parameters:
- newExecutionSize- the new value for ExecutionSize.
- 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.
 
 - 
setHeldvoid setHeld(boolean newHeld) Set the value for Held. (Is the queue provider on hold?)- Parameters:
- newHeld- the new value for Held.
- 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.
 
 - 
setHoldLevelvoid setHoldLevel(Long newHoldLevel) Set the value for HoldLevel. (Jobs having a priority below the specified number will not be started on this process server for this queue) This value is optional.- Parameters:
- newHoldLevel- the new value for HoldLevel.
- 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.
 
 - 
setInclusivevoid setInclusive(boolean newInclusive) Set the value for Inclusive. (Does the execution size include waiting jobs?)- Parameters:
- newInclusive- the new value for Inclusive.
- 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.
 
 - 
holdvoid hold() Hold the QueueProvider, such that further Jobs are not allocated from this Queue to this ProcessServer.
 - 
releasevoid release() Release the QueueProvider, such that further Jobs can be allocated to this ProcessServer from this Queue.
 - 
getProcessServerProcessServer getProcessServer() Get the ProcessServer.- Returns:
- ProcessServer
- 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.
 
 - 
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.
 
 - 
getQueueProviderTimeZoneTimeZone getQueueProviderTimeZone() Get the QueueProviderTimeZone.- Returns:
- QueueProviderTimeZone
- 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.
 
 - 
setTimeWindowvoid setTimeWindow(TimeWindow newTimeWindow) Set the value for TimeWindow. This value is optional.- Parameters:
- newTimeWindow- is the object to set TimeWindow to. The time window when this queue is open for this process server.
 
 - 
setQueueProviderTimeZonevoid setQueueProviderTimeZone(TimeZone newQueueProviderTimeZone) Set the value for QueueProviderTimeZone. This value is optional.- Parameters:
- newQueueProviderTimeZone- is the object to set QueueProviderTimeZone to. The timezone to use for QueueProvider TimeWindow calculations.
 
 
- 
 
-