Package com.redwood.scheduler.api.model
Interface Statistics
-
- All Superinterfaces:
Detail,Readable,SchedulerEntity,SchedulerEntityComp
public interface Statistics extends Detail, Readable
Statistics object for process-related entities.
-
-
Field Summary
Fields Modifier and Type Field Description static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "Statistics" 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<Statistics>TYPEType that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).-
Fields inherited from interface com.redwood.scheduler.api.model.SchedulerEntity
ACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LonggetAverageCallStartDelay()Get the value for AverageCallStartDelay.LonggetAverageLogFileSize()Get the value for AverageLogFileSize.LonggetAverageOutFileSize()Get the value for AverageOutFileSize.LonggetAverageRunTime()Get the value for AverageRunTime.LonggetCompleted()Get the value for Completed.DateTimeZonegetCreationTime()Get the value for CreationTime.LonggetErrors()Get the value for Errors.LonggetExecuted()Get the value for Executed.JobDefinitiongetJobDefinition()Get the JobDefinition.StringgetKeyParameters()Get the value for KeyParameters.LonggetLastJob()Get the value for LastJob.DateTimeZonegetLastModificationTime()Get the value for LastModificationTime.SubjectgetLastModifierSubject()Get the LastModifierSubject.LonggetMaximumRunTime()Get the value for MaximumRunTime.LonggetMinimumRunTime()Get the value for MinimumRunTime.ObjectDefinitiongetObjectDefinition()Get the ObjectDefinition.BigDecimalgetPercentCompleted()Get the value for PercentCompleted.LonggetRefUniqueId()Get the value for RefUniqueId.BigDecimalgetStdDeviationCallDelay()Get the value for StdDeviationCallDelay.BigDecimalgetStdDeviationLogFile()Get the value for StdDeviationLogFile.BigDecimalgetStdDeviationOutFile()Get the value for StdDeviationOutFile.BigDecimalgetStdDeviationRunTime()Get the value for StdDeviationRunTime.BigDecimalgetSumCallStartDelays()Get the value for SumCallStartDelays.BigDecimalgetSumLogFileSizes()Get the value for SumLogFileSizes.BigDecimalgetSumOutFileSizes()Get the value for SumOutFileSizes.BigDecimalgetSumRuntimes()Get the value for SumRuntimes.BigDecimalgetSumSquaresCallStartDelays()Get the value for SumSquaresCallStartDelays.BigDecimalgetSumSquaresLogFileSizes()Get the value for SumSquaresLogFileSizes.BigDecimalgetSumSquaresOutFileSizes()Get the value for SumSquaresOutFileSizes.BigDecimalgetSumSquaresRuntimes()Get the value for SumSquaresRuntimes.voidsetCompleted(Long newCompleted)Set the value for Completed.voidsetErrors(Long newErrors)Set the value for Errors.voidsetExecuted(Long newExecuted)Set the value for Executed.voidsetKeyParameters(String newKeyParameters)Set the value for KeyParameters.voidsetKeyParameters(Map<String,String> keyParameters)Set the keyParametersvoidsetLastJob(Long newLastJob)Set the value for LastJob.voidsetMaximumRunTime(Long newMaximumRunTime)Set the value for MaximumRunTime.voidsetMinimumRunTime(Long newMinimumRunTime)Set the value for MinimumRunTime.voidsetObjectDefinition(ObjectDefinition newObjectDefinition)Set the value for ObjectDefinition.voidsetPercentCompleted(BigDecimal newPercentCompleted)Set the value for PercentCompleted.voidsetRefUniqueId(Long newRefUniqueId)Set the value for RefUniqueId.voidsetSumCallStartDelays(BigDecimal newSumCallStartDelays)Set the value for SumCallStartDelays.voidsetSumLogFileSizes(BigDecimal newSumLogFileSizes)Set the value for SumLogFileSizes.voidsetSumOutFileSizes(BigDecimal newSumOutFileSizes)Set the value for SumOutFileSizes.voidsetSumRuntimes(BigDecimal newSumRuntimes)Set the value for SumRuntimes.voidsetSumSquaresCallStartDelays(BigDecimal newSumSquaresCallStartDelays)Set the value for SumSquaresCallStartDelays.voidsetSumSquaresLogFileSizes(BigDecimal newSumSquaresLogFileSizes)Set the value for SumSquaresLogFileSizes.voidsetSumSquaresOutFileSizes(BigDecimal newSumSquaresOutFileSizes)Set the value for SumSquaresOutFileSizes.voidsetSumSquaresRuntimes(BigDecimal newSumSquaresRuntimes)Set the value for SumSquaresRuntimes.-
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
-
OBJECT_TYPE
static final String OBJECT_TYPE
String that will be returned fromSchedulerEntity.getObjectType()for "Statistics" objects.- See Also:
- Constant Field Values
-
TYPE
static final QueryObjectType<Statistics> 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
-
getRefUniqueId
Long getRefUniqueId()
Get the value for RefUniqueId. (The entity id for which the statistics are for or null if it is for process definition. Commonly it will contain a process chain call uniqueId for call-related statistics.)- 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.
-
getKeyParameters
String getKeyParameters()
Get the value for KeyParameters. (Hash of key parameter names/values)- 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.
-
getCreationTime
DateTimeZone getCreationTime()
Get the value for CreationTime. (Timestamp that notes when the object was created.) 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.
-
getLastModificationTime
DateTimeZone getLastModificationTime()
Get the value for LastModificationTime. (Timestamp that notes when the object was updated.)- 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.
-
getLastJob
Long getLastJob()
Get the value for LastJob. (The id of the last process/call that got executed)- 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.
-
getMinimumRunTime
Long getMinimumRunTime()
Get the value for MinimumRunTime. (The minimum value for the runtime.)- 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.
-
getMaximumRunTime
Long getMaximumRunTime()
Get the value for MaximumRunTime. (The maximum value for the runtime.)- 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.
-
getSumRuntimes
BigDecimal getSumRuntimes()
Get the value for SumRuntimes. (Sum of runtimes stored for calculating averages and stdDeviations.)- 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.
-
getSumCallStartDelays
BigDecimal getSumCallStartDelays()
Get the value for SumCallStartDelays. (Sum of call start delays stored for calculating averages and stdDeviations.)- 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.
-
getSumLogFileSizes
BigDecimal getSumLogFileSizes()
Get the value for SumLogFileSizes. (Sum of logfile sizes stored for calculating averages and stdDeviations.)- 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.
-
getSumOutFileSizes
BigDecimal getSumOutFileSizes()
Get the value for SumOutFileSizes. (Sum of outfile sizes stored for calculating averages and stdDeviations.)- 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.
-
getSumSquaresRuntimes
BigDecimal getSumSquaresRuntimes()
Get the value for SumSquaresRuntimes. (Sum of squares of runtimes stored for calculating averages and stdDeviations.)- 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.
-
getSumSquaresCallStartDelays
BigDecimal getSumSquaresCallStartDelays()
Get the value for SumSquaresCallStartDelays. (Sum of squares of call start delays stored for calculating averages and stdDeviations.)- 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.
-
getSumSquaresLogFileSizes
BigDecimal getSumSquaresLogFileSizes()
Get the value for SumSquaresLogFileSizes. (Sum of squares of logfile sizes stored for calculating averages and stdDeviations.)- 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.
-
getSumSquaresOutFileSizes
BigDecimal getSumSquaresOutFileSizes()
Get the value for SumSquaresOutFileSizes. (Sum of squares of outfile sizes stored for calculating averages and stdDeviations.)- 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.
-
getExecuted
Long getExecuted()
Get the value for Executed. (The number of processes/calls that ran on the day)- 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.
-
getErrors
Long getErrors()
Get the value for Errors. (The number of processes/calls that were in error)- 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.
-
getCompleted
Long getCompleted()
Get the value for Completed. (The number of processes/calls that succeeded)- 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.
-
getPercentCompleted
BigDecimal getPercentCompleted()
Get the value for PercentCompleted. (The percentage of processes/calls that completed.)- 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.
-
getAverageCallStartDelay
Long getAverageCallStartDelay()
Get the value for AverageCallStartDelay. (The average value for the call start delay.) 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.
-
getAverageRunTime
Long getAverageRunTime()
Get the value for AverageRunTime. (The average value for the runtime.) 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.
-
getAverageLogFileSize
Long getAverageLogFileSize()
Get the value for AverageLogFileSize. (The average value for the log file size.) 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.
-
getAverageOutFileSize
Long getAverageOutFileSize()
Get the value for AverageOutFileSize. (The average value for the output file size.) 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.
-
getStdDeviationCallDelay
BigDecimal getStdDeviationCallDelay()
Get the value for StdDeviationCallDelay. (The standard deviation for the call start delay.) 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.
-
getStdDeviationRunTime
BigDecimal getStdDeviationRunTime()
Get the value for StdDeviationRunTime. (The standard deviation for the runtime.) 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.
-
getStdDeviationLogFile
BigDecimal getStdDeviationLogFile()
Get the value for StdDeviationLogFile. (The standard deviation for the log file size.) 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.
-
getStdDeviationOutFile
BigDecimal getStdDeviationOutFile()
Get the value for StdDeviationOutFile. (The standard deviation for the output file size.) 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.
-
setRefUniqueId
void setRefUniqueId(Long newRefUniqueId)
Set the value for RefUniqueId. (The entity id for which the statistics are for or null if it is for process definition. Commonly it will contain a process chain call uniqueId for call-related statistics.) This value is optional.- Parameters:
newRefUniqueId- the new value for RefUniqueId.- 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.
-
setKeyParameters
void setKeyParameters(String newKeyParameters)
Set the value for KeyParameters. (Hash of key parameter names/values) This value is optional.- Parameters:
newKeyParameters- the new value for KeyParameters.- 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.
-
setLastJob
void setLastJob(Long newLastJob)
Set the value for LastJob. (The id of the last process/call that got executed) This value is optional.- Parameters:
newLastJob- the new value for LastJob.- 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.
-
setMinimumRunTime
void setMinimumRunTime(Long newMinimumRunTime)
Set the value for MinimumRunTime. (The minimum value for the runtime.) This value is optional.- Parameters:
newMinimumRunTime- the new value for MinimumRunTime.- 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.
-
setMaximumRunTime
void setMaximumRunTime(Long newMaximumRunTime)
Set the value for MaximumRunTime. (The maximum value for the runtime.) This value is optional.- Parameters:
newMaximumRunTime- the new value for MaximumRunTime.- 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.
-
setSumRuntimes
void setSumRuntimes(BigDecimal newSumRuntimes)
Set the value for SumRuntimes. (Sum of runtimes stored for calculating averages and stdDeviations.) This value is optional.- Parameters:
newSumRuntimes- the new value for SumRuntimes.- 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.
-
setSumCallStartDelays
void setSumCallStartDelays(BigDecimal newSumCallStartDelays)
Set the value for SumCallStartDelays. (Sum of call start delays stored for calculating averages and stdDeviations.) This value is optional.- Parameters:
newSumCallStartDelays- the new value for SumCallStartDelays.- 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.
-
setSumLogFileSizes
void setSumLogFileSizes(BigDecimal newSumLogFileSizes)
Set the value for SumLogFileSizes. (Sum of logfile sizes stored for calculating averages and stdDeviations.) This value is optional.- Parameters:
newSumLogFileSizes- the new value for SumLogFileSizes.- 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.
-
setSumOutFileSizes
void setSumOutFileSizes(BigDecimal newSumOutFileSizes)
Set the value for SumOutFileSizes. (Sum of outfile sizes stored for calculating averages and stdDeviations.) This value is optional.- Parameters:
newSumOutFileSizes- the new value for SumOutFileSizes.- 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.
-
setSumSquaresRuntimes
void setSumSquaresRuntimes(BigDecimal newSumSquaresRuntimes)
Set the value for SumSquaresRuntimes. (Sum of squares of runtimes stored for calculating averages and stdDeviations.) This value is optional.- Parameters:
newSumSquaresRuntimes- the new value for SumSquaresRuntimes.- 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.
-
setSumSquaresCallStartDelays
void setSumSquaresCallStartDelays(BigDecimal newSumSquaresCallStartDelays)
Set the value for SumSquaresCallStartDelays. (Sum of squares of call start delays stored for calculating averages and stdDeviations.) This value is optional.- Parameters:
newSumSquaresCallStartDelays- the new value for SumSquaresCallStartDelays.- 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.
-
setSumSquaresLogFileSizes
void setSumSquaresLogFileSizes(BigDecimal newSumSquaresLogFileSizes)
Set the value for SumSquaresLogFileSizes. (Sum of squares of logfile sizes stored for calculating averages and stdDeviations.) This value is optional.- Parameters:
newSumSquaresLogFileSizes- the new value for SumSquaresLogFileSizes.- 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.
-
setSumSquaresOutFileSizes
void setSumSquaresOutFileSizes(BigDecimal newSumSquaresOutFileSizes)
Set the value for SumSquaresOutFileSizes. (Sum of squares of outfile sizes stored for calculating averages and stdDeviations.) This value is optional.- Parameters:
newSumSquaresOutFileSizes- the new value for SumSquaresOutFileSizes.- 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.
-
setExecuted
void setExecuted(Long newExecuted)
Set the value for Executed. (The number of processes/calls that ran on the day) This value is optional.- Parameters:
newExecuted- the new value for Executed.- 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.
-
setErrors
void setErrors(Long newErrors)
Set the value for Errors. (The number of processes/calls that were in error) This value is optional.- Parameters:
newErrors- the new value for Errors.- 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.
-
setCompleted
void setCompleted(Long newCompleted)
Set the value for Completed. (The number of processes/calls that succeeded) This value is optional.- Parameters:
newCompleted- the new value for Completed.- 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.
-
setPercentCompleted
void setPercentCompleted(BigDecimal newPercentCompleted)
Set the value for PercentCompleted. (The percentage of processes/calls that completed.) This value is optional.- Parameters:
newPercentCompleted- the new value for PercentCompleted.- 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.
-
setKeyParameters
void setKeyParameters(Map<String,String> keyParameters)
Set the keyParameters- Parameters:
keyParameters- A map of key parameters names/values, with both names and values as strings.
-
getObjectDefinition
ObjectDefinition getObjectDefinition()
Get the ObjectDefinition.- Returns:
- ObjectDefinition
- 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.
-
getJobDefinition
JobDefinition 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.
-
getLastModifierSubject
Subject getLastModifierSubject()
Get the LastModifierSubject.- Returns:
- LastModifierSubject
- 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.
-
setObjectDefinition
void setObjectDefinition(ObjectDefinition newObjectDefinition)
Set the value for ObjectDefinition. This value is mandatory.- Parameters:
newObjectDefinition- is the object to set ObjectDefinition to. The ObjectDefinition for the Job Statistics If this isnull, then the object cannot be persisted.
-
-