Class JobUtils


  • public class JobUtils
    extends Object
    • Method Detail

      • waitForJobDeletion

        public static void waitForJobDeletion​(String name)
        Wait until the given Job has been deleted.
        Parameters:
        name - The name of the Job
      • deleteJobWithWait

        public static void deleteJobWithWait​(String namespace,
                                             String name)
        Delete Job and wait for it's deletion
        Parameters:
        name - name of the job
      • waitForJobFailure

        public static void waitForJobFailure​(String jobName,
                                             String namespace,
                                             long timeout)
        Wait for specific Job failure
        Parameters:
        jobName - job name
        namespace - namespace
        timeout - timeout after which we assume that job failed