Class ServerCommandsExecutor
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.serverCommunication.ServerCommandsExecutor
-
public class ServerCommandsExecutor extends Object
-
-
Constructor Summary
Constructors Constructor Description ServerCommandsExecutor(EventDispatcher<AgentLifeCycleListener> agentDispatcher, PollingBasedServerCommandsHandlersRegistry serverCommandsRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Future<String>
executeAsync(jetbrains.buildServer.agent.impl.serverCommunication.ServerCommandsPoller.Command command)
Execute command asynchronously and returns it's result.void
setInterceptor(Action<jetbrains.buildServer.agent.impl.serverCommunication.ServerCommandsPoller.Command> beforeExecute)
protected String
testLocal(String filePath)
Read file and return it's content.
-
-
-
Constructor Detail
-
ServerCommandsExecutor
public ServerCommandsExecutor(@NotNull EventDispatcher<AgentLifeCycleListener> agentDispatcher, PollingBasedServerCommandsHandlersRegistry serverCommandsRegistry)
-
-
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
-
setInterceptor
@TestOnly public void setInterceptor(Action<jetbrains.buildServer.agent.impl.serverCommunication.ServerCommandsPoller.Command> beforeExecute)
-
-