Package com.uc4.api.objects
Class MaxParallel
java.lang.Object
com.uc4.api.objects.MaxParallel
This class contains information about the maximum number of parallel tasks.
MaxParallel
is part of the attributes tab for all executeable objects.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MaxParallel
(com.uc4.util.XMLDocument doc, Element attr) Constructs aMaxParallel
from specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns the maximum number of paralle tasks.int
hashCode()
boolean
isCancel()
Returnstrue
if objects should be canceled when maximum number of parallel tasks is exceeded.protected boolean
isDirty()
void
setCancel
(boolean cancel) Sets the handling of the Object if execution exceeds the maximum number of tasks set to run parallel.void
setParallelTasks
(int parallelTasks) Setting which defines the maximum number of parallel executions for this Job.protected void
Stores the content of this object under theattr
element.
-
Constructor Details
-
MaxParallel
Constructs aMaxParallel
from specified parameters.- Parameters:
doc
- XML Documentattr
- attribut element
-
-
Method Details
-
isDirty
protected boolean isDirty() -
isCancel
public boolean isCancel()Returnstrue
if objects should be canceled when maximum number of parallel tasks is exceeded.- Returns:
- State of the cancel checkbox
-
setCancel
public void setCancel(boolean cancel) Sets the handling of the Object if execution exceeds the maximum number of tasks set to run parallel. ifcancel
is set totrue
additional Automation Engine Objects are canceled with status FAULT_ALREADY_RUNNING - task is already running. ifcancel
is set tofalse
additional Automation Engine Objects will wait until execution is possible.- Parameters:
cancel
- Cancel
-
getParallelTasks
public int getParallelTasks()Returns the maximum number of paralle tasks.- Returns:
- parallel tasks
-
setParallelTasks
public void setParallelTasks(int parallelTasks) Setting which defines the maximum number of parallel executions for this Job.Permitted values: 0 to 99999
Default: 0 (no limit on tasks running parallel)- Parameters:
parallelTasks
- max parallel tasks
-
hashCode
public int hashCode() -
equals
-
store
Stores the content of this object under theattr
element.- Parameters:
doc
- XML Documentattr
- attributes
-