Class RemoteCLICommand

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

    public class RemoteCLICommand
    extends CLICommand
    A remote command handled by the asadmin CLI.
    • Field Detail

      • reExecutedOptions

        protected ParameterMap reExecutedOptions
      • reExecutedOperands

        protected List<String> reExecutedOperands
    • Constructor Detail

      • RemoteCLICommand

        public RemoteCLICommand()
                         throws CommandException
        Construct a new remote command object. The command and arguments are supplied later using the execute method in the superclass.
        Throws:
        CommandException
      • RemoteCLICommand

        public RemoteCLICommand​(String name,
                                ProgramOptions po,
                                Environment env)
                         throws CommandException
        Construct a new remote command object. The command and arguments are supplied later using the execute method in the superclass.
        Parameters:
        name - The command to execute
        po - Parameters passed with the command, both those part of the command itself (i.e. enabled) and those that are inherited for all commands (i.e. adminport)
        env - The environment that is executing the command
        Throws:
        CommandException - if the command failed for any reason
      • RemoteCLICommand

        public RemoteCLICommand​(String name,
                                ProgramOptions po,
                                Environment env,
                                String responseFormatType,
                                OutputStream userOut)
                         throws CommandException
        Construct a new remote command object. The command and arguments are supplied later using the execute method in the superclass. This variant is used by the RemoteDeploymentFacility class to control and capture the output.
        Parameters:
        name - The command to execute
        po - Parameters passed with the command, both those part of the command itself (i.e. enabled) and those that are inherited for all commands (i.e. adminport)
        env - The environment that is executing the command
        responseFormatType -
        userOut - The OutputStream that is used to display any output to the user
        Throws:
        CommandException - if the command failed for any reason