public class Runtime
extends java.lang.Object
It is used for setting parameters for a task's runtime behavior.
The "Runtime" tab is structured as follows:Modifier | Constructor and Description |
---|---|
protected |
Runtime(com.uc4.util.XMLDocument doc) |
Modifier and Type | Method and Description |
---|---|
EstimatedRuntime |
estimatedRuntime()
Returns a
EstimatedRuntime which can be used to set the estimated runtime settings. |
UC4ObjectName |
getExecuteObject()
Returns the object which is executed when the runtime exceeds or falls below the specified limits.
|
ForecastTaskState |
getForecastState()
Returns the status, which should be returned by this task when making a forecast.
|
int |
getMaxRetCode()
Returns the maximum Return Code for the normal end of a task.
|
UC4ObjectName |
getRetCodeExecuteObject()
Returns the name of the Automation Engine Object which should be executed when the actual return code
is higher than the maximum allowed return code.
|
StepListItem[] |
getStepList()
Returns teh OS 390 Step List.
|
boolean |
isCancelJobAboveMRT()
Returns
true if the exceeding runtime will initiate a cancel or the
completion of the task. |
MaximumRuntime |
maximumRuntime()
Returns a
MaximumRuntime which can be used to modify the maximum runtime settings. |
MinimumRuntime |
minimumRuntime()
Returns a
MinimumRuntime which can be used to modify the minimum runtime settings. |
void |
setCancelJobAboveMRT(boolean cancelJobAboveMRT)
If
cancelJobAboveMRT is set to true the exceeding runtime
will initiate a cancel or the completion of the task. |
void |
setExecuteObject(UC4ObjectName executeObject)
Sets the object which is executed when the runtime exceeds or falls below the specified limits.
|
void |
setForecastState(ForecastTaskState forecastState)
Sets the end status, which should be returned by this task when making a forecast.
|
void |
setMaxRetCode(int maxRetCode)
Sets the maximum Return Code for the normal end of a task or Step list for OS/390 Jobs.
|
void |
setRetCodeExecuteObject(UC4ObjectName retCodeExecuteObject)
Sets the name of the Automation Engine Object which should be executed when the actual return code
is higher than the maximum allowed return code.
|
void |
setStepList(StepListItem[] stepList)
Sets the Step List for OS 390 Jobs.
|
protected void |
store(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request) |
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)
public UC4ObjectName getRetCodeExecuteObject()
UC4ObjectName
instance is returned.public void setRetCodeExecuteObject(UC4ObjectName retCodeExecuteObject)
null
or
an empty UC4ObjectName
instance.retCodeExecuteObject
- Name of the Object that should be executed, never nullpublic MaximumRuntime maximumRuntime()
MaximumRuntime
which can be used to modify the maximum runtime settings.public boolean isCancelJobAboveMRT()
true
if the exceeding runtime will initiate a cancel or the
completion of the task.
Only available when the maximum runtime is being supervised.public void setCancelJobAboveMRT(boolean cancelJobAboveMRT)
cancelJobAboveMRT
is set to true
the exceeding runtime
will initiate a cancel or the completion of the task.cancelJobAboveMRT
- Boolean which is set to true if the object should
be canceled when the runtime is exceededpublic UC4ObjectName getExecuteObject()
public StepListItem[] getStepList()
null
if there is nonepublic void setStepList(StepListItem[] stepList)
stepList
- Step Listpublic void setExecuteObject(UC4ObjectName executeObject)
executeObject
- UC4ObjectName of the executed objectpublic EstimatedRuntime estimatedRuntime()
EstimatedRuntime
which can be used to set the estimated runtime settings.public MinimumRuntime minimumRuntime()
MinimumRuntime
which can be used to modify the minimum runtime settings.public int getMaxRetCode()
public void setMaxRetCode(int maxRetCode)
maxRetCode
- Return codepublic ForecastTaskState getForecastState()
public void setForecastState(ForecastTaskState forecastState)
forecastState
- End status for forecasts