Package de.dlr.proseo.planner.util
Klasse JobUtil
java.lang.Object
de.dlr.proseo.planner.util.JobUtil
Utility class for handling jobs and their operations.
- Autor:
- Ernst Melchinger
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungCancel a job and its job steps.checkFinish
(Long jobId) Check whether a job and its job steps are finished.Delete satisfied product queries of its job steps.Delete a job and its job steps.deleteForced
(Job job) Forcibly delete a job and its job steps, unless it is running.Resume a job and its job steps.Retry a job and its job steps.void
setHasFailedJobSteps
(Job job, Boolean failed) Set the job to failedStart a job and its job steps.Suspend a job and its job steps.
-
Konstruktordetails
-
JobUtil
public JobUtil()
-
-
Methodendetails
-
suspend
@Transactional(isolation=REPEATABLE_READ) public PlannerResultMessage suspend(Job job, Boolean force) Suspend a job and its job steps. If force is true, running Kubernetes jobs are terminated.- Parameter:
job
- The jobforce
- If true, forcibly terminate running Kubernetes jobs- Gibt zurück:
- Result message indicating success or failure
-
close
Delete satisfied product queries of its job steps.- Parameter:
id
- The job ID- Gibt zurück:
- Result message indicating success or failure
-
retry
Retry a job and its job steps.- Parameter:
job
- The job- Gibt zurück:
- Result message indicating success or failure
-
cancel
Cancel a job and its job steps.- Parameter:
job
- The job- Gibt zurück:
- Result message indicating success or failure
-
resume
Resume a job and its job steps.- Parameter:
job
- The job- Gibt zurück:
- Result message indicating success or failure
-
startJob
Start a job and its job steps.- Parameter:
job
- The job- Gibt zurück:
- true if successful, false otherwise
-
delete
Delete a job and its job steps.- Parameter:
job
- The job- Gibt zurück:
- true if deletion was successful, false otherwise
-
deleteForced
Forcibly delete a job and its job steps, unless it is running.- Parameter:
job
- The job- Gibt zurück:
- true if deletion was successful, false otherwise
-
checkFinish
Check whether a job and its job steps are finished.- Parameter:
jobId
- The ID of the job to check- Gibt zurück:
- true if job and its steps are finished, false otherwise
-
setHasFailedJobSteps
Set the job to failed- Parameter:
job
- The job to set to failedfailed
-
-