Class BuildAgentUpgrader
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.BuildAgentUpgrader
-
- All Implemented Interfaces:
AgentDistributionMonitorAware
,BuildAgentDistributionMonitorAware
public class BuildAgentUpgrader extends Object implements BuildAgentDistributionMonitorAware
User: kir This class manages the process of build agent upgrade
-
-
Constructor Summary
Constructors Constructor Description BuildAgentUpgrader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkUpgradeRequired(BuildAgentEx agent)
void
disableUpgrade()
void
enableUpgrade()
Map<SBuildAgent,Integer>
getCurrentAgentsUpgradeTimes(int minUpgradeTimes)
Returns map of agents having the specified minimum number of upgrade commands sent to them.boolean
scheduleUpgradeIfNecessary(BuildAgentEx agent)
void
setAgentDistributionMonitor(AgentDistributionMonitor agentDistributionMonitor)
void
setAgentManager(BuildAgentManager agentManager)
-
-
-
Method Detail
-
setAgentDistributionMonitor
public void setAgentDistributionMonitor(@NotNull AgentDistributionMonitor agentDistributionMonitor)
- Specified by:
setAgentDistributionMonitor
in interfaceAgentDistributionMonitorAware
-
setAgentManager
public void setAgentManager(@NotNull BuildAgentManager agentManager)
-
disableUpgrade
public void disableUpgrade()
-
enableUpgrade
public void enableUpgrade()
-
checkUpgradeRequired
protected boolean checkUpgradeRequired(@NotNull BuildAgentEx agent)
-
scheduleUpgradeIfNecessary
public boolean scheduleUpgradeIfNecessary(@NotNull BuildAgentEx agent)
- Returns:
- true if agent upgrade is required and agent upgrade command was scheduled.
-
getCurrentAgentsUpgradeTimes
@NotNull public Map<SBuildAgent,Integer> getCurrentAgentsUpgradeTimes(int minUpgradeTimes)
Returns map of agents having the specified minimum number of upgrade commands sent to them.- Returns:
-
-