Class ListCommandsCommand

  • All Implemented Interfaces:
    org.glassfish.hk2.api.PostConstruct

    @Service(name="list-commands")
    @PerLookup
    public class ListCommandsCommand
    extends CLICommand
    A local list-commands command.
    Author:
    bnevins, Bill Shannon
    • Constructor Detail

      • ListCommandsCommand

        public ListCommandsCommand()
    • Method Detail

      • validate

        protected void validate()
                         throws org.glassfish.api.admin.CommandException,
                                org.glassfish.api.admin.CommandValidationException
        Description copied from class: CLICommand
        The validate method can be used by a subclass to validate that the type and quantity of parameters and operands matches the requirements for this command.
        Overrides:
        validate in class CLICommand
        Throws:
        org.glassfish.api.admin.CommandException - if execution of the command fails
        org.glassfish.api.admin.CommandValidationException - if there's something wrong with the options or arguments
      • executeCommand

        public int executeCommand()
                           throws org.glassfish.api.admin.CommandException,
                                  org.glassfish.api.admin.CommandValidationException
        Description copied from class: CLICommand
        Execute the command using the options in options and the operands in operands.
        Specified by:
        executeCommand in class CLICommand
        Returns:
        the exit code
        Throws:
        org.glassfish.api.admin.CommandException - if execution of the command fails
        org.glassfish.api.admin.CommandValidationException - if there's something wrong with the options or arguments