public class TaskUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TaskUtil.State |
Constructor and Description |
---|
TaskUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
checkForError(TaskResourceRep task)
Checks a task state to see if it is in error.
|
static void |
checkForErrors(java.util.List<TaskResourceRep> tasks) |
static boolean |
isComplete(TaskResourceRep task) |
static boolean |
isError(TaskResourceRep task) |
static boolean |
isQueued(TaskResourceRep task) |
static boolean |
isRunning(TaskResourceRep task) |
static boolean |
isSuspended(TaskResourceRep task) |
static TaskResourceRep |
refresh(RestClient client,
TaskResourceRep task) |
static TaskResourceRep |
waitForTask(RestClient client,
TaskResourceRep task,
long timeoutMillis) |
static java.util.List<TaskResourceRep> |
waitForTasks(RestClient client,
java.util.List<TaskResourceRep> tasks,
long timeoutMillis) |
public static TaskResourceRep refresh(RestClient client, TaskResourceRep task)
public static TaskResourceRep waitForTask(RestClient client, TaskResourceRep task, long timeoutMillis)
public static java.util.List<TaskResourceRep> waitForTasks(RestClient client, java.util.List<TaskResourceRep> tasks, long timeoutMillis)
public static boolean isRunning(TaskResourceRep task)
public static boolean isSuspended(TaskResourceRep task)
public static boolean isQueued(TaskResourceRep task)
public static boolean isComplete(TaskResourceRep task)
public static boolean isError(TaskResourceRep task)
public static void checkForError(TaskResourceRep task)
task
- Task to check for errors onpublic static void checkForErrors(java.util.List<TaskResourceRep> tasks)