com.cloudera.api.model
Enum ApiServiceState

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

public enum ApiServiceState
extends Enum<ApiServiceState>

Represents the configured run state of a service.


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


UNKNOWN

public static final ApiServiceState UNKNOWN
The service's run state cannot be determined


STARTING

public static final ApiServiceState STARTING
The service is starting


STARTED

public static final ApiServiceState STARTED
The service has started


STOPPING

public static final ApiServiceState STOPPING
The service is stopping


STOPPED

public static final ApiServiceState STOPPED
The service has stopped


NA

public static final ApiServiceState NA
The service doesn't start or stop

Method Detail

values

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

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

valueOf

public static ApiServiceState 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.