/** * 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); }
/** * 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 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); }
/** Holds execution until all tasks stop running */ public static void waitForAllTasksToStop() throws Exception { nexusTasksRestClient.waitForAllTasksToStop(); }