Package com.streambase.sb
Enum Class Constants.ContainerState
- All Implemented Interfaces:
Serializable
,Comparable<Constants.ContainerState>
,Constable
- Enclosing interface:
- Constants
status of a container sent on the control stream as container events
- Since:
- 5.1
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Constants.ContainerState
decode
(int value) Decode an int value into the proper ContainerStatusstatic Constants.ContainerState
Decode a String value into the proper Container statusint
toInt()
get the integer value of this statusstatic Constants.ContainerState
Returns the enum constant of this class with the specified name.static Constants.ContainerState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STARTING
Container starting -
START
Container started -
STOPPING
Container stopping -
STOPPED
Container stopped
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
toInt
public int toInt()get the integer value of this status- Returns:
- integer value of status
- Since:
- 5.1
-
decode
Decode an int value into the proper ContainerStatus- Parameters:
value
- value to decode- Returns:
- proper ContainerStatus
- Throws:
StreamBaseException
- for an unknown ContainerStatus- Since:
- 5.1
-
decode
Decode a String value into the proper Container status- Parameters:
value
- value to decode- Returns:
- proper ContainerStatus
- Throws:
StreamBaseException
- for an unknown Container status- Since:
- 5.1
-