Class CommandChain

    • Field Detail

      • workingDirectory

        protected File workingDirectory
      • maxOutputLine

        protected int maxOutputLine
      • executionTimeout

        protected long executionTimeout
      • commandOutputEncoding

        protected String commandOutputEncoding
      • updateCommand

        protected String[] updateCommand
      • deleteCommand

        protected String[] deleteCommand
      • targetUsers

        protected String[] targetUsers
    • Constructor Detail

      • CommandChain

        public CommandChain()
    • Method Detail

      • isTargetUser

        protected boolean isTargetUser​(String username)
      • executeCommand

        protected int executeCommand​(String[] commands,
                                     String username,
                                     String password)
      • setWorkingDirectory

        public void setWorkingDirectory​(File workingDirectory)
      • setMaxOutputLine

        public void setMaxOutputLine​(int maxOutputLine)
      • setExecutionTimeout

        public void setExecutionTimeout​(long executionTimeout)
      • setCommandOutputEncoding

        public void setCommandOutputEncoding​(String commandOutputEncoding)
      • setUpdateCommand

        public void setUpdateCommand​(String[] updateCommand)
      • setDeleteCommand

        public void setDeleteCommand​(String[] deleteCommand)
      • setTargetUsers

        public void setTargetUsers​(String[] targetUsers)