Interface AgentCommandsExecutor
-
- All Known Implementing Classes:
MultiNodeAgentCommandsExecutor,SingleNodeAgentCommandsExecutor
public interface AgentCommandsExecutor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddispose()voiddone(String result, int commandId)StringexecuteCommandAndWait(PollingRemoteAgentConnection.Command command)voidfailed(Error error, int commandId)PollingRemoteAgentConnection.CommandgetNextCommand()booleanhasActiveSubscriptions(long subscriptionTimeout)voidinProgress(int commandId)voidscheduleCommand(PollingRemoteAgentConnection.Command command, jetbrains.buildServer.serverSide.impl.agent.PollingRemoteAgentConnection.Callback callback)com.google.common.util.concurrent.ListenableFuture<PollingRemoteAgentConnection.Command>subscribeToNextCommand()voidunsubscribeFromNextCommand(com.google.common.util.concurrent.ListenableFuture<PollingRemoteAgentConnection.Command> future)
-
-
-
Method Detail
-
scheduleCommand
void scheduleCommand(@NotNull PollingRemoteAgentConnection.Command command, @NotNull jetbrains.buildServer.serverSide.impl.agent.PollingRemoteAgentConnection.Callback callback) throws RejectedExecutionException- Throws:
RejectedExecutionException
-
executeCommandAndWait
String executeCommandAndWait(@NotNull PollingRemoteAgentConnection.Command command) throws AgentCommandExecutionException, AgentTimeoutException, InterruptedException
-
subscribeToNextCommand
@NotNull com.google.common.util.concurrent.ListenableFuture<PollingRemoteAgentConnection.Command> subscribeToNextCommand()
-
unsubscribeFromNextCommand
void unsubscribeFromNextCommand(@NotNull com.google.common.util.concurrent.ListenableFuture<PollingRemoteAgentConnection.Command> future)
-
getNextCommand
@Nullable PollingRemoteAgentConnection.Command getNextCommand()
-
done
void done(@NotNull String result, int commandId)
-
inProgress
void inProgress(int commandId)
-
failed
void failed(@NotNull Error error, int commandId)
-
hasActiveSubscriptions
boolean hasActiveSubscriptions(long subscriptionTimeout)
-
dispose
void dispose()
-
-