Package jetbrains.buildServer.agent
Interface AgentIdleTasks
-
public interface AgentIdleTasks
Maintains a collection of tasks which should be executed when agent becomes idle, i.e. it does not run any builds.- Since:
- 9.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
AgentIdleTasks.Task
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addRecurringTask(AgentIdleTasks.Task task)
Adds new task which should be executed periodically when agent becomes idle.AgentIdleTasks.Task
removeRecurringTask(java.lang.String taskName)
Removes task with given name.
-
-
-
Method Detail
-
addRecurringTask
void addRecurringTask(@NotNull AgentIdleTasks.Task task)
Adds new task which should be executed periodically when agent becomes idle. If there is another task with the same name, it will be replaced with new task.- Parameters:
task
- the task to execute
-
removeRecurringTask
@Nullable AgentIdleTasks.Task removeRecurringTask(@NotNull java.lang.String taskName)
Removes task with given name.- Parameters:
taskName
- name of the task- Returns:
- removed task or null
-
-