Package com.codingchili.core.context
Enum Class LauncherCommandResult
- All Implemented Interfaces:
CommandResult
,Serializable
,Comparable<LauncherCommandResult>
,Constable
Results returned from an #
Command
when it is
executed by a #CommandExecutor
.
If the command fails and wants to display the error message
(stacktrace) that generated the failure, then the future
passed from the #CommandExecutor
should be failed,
with the exception.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates that the command has executed successfully and that the #Launcher
should continue processing any deployment blocks.Indicates that the command has executed successfully and that the system should shut down.Indicates that the command has executed successfully and that the command is to handle deployment. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
static LauncherCommandResult
Returns the enum constant of this class with the specified name.static LauncherCommandResult[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SHUTDOWN
Indicates that the command has executed successfully and that the system should shut down. -
CONTINUE
Indicates that the command has executed successfully and that the #Launcher
should continue processing any deployment blocks. -
STARTED
Indicates that the command has executed successfully and that the command is to handle deployment. The #Launcher
should not process any deployment blocks.
-
-
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
-
getName
- Specified by:
getName
in interfaceCommandResult
- Returns:
- the name of the result as a string.
-