Enum Class CommandTarget

java.lang.Object
java.lang.Enum<CommandTarget>
org.glassfish.config.support.CommandTarget
All Implemented Interfaces:
Serializable, Comparable<CommandTarget>, java.lang.constant.Constable, TargetValidator

public enum CommandTarget extends Enum<CommandTarget> implements TargetValidator
CommandTarget is an enumeration of valid configuration target for a command execution
  • Enum Constant Details

    • 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
  • Field Details

  • Method Details

    • values

      public static CommandTarget[] 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

      public static CommandTarget valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • isValid

      public boolean isValid(org.glassfish.hk2.api.ServiceLocator locator, 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 interface TargetValidator
      Parameters:
      locator - the habitat where to lookup all the target instances
      target - 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 interface TargetValidator
      Returns:
      a type description