public class TaskRuntime
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
TaskRuntime(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element task) |
Modifier and Type | Method and Description |
---|---|
TaskRuntime |
copy()
This method is used to return the copy of the TaskRuntime Object.
|
UC4ObjectName |
getExecuteObject()
Returns the object which is executed when the runtime exceeds or falls below the specified limits.
|
boolean |
isCancelJobAboveMRT()
Returns
true if the exceeding runtime will initiate a cancel or the
completion of the task. |
boolean |
isUseTaskSettings()
Returns
true if the task settings should be used. |
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 |
setUseTaskSettings(boolean useTaskSettings)
If the parameter
useTaskSettings is set to false
the methods in this class can be used to set the runtime settings of this task. |
protected void |
store(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element task) |
protected TaskRuntime(com.uc4.util.XMLDocument doc, org.w3c.dom.Element task)
public boolean isUseTaskSettings()
true
if the task settings should be used.public void setUseTaskSettings(boolean useTaskSettings)
useTaskSettings
is set to false
the methods in this class can be used to set the runtime settings of this task.useTaskSettings
- Boolean which is set to true if task settings should be usedpublic 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 UC4ObjectName getExecuteObject()
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 MaximumRuntime maximumRuntime()
MaximumRuntime
which can be used to modify the maximum runtime settings.public MinimumRuntime minimumRuntime()
MinimumRuntime
which can be used to modify the minimum runtime settings.public void setExecuteObject(UC4ObjectName executeObject)
executeObject
- UC4ObjectName of the executed objectprotected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element task)
public TaskRuntime copy()