Package org.glassfish.config.support
Enum Class CommandTarget
- All Implemented Interfaces:
Serializable,Comparable<CommandTarget>,Constable,TargetValidator
CommandTarget is an enumeration of valid configuration target for a command execution
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptiona cluster configuration changea clustered instance configuration changea config configuration changeconfiguration change to default servera domain wide configuration changea node configuration changea standalone instance configuration change -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns a internalized aware string describing the target typebooleanreturns true if the passed target parameter value is a valid identifier of a target instance.static CommandTargetReturns the enum constant of this class with the specified name.static CommandTarget[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DOMAIN
a domain wide configuration change -
DAS
configuration change to default server -
CLUSTERED_INSTANCE
a clustered instance configuration change -
STANDALONE_INSTANCE
a standalone instance configuration change -
CONFIG
a config configuration change -
CLUSTER
a cluster configuration change -
NODE
a node configuration change
-
-
Field Details
-
TARGET_DOMAIN
- See Also:
-
TARGET_SERVER
- See Also:
-
-
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
-
isValid
Description copied from interface:TargetValidatorreturns true if the passed target parameter value is a valid identifier of a target instance.- Specified by:
isValidin interfaceTargetValidator- Parameters:
locator- the habitat where to lookup all the target instancestarget- the target identifier to check- Returns:
- true if target is a valid identifier of a target instance
-
getDescription
Description copied from interface:TargetValidatorReturns a internalized aware string describing the target type- Specified by:
getDescriptionin interfaceTargetValidator- Returns:
- a type description
-