Package com.redwood.scheduler.api.model
Interface LoadFactor
-
- All Superinterfaces:
Detail
,SchedulerEntity
,SchedulerEntityComp
- All Known Subinterfaces:
ProcessServerLoadFactor
,SAPApplicationServerLoadFactor
public interface LoadFactor extends Detail
A factor for calculating the load.
-
-
Field Summary
-
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 String
getDescription()
Get the value for Description.MonitorValue
getMonitorValue()
Get the MonitorValue.Long
getMultiplier()
Get the value for Multiplier.Long
getThreshold()
Get the value for Threshold.boolean
isOverloaded()
Return if the LoadFactor is currently overloaded or not.void
setDescription(String newDescription)
Set the value for Description.void
setMonitorValue(MonitorValue newMonitorValue)
Set the value for MonitorValue.void
setMultiplier(Long newMultiplier)
Set the value for Multiplier.void
setThreshold(Long newThreshold)
Set the value for Threshold.-
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
-
-
-
-
Method Detail
-
getDescription
String getDescription()
Get the value for Description. (The (optional) description of the load factor)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getMultiplier
Long getMultiplier()
Get the value for Multiplier. (The multiplier to apply to the load factor.) 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.
-
getThreshold
Long getThreshold()
Get the value for Threshold. (The maximum threshold this factor can reach before marking as overloaded.) 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.
-
setDescription
void setDescription(String newDescription)
Set the value for Description. (The (optional) description of the load factor) This value is optional.- Parameters:
newDescription
- the new value for Description.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setMultiplier
void setMultiplier(Long newMultiplier)
Set the value for Multiplier. (The multiplier to apply to the load factor.) This value is mandatory.- Parameters:
newMultiplier
- the new value for Multiplier. 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.
-
setThreshold
void setThreshold(Long newThreshold)
Set the value for Threshold. (The maximum threshold this factor can reach before marking as overloaded.) This value is mandatory.- Parameters:
newThreshold
- the new value for Threshold. 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.
-
isOverloaded
boolean isOverloaded()
Return if the LoadFactor is currently overloaded or not. Return if the LoadFactor is currently overloaded or not.- Returns:
- The overloaded status of the LoadFactor.
-
getMonitorValue
MonitorValue getMonitorValue()
Get the MonitorValue.- Returns:
- MonitorValue
- 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.
-
setMonitorValue
void setMonitorValue(MonitorValue newMonitorValue)
Set the value for MonitorValue. This value is mandatory.- Parameters:
newMonitorValue
- is the object to set MonitorValue to. The monitor value to listen to for changes in this factor. If this isnull
, then the object cannot be persisted.
-
-