Class ServerCommandsPoller
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.serverCommunication.ServerCommandsPoller
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ServerCommandsPoller.OnExit
-
Field Summary
Fields Modifier and Type Field Description static String
DELAY_AFTER_COMMAND_RECEIVED
static String
DELAY_AFTER_FAILED_COMMAND_CONFIRMATION_REQUEST
static String
DELAY_AFTER_NO_COMMAND
static String
LONG_COMMAND_PROGRESS_INTERVAL
-
Constructor Summary
Constructors Constructor Description ServerCommandsPoller(BuildAgentConfiguration configuration, ServerCommandsExecutor serverCommandsExecutor, HttpApi serverApi, EventDispatcher<AgentLifeCycleListener> agentDispatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
void
start(String sessionId, BuildAgentImpl agent, ServerCommandsPoller.OnExit onExit)
-
-
-
Field Detail
-
DELAY_AFTER_NO_COMMAND
public static final String DELAY_AFTER_NO_COMMAND
- See Also:
- Constant Field Values
-
DELAY_AFTER_COMMAND_RECEIVED
public static final String DELAY_AFTER_COMMAND_RECEIVED
- See Also:
- Constant Field Values
-
DELAY_AFTER_FAILED_COMMAND_CONFIRMATION_REQUEST
public static final String DELAY_AFTER_FAILED_COMMAND_CONFIRMATION_REQUEST
- See Also:
- Constant Field Values
-
LONG_COMMAND_PROGRESS_INTERVAL
public static final String LONG_COMMAND_PROGRESS_INTERVAL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ServerCommandsPoller
public ServerCommandsPoller(@NotNull BuildAgentConfiguration configuration, @NotNull ServerCommandsExecutor serverCommandsExecutor, @NotNull HttpApi serverApi, @NotNull EventDispatcher<AgentLifeCycleListener> agentDispatcher)
-
-
Method Detail
-
start
public void start(@NotNull String sessionId, BuildAgentImpl agent, ServerCommandsPoller.OnExit onExit)
-
run
public void run()
-
-