Class ServerCommandsExecutor


  • public class ServerCommandsExecutor
    extends Object
    • Method Detail

      • executeAsync

        public Future<String> executeAsync​(jetbrains.buildServer.agent.impl.serverCommunication.ServerCommandsPoller.Command command)
        Execute command asynchronously and returns it's result.
        Throws:
        jetbrains.buildServer.agent.impl.serverCommunication.ServerCommandsExecutor.NotSupportedCommandException - will be thrown by Future#get if command is not recognized
      • testLocal

        @NotNull
        protected String testLocal​(String filePath)
        Read file and return it's content.
      • setInterceptor

        @TestOnly
        public void setInterceptor​(Action<jetbrains.buildServer.agent.impl.serverCommunication.ServerCommandsPoller.Command> beforeExecute)