public static void runTask( String taskName, String typeId, int maxAttempts, ScheduledServicePropertyResource... properties) throws Exception { nexusTasksRestClient.runTask(taskName, typeId, maxAttempts, properties); }
/** * Holds execution until all tasks of a given type stop running * * @param taskType task type */ public static void waitForAllTasksToStop(String taskType) throws Exception { nexusTasksRestClient.waitForAllTasksToStop(taskType); }
/** Holds execution until all tasks stop running */ public static void waitForAllTasksToStop() throws Exception { nexusTasksRestClient.waitForAllTasksToStop(); }
public static void deleteAllTasks() throws Exception { nexusTasksRestClient.deleteAllTasks(); }
public static String getStatus(String name) throws Exception { return nexusTasksRestClient.getStatus(name); }
/** @return all tasks, even internal ones */ public static List<ScheduledServiceListResource> getAllTasks() throws IOException { return nexusTasksRestClient.getAllTasks(); }
public static ScheduledServiceListResource getTask(String name) throws Exception { return nexusTasksRestClient.getTask(name); }
public static void waitForTask(String name, int maxAttempts, boolean failIfNotFinished) throws Exception { nexusTasksRestClient.waitForTask(name, maxAttempts, failIfNotFinished); }
public static ScheduledServicePropertyResource newProperty(String name, String value) { return TasksNexusRestClient.newProperty(name, value); }
public static void runTask(String typeId, ScheduledServicePropertyResource... properties) throws Exception { nexusTasksRestClient.runTask(typeId, properties); }
public static Status cancel(String taskId) throws IOException { return nexusTasksRestClient.cancel(taskId); }
public static Status run(String taskId) throws IOException { return nexusTasksRestClient.run(taskId); }
public static Status deleteTask(String id) throws IOException { return nexusTasksRestClient.deleteTask(id); }
/** * Holds execution until all tasks of a given type stop running * * @param maxAttempts how many times check for tasks being stopped */ public static void waitForAllTasksToStop(int maxAttempts) throws Exception { nexusTasksRestClient.waitForAllTasksToStop(maxAttempts); }
public static Status create(ScheduledServiceBaseResource task, Matcher<Response>... matchers) throws IOException { return nexusTasksRestClient.create(task, matchers); }
/** * Holds execution until all tasks of a given type stop running * * @param taskClass task type */ public static void waitForAllTasksToStop(Class<? extends NexusTask<?>> taskClass) throws Exception { nexusTasksRestClient.waitForAllTasksToStop(taskClass); }
/** * Blocks while waiting for a task to finish. * * @param name * @return * @throws Exception */ public static void waitForTask(String name, int maxAttempts) throws Exception { nexusTasksRestClient.waitForTask(name, maxAttempts); }