com.baidubce.services.bvw.model.workflow
Enum RunnableStatus

java.lang.Object
  extended by java.lang.Enum<RunnableStatus>
      extended by com.baidubce.services.bvw.model.workflow.RunnableStatus
All Implemented Interfaces:
Serializable, Comparable<RunnableStatus>

public enum RunnableStatus
extends Enum<RunnableStatus>

The enum class to enumerate all the supported instance status in SDK.


Enum Constant Summary
FAILED
          The instance is failed.
READY
          The instance is ready to run.
RUNNING
          The instance is running.
SUCCESS
          The instance is successful.
 
Method Summary
static RunnableStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RunnableStatus[] 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

READY

public static final RunnableStatus READY
The instance is ready to run.


RUNNING

public static final RunnableStatus RUNNING
The instance is running.


SUCCESS

public static final RunnableStatus SUCCESS
The instance is successful.


FAILED

public static final RunnableStatus FAILED
The instance is failed.

Method Detail

values

public static RunnableStatus[] 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 (RunnableStatus c : RunnableStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RunnableStatus 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


Copyright © 2020. All rights reserved.