com.cloudera.api.model
Enum ApiRoleState

java.lang.Object
  extended by java.lang.Enum<ApiRoleState>
      extended by com.cloudera.api.model.ApiRoleState
All Implemented Interfaces:
Serializable, Comparable<ApiRoleState>

public enum ApiRoleState
extends Enum<ApiRoleState>

Represents the configured run state of a role.


Enum Constant Summary
BUSY
          The role is executing a command
HISTORY_NOT_AVAILABLE
          The role's run state was not captured at this past instant
NA
          The role doesn't start or stop
STARTED
          The role has started
STARTING
          The role is starting
STOPPED
          The role has stopped
STOPPING
          The role is stopping
UNKNOWN
          The role's run state cannot be determined
 
Method Summary
static ApiRoleState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ApiRoleState[] 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

HISTORY_NOT_AVAILABLE

public static final ApiRoleState HISTORY_NOT_AVAILABLE
The role's run state was not captured at this past instant


UNKNOWN

public static final ApiRoleState UNKNOWN
The role's run state cannot be determined


STARTING

public static final ApiRoleState STARTING
The role is starting


STARTED

public static final ApiRoleState STARTED
The role has started


BUSY

public static final ApiRoleState BUSY
The role is executing a command


STOPPING

public static final ApiRoleState STOPPING
The role is stopping


STOPPED

public static final ApiRoleState STOPPED
The role has stopped


NA

public static final ApiRoleState NA
The role doesn't start or stop

Method Detail

values

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

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

valueOf

public static ApiRoleState 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 © Cloudera, Inc. Released under Apache License, Version 2.0.