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 CLUSTER
a cluster configuration changeCLUSTERED_INSTANCE
a clustered instance configuration changeCONFIG
a config configuration changeDAS
configuration change to default serverDEPLOYMENT_GROUP
a Deployment Group configuration changeDOMAIN
a domain wide configuration changeNODE
a node configuration changeSTANDALONE_INSTANCE
a standalone instance configuration change
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Returns a internalized aware string describing the target typeboolean
isValid(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 CommandTarget
valueOf(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
-
DEPLOYMENT_GROUP
public static final CommandTarget DEPLOYMENT_GROUP
a Deployment Group 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:TargetValidator
returns true if the passed target parameter value is a valid identifier of a target instance.- Specified by:
isValid
in 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:TargetValidator
Returns a internalized aware string describing the target type- Specified by:
getDescription
in interfaceTargetValidator
- Returns:
- a type description
-
-