@InterfaceAudience.Public @InterfaceStability.Unstable public enum ServiceState extends Enum<ServiceState>
Enum Constant and Description |
---|
ACCEPTED |
CANCEL_UPGRADING |
EXPRESS_UPGRADING |
FAILED |
FLEX |
STABLE |
STARTED |
STOPPED |
SUCCEEDED |
UPGRADING |
UPGRADING_AUTO_FINALIZE |
Modifier and Type | Method and Description |
---|---|
static boolean |
isUpgrading(ServiceState state) |
static ServiceState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServiceState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceState ACCEPTED
public static final ServiceState STARTED
public static final ServiceState STABLE
public static final ServiceState STOPPED
public static final ServiceState FAILED
public static final ServiceState FLEX
public static final ServiceState UPGRADING
public static final ServiceState UPGRADING_AUTO_FINALIZE
public static final ServiceState EXPRESS_UPGRADING
public static final ServiceState SUCCEEDED
public static final ServiceState CANCEL_UPGRADING
public static ServiceState[] values()
for (ServiceState c : ServiceState.values()) System.out.println(c);
public static ServiceState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static boolean isUpgrading(ServiceState state)
Copyright © 2024 Apache Software Foundation. All rights reserved.