public class Batches extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isDone(javax.batch.runtime.BatchStatus status) |
static boolean |
isDone(javax.batch.operations.JobOperator jobOperator,
long id) |
static javax.batch.runtime.BatchStatus |
waitFor(javax.batch.operations.JobOperator jobOperator,
long id)
Waits until the end of the
JobExecution with the given id
and returns the final BatchStatus. |
static javax.batch.runtime.BatchStatus |
waitFor(long id)
Waits until the end of the
JobExecution with the given id
and returns the final BatchStatus. |
static void |
waitForEnd(javax.batch.operations.JobOperator jobOperator,
long id) |
static void |
waitForEnd(long id) |
public static void waitForEnd(long id)
public static void waitForEnd(javax.batch.operations.JobOperator jobOperator,
long id)
public static javax.batch.runtime.BatchStatus waitFor(long id)
JobExecution with the given id
and returns the final BatchStatus.id - of the JobExecution to wait forBatchStatus or in case of an InterruptedException the current BatchStatus
will be returned.public static javax.batch.runtime.BatchStatus waitFor(javax.batch.operations.JobOperator jobOperator,
long id)
JobExecution with the given id
and returns the final BatchStatus.jobOperator - the to useid - of the JobExecution to wait forBatchStatus or in case of an InterruptedException the current BatchStatus
will be returned.public static boolean isDone(javax.batch.runtime.BatchStatus status)
public static boolean isDone(javax.batch.operations.JobOperator jobOperator,
long id)
Copyright © 2023 The Apache Software Foundation. All rights reserved.