Class SystemCommand

    • Constructor Detail

      • SystemCommand

        public SystemCommand()
        Constructor for SystemCommand
      • SystemCommand

        public SystemCommand​(IProcessEnvironment processEnvironment)
        Constructor for SystemCommand
        Parameters:
        processEnvironment - the process environment
    • Method Detail

      • setShell

        public void setShell​(java.util.List<java.lang.String> shell)
        Set the shell
        Parameters:
        shell - the shell
      • add

        public void add​(java.lang.String command)
        Add an additional part of the command
        Parameters:
        command - the additional part of the command
      • add

        public void add​(java.lang.String command,
                        java.lang.String displayCommand)
        Add an additional part of the command
        Parameters:
        command - the additional part of the command
        displayCommand - the additional part of the command to display
      • setCommandList

        protected void setCommandList​(java.util.List<java.lang.String> commandList)
        Set the command list
        Parameters:
        commandList - the command list
      • setSystemCommandExecutionStatusResult

        public void setSystemCommandExecutionStatusResult​(ISystemCommand.SystemCommandExecutionStatusResult systemCommandExecutionStatusResult)
        Set the system command execution status result
        Parameters:
        systemCommandExecutionStatusResult - the system command execution status result
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • toString

        public java.lang.String toString​(boolean forDisplay)
        Description copied from interface: ISystemCommand
        The command as string
        Specified by:
        toString in interface ISystemCommand
        Parameters:
        forDisplay - true to prepare the arguments for display; otherwise false. This can be used to protect security relevant arguments e.g. java properties with a password
        Returns:
        the arguments as string
        See Also:
        ISystemCommand.toString(boolean)