Interface ISystemCommandExecuterBuilder

    • Method Detail

      • shell

        ISystemCommandExecuterBuilder shell​(java.lang.String... shell)
        Set the shell of the current command
        Parameters:
        shell - the shell
        Returns:
        the system command executer builder
      • user

        ISystemCommandExecuterBuilder user​(java.lang.String user)
        Set the user of the current command
        Parameters:
        user - the user
        Returns:
        the system command executer builder
      • workingPath

        ISystemCommandExecuterBuilder workingPath​(java.lang.String workingPath)
        Set the working path of the current command
        Parameters:
        workingPath - the workingPath
        Returns:
        the system command executer builder
      • environmentVariable

        ISystemCommandExecuterBuilder environmentVariable​(java.lang.String key,
                                                          java.lang.String value)
        Add an environment variable
        Parameters:
        key - the key
        value - the value
        Returns:
        the system command executer builder
      • lock

        ISystemCommandExecuterBuilder lock()
        Lock the current system command group list (default timeout).
        Returns:
        the system command executer builder
      • lock

        ISystemCommandExecuterBuilder lock​(java.lang.Integer lockTimeoutInSeconds)
        Lock the current system command group list.
        Parameters:
        lockTimeoutInSeconds - the period in seconds
        Returns:
        the system command executer builder