Package org.glassfish.config.support
Enum CommandTarget
- java.lang.Object
-
- java.lang.Enum<CommandTarget>
-
- org.glassfish.config.support.CommandTarget
-
- All Implemented Interfaces:
Serializable,Comparable<CommandTarget>,TargetValidator
public enum CommandTarget extends Enum<CommandTarget> implements TargetValidator
CommandTarget is an enumeration of valid configuration target for a command execution
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLUSTERa cluster configuration changeCLUSTERED_INSTANCEa clustered instance configuration changeCONFIGa config configuration changeDASconfiguration change to default serverDOMAINa domain wide configuration changeNODEa node configuration changeSTANDALONE_INSTANCEa standalone instance configuration change
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Returns a internalized aware string describing the target typebooleanisValid(org.glassfish.hk2.api.ServiceLocator habitat, String target)returns true if the passed target parameter value is a valid identifier of a target instance.static CommandTargetvalueOf(String name)Returns the enum constant of this type with the specified name.static CommandTarget[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOMAIN
public static final CommandTarget DOMAIN
a domain wide configuration change
-
DAS
public static final CommandTarget DAS
configuration change to default server
-
CLUSTERED_INSTANCE
public static final CommandTarget CLUSTERED_INSTANCE
a clustered instance configuration change
-
STANDALONE_INSTANCE
public static final CommandTarget STANDALONE_INSTANCE
a standalone instance configuration change
-
CONFIG
public static final CommandTarget CONFIG
a config configuration change
-
CLUSTER
public static final CommandTarget CLUSTER
a cluster configuration change
-
NODE
public static final CommandTarget NODE
a node configuration change
-
-
Method Detail
-
values
public static CommandTarget[] 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 (CommandTarget c : CommandTarget.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommandTarget valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isValid
public boolean isValid(org.glassfish.hk2.api.ServiceLocator habitat, String target)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:
habitat- 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
public String getDescription()
Description copied from interface:TargetValidatorReturns a internalized aware string describing the target type- Specified by:
getDescriptionin interfaceTargetValidator- Returns:
- a type description
-
-