Package org.glassfish.api.admin
Enum Class FailurePolicy
- All Implemented Interfaces:
Serializable
,Comparable<FailurePolicy>
,java.lang.constant.Constable
Defines the expected behaviour from the system when a supplemental command (could be a local or remote invocation)
fails to execute properly.
- Author:
- Jerome Dochez
-
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 ActionReport.ExitCode
static FailurePolicy
Returns the enum constant of this class with the specified name.static FailurePolicy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Ignore
Ignore the failure, do not report to the user. -
Warn
Warn the user of the failure, does not change the overall exit code of the command execution. -
Error
Return an error exit code to the user but do not rollback any successful invocations of the commands.
-
-
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
-
applyFailurePolicy
-