com.cloudera.api.model
Enum ApiShutdownReadiness.ShutdownReadinessState

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

public static enum ApiShutdownReadiness.ShutdownReadinessState
extends Enum<ApiShutdownReadiness.ShutdownReadinessState>

Enum for Cloudera Manager shutdown readiness state.


Enum Constant Summary
NOT_READY
          Critical activity still ongoing.
READY
          Ready for shutdown.
 
Method Summary
static ApiShutdownReadiness.ShutdownReadinessState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ApiShutdownReadiness.ShutdownReadinessState[] 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 ApiShutdownReadiness.ShutdownReadinessState READY
Ready for shutdown. This is a terminal state, meaning it will not change once reached, assuming same input.


NOT_READY

public static final ApiShutdownReadiness.ShutdownReadinessState NOT_READY
Critical activity still ongoing.

Method Detail

values

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

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

valueOf

public static ApiShutdownReadiness.ShutdownReadinessState 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.