com.ibm.ia.global.jobs

Enum JobStatus

  • java.lang.Object
    • java.lang.Enum<JobStatus>
      • com.ibm.ia.global.jobs.JobStatus
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<JobStatus>


    public enum JobStatus
    extends java.lang.Enum<JobStatus>
    The statuses of a Job.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant and Description
      ABORTED
      ABORTED indicates the job was aborted and no longer active.
      ABORTING
      ABORTING indicates the job is in the process of aborting.
      CANCELLED
      CANCELLED indicates the job was aborted before it started running.
      COMPLETED
      COMPLETED indicates the job finished.
      CREATED
      CREATED indicates the job has been created but is not yet submitted.
      FAILED
      FAILED indicates the job failed during execution.
      FAILED_SUBMISSION
      FAILED_SUBMISSION indicates the job failed to be submitted.
      QUEUED
      QUEUED indicates the job has been submitted but is not yet running.
      RUNNING
      RUNNING indicates the job is active.
      SKIPPED_AS_DUPE
      SKIPPED_AS_DUPE indicates the job failed to be submitted because it was already queued.
      STARTING
      STARTING indicates the job is out of the queue and starting.
      TIMED_OUT
      TIMED_OUT indicates the job was aborted because it timed out.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean matchesAny(JobStatus... statuses)
      Returns whether or not this JobStatus matches any of the JobStatus array arguments.
      static JobStatus valueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static JobStatus[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • CREATED

        public static final JobStatus CREATED
        CREATED indicates the job has been created but is not yet submitted.
      • QUEUED

        public static final JobStatus QUEUED
        QUEUED indicates the job has been submitted but is not yet running.
      • SKIPPED_AS_DUPE

        public static final JobStatus SKIPPED_AS_DUPE
        SKIPPED_AS_DUPE indicates the job failed to be submitted because it was already queued.
      • FAILED_SUBMISSION

        public static final JobStatus FAILED_SUBMISSION
        FAILED_SUBMISSION indicates the job failed to be submitted.
      • CANCELLED

        public static final JobStatus CANCELLED
        CANCELLED indicates the job was aborted before it started running.
      • STARTING

        public static final JobStatus STARTING
        STARTING indicates the job is out of the queue and starting.
      • RUNNING

        public static final JobStatus RUNNING
        RUNNING indicates the job is active.
      • ABORTING

        public static final JobStatus ABORTING
        ABORTING indicates the job is in the process of aborting.
      • ABORTED

        public static final JobStatus ABORTED
        ABORTED indicates the job was aborted and no longer active.
      • TIMED_OUT

        public static final JobStatus TIMED_OUT
        TIMED_OUT indicates the job was aborted because it timed out.
      • FAILED

        public static final JobStatus FAILED
        FAILED indicates the job failed during execution.
      • COMPLETED

        public static final JobStatus COMPLETED
        COMPLETED indicates the job finished. To determine if the job was successful, consult the ResultCode of the JobResult.
        See Also:
        JobResult.ResultCode
    • Method Detail

      • values

        public static JobStatus[] values()
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static JobStatus valueOf(java.lang.String name)
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
      • matchesAny

        public boolean matchesAny(JobStatus... statuses)
        Returns whether or not this JobStatus matches any of the JobStatus array arguments.
        Parameters:
        statuses - the statuses to consider
        Returns:
        true if this JobStatus matches, false if not.

© Copyright IBM 2017