All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ibm.optim.oaas.client.job.model.JobExecutionStatus.html Maven / Gradle / Ivy

The newest version!






JobExecutionStatus (Java Client for DOcplexcloud 1.0 API)











com.ibm.optim.oaas.client.job.model

Enum JobExecutionStatus

    • Enum Constant Detail

      • NOT_STARTED

        public static final JobExecutionStatus NOT_STARTED
        The job has been sent to the execution queue and is ready to be picked by a worker.
      • RUNNING

        public static final JobExecutionStatus RUNNING
        The job has been picked by a worker and is being executed.
      • INTERRUPTING

        public static final JobExecutionStatus INTERRUPTING
        A job interruption has been requested.
      • PROCESSED

        public static final JobExecutionStatus PROCESSED
        The job has been processed successfully at the system level.
    • Method Detail

      • values

        public static JobExecutionStatus[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (JobExecutionStatus c : JobExecutionStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static JobExecutionStatus valueOf(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • isWaiting

        public static boolean isWaiting(JobExecutionStatus jobStatus)
        Check if the job is currently waiting to be processed based on the job status.
        Parameters:
        jobStatus - The job status.
        Returns:
        Returns true if the job is waiting to be processed, false otherwise.
      • isEnded

        public static boolean isEnded(JobExecutionStatus jobStatus)
        Check if the job execution has completed based on the job status.
        Parameters:
        jobStatus - The job status.
        Returns:
        Returns true if the job execution completed (processed, interrupted or failed), false otherwise.
      • isFailure

        public static boolean isFailure(JobExecutionStatus jobStatus)
        Check if the job has completed its execution with a failure based on the job status.
        Parameters:
        jobStatus - The job status.
        Returns:
        Returns true if the job completed execution with a failure, false otherwise.
      • isActive

        public static boolean isActive(JobExecutionStatus jobStatus)
        Check if the job is currently active based on the job status.
        Parameters:
        jobStatus - The job status.
        Returns:
        Returns true if the job is currently active, false otherwise.

Copyright © 2015–2017 IBM Corporation. Licensed under the Apache License, Version 2.0.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy