Package com.polarion.platform.jobs
Interface IMultiJobUnit
- All Superinterfaces:
IJobUnit
This job will execute multiple jobs at once (sequentially or in parallel).
Executed jobs are not executed as child jobs, but as normal jobs.
- Since:
- 3.2.1
- Version:
- $Revision$ $Date$
- Author:
- Stepan Roh
-
Field Summary
FieldsFields inherited from interface com.polarion.platform.jobs.IJobUnit
UNKNOWN_WORK_LENGTH
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setDelegateFailure
(boolean delegateFailure) Job parameter: whether to fail the job if some executed job fails or finish successfully (default).void
setJobs
(MultiJobExecutionRequest... jobs) Required job parameter: jobs to execute.void
setJobs
(JobExecutionRequest... jobs) Required job parameter: jobs to execute.void
Set job parameters based on given request.void
setParallel
(boolean parallel) Job parameter: whether to execute jobs in parallel or sequentially (default).void
setTerminateOnFailure
(boolean terminateOnFailure) Job parameter: whether to terminate immediately if some executed job fails or ignore the failure (default).Methods inherited from interface com.polarion.platform.jobs.IJobUnit
activate, getCreator, getJob, getLogger, getName, getPriority, getScope, getWorkLength, run, setJob, setLogger, setScope, setWorkDir
-
Field Details
-
JOB_NAME
- See Also:
-
-
Method Details
-
setParallel
void setParallel(boolean parallel) Job parameter: whether to execute jobs in parallel or sequentially (default).- Parameters:
parallel
-true
if jobs should be executed in parallel,false
if jobs should be executed sequentially
-
setTerminateOnFailure
void setTerminateOnFailure(boolean terminateOnFailure) Job parameter: whether to terminate immediately if some executed job fails or ignore the failure (default).Is ignored if
setParallel(boolean)
istrue
.- Parameters:
terminateOnFailure
-true
if job should terminate on executed job's failure,false
otherwise
-
setDelegateFailure
void setDelegateFailure(boolean delegateFailure) Job parameter: whether to fail the job if some executed job fails or finish successfully (default).Abortion is always delegated.
- Parameters:
delegateFailure
-true
if job should report executed job failure as its own failure,false
otherwise
-
setJobs
Required job parameter: jobs to execute.Either this or
setJobs(MultiJobExecutionRequest...)
is required.- Parameters:
jobs
- jobs to execute
-
setJobs
Required job parameter: jobs to execute.Either this or
setJobs(JobExecutionRequest...)
is required.- Parameters:
jobs
- jobs to execute- Since:
- 3.4.2
-
setMultiJobExecutionRequest
Set job parameters based on given request.Parameters can not be set to different value after this method is called.
- Parameters:
request
- multi-job request- Since:
- 3.4.2
-