Package com.netflix.genie.common.dto
Enum ApplicationStatus
- java.lang.Object
-
- java.lang.Enum<ApplicationStatus>
-
- com.netflix.genie.common.dto.ApplicationStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ApplicationStatus>
public enum ApplicationStatus extends java.lang.Enum<ApplicationStatus>
The available statuses for applications.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVE
Application is active, and in-use.DEPRECATED
Application is deprecated, and will be made inactive in the future.INACTIVE
Application is inactive, and not in-use.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ApplicationStatus
parse(java.lang.String value)
Parse config status.static ApplicationStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ApplicationStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVE
public static final ApplicationStatus ACTIVE
Application is active, and in-use.
-
DEPRECATED
public static final ApplicationStatus DEPRECATED
Application is deprecated, and will be made inactive in the future.
-
INACTIVE
public static final ApplicationStatus INACTIVE
Application is inactive, and not in-use.
-
-
Method Detail
-
values
public static ApplicationStatus[] 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 (ApplicationStatus c : ApplicationStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ApplicationStatus valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
parse
public static ApplicationStatus parse(java.lang.String value) throws GeniePreconditionException
Parse config status.- Parameters:
value
- string to parse/convert into config status- Returns:
- ACTIVE, DEPRECATED, INACTIVE if match
- Throws:
GeniePreconditionException
- on invalid value
-
-