示例#1
0
 public static void runTask(
     String taskName,
     String typeId,
     int maxAttempts,
     ScheduledServicePropertyResource... properties)
     throws Exception {
   nexusTasksRestClient.runTask(taskName, typeId, maxAttempts, properties);
 }
示例#2
0
 /**
  * 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);
 }
示例#3
0
 /** Holds execution until all tasks stop running */
 public static void waitForAllTasksToStop() throws Exception {
   nexusTasksRestClient.waitForAllTasksToStop();
 }
示例#4
0
 public static void deleteAllTasks() throws Exception {
   nexusTasksRestClient.deleteAllTasks();
 }
示例#5
0
 public static String getStatus(String name) throws Exception {
   return nexusTasksRestClient.getStatus(name);
 }
示例#6
0
 /** @return all tasks, even internal ones */
 public static List<ScheduledServiceListResource> getAllTasks() throws IOException {
   return nexusTasksRestClient.getAllTasks();
 }
示例#7
0
 public static ScheduledServiceListResource getTask(String name) throws Exception {
   return nexusTasksRestClient.getTask(name);
 }
示例#8
0
 public static void waitForTask(String name, int maxAttempts, boolean failIfNotFinished)
     throws Exception {
   nexusTasksRestClient.waitForTask(name, maxAttempts, failIfNotFinished);
 }
示例#9
0
 public static ScheduledServicePropertyResource newProperty(String name, String value) {
   return TasksNexusRestClient.newProperty(name, value);
 }
示例#10
0
 public static void runTask(String typeId, ScheduledServicePropertyResource... properties)
     throws Exception {
   nexusTasksRestClient.runTask(typeId, properties);
 }
示例#11
0
 public static Status cancel(String taskId) throws IOException {
   return nexusTasksRestClient.cancel(taskId);
 }
示例#12
0
 public static Status run(String taskId) throws IOException {
   return nexusTasksRestClient.run(taskId);
 }
示例#13
0
 public static Status deleteTask(String id) throws IOException {
   return nexusTasksRestClient.deleteTask(id);
 }
示例#14
0
 /**
  * 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);
 }
示例#15
0
 public static Status create(ScheduledServiceBaseResource task, Matcher<Response>... matchers)
     throws IOException {
   return nexusTasksRestClient.create(task, matchers);
 }
示例#16
0
 /**
  * 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);
 }
示例#17
0
 /**
  * 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);
 }