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 TypeMethodDescriptionvoidsetDelegateFailure(boolean delegateFailure) Job parameter: whether to fail the job if some executed job fails or finish successfully (default).voidsetJobs(MultiJobExecutionRequest... jobs) Required job parameter: jobs to execute.voidsetJobs(JobExecutionRequest... jobs) Required job parameter: jobs to execute.voidSet job parameters based on given request.voidsetParallel(boolean parallel) Job parameter: whether to execute jobs in parallel or sequentially (default).voidsetTerminateOnFailure(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-trueif jobs should be executed in parallel,falseif 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-trueif job should terminate on executed job's failure,falseotherwise
-
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-trueif job should report executed job failure as its own failure,falseotherwise
-
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
-