Package org.apache.batchee.util
Class Batches
- java.lang.Object
-
- org.apache.batchee.util.Batches
-
public class Batches extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisDone(javax.batch.operations.JobOperator jobOperator, long id)static booleanisDone(javax.batch.runtime.BatchStatus status)static javax.batch.runtime.BatchStatuswaitFor(long id)Waits until the end of theJobExecutionwith the givenidand returns the finalBatchStatus.static javax.batch.runtime.BatchStatuswaitFor(javax.batch.operations.JobOperator jobOperator, long id)Waits until the end of theJobExecutionwith the givenidand returns the finalBatchStatus.static voidwaitForEnd(long id)static voidwaitForEnd(javax.batch.operations.JobOperator jobOperator, long id)
-
-
-
Method Detail
-
waitForEnd
public static void waitForEnd(long id)
-
waitForEnd
public static void waitForEnd(javax.batch.operations.JobOperator jobOperator, long id)
-
waitFor
public static javax.batch.runtime.BatchStatus waitFor(long id)
Waits until the end of theJobExecutionwith the givenidand returns the finalBatchStatus.- Parameters:
id- of theJobExecutionto wait for- Returns:
- the final
BatchStatusor in case of anInterruptedExceptionthe currentBatchStatuswill be returned.
-
waitFor
public static javax.batch.runtime.BatchStatus waitFor(javax.batch.operations.JobOperator jobOperator, long id)Waits until the end of theJobExecutionwith the givenidand returns the finalBatchStatus.- Parameters:
jobOperator- theto useid- of theJobExecutionto wait for- Returns:
- the final
BatchStatusor in case of anInterruptedExceptionthe currentBatchStatuswill be returned.
-
isDone
public static boolean isDone(javax.batch.runtime.BatchStatus status)
-
isDone
public static boolean isDone(javax.batch.operations.JobOperator jobOperator, long id)
-
-