Class AgentDistributionMonitorImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.agent.AgentDistributionMonitorImpl
-
- All Implemented Interfaces:
AgentDistributionMonitor
public class AgentDistributionMonitorImpl extends Object implements AgentDistributionMonitor
- Author:
- Kir
-
-
Field Summary
Fields Modifier and Type Field Description static Set<String>myUnknownVersions
-
Constructor Summary
Constructors Constructor Description AgentDistributionMonitorImpl(AgentUpdateInfoProvider updateInfoFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentUpdateInfogetAgentUpgradeInfo()booleanisReady()booleanshouldUpgrade(String agentVersion, String agentPluginsSignature)voidupdateInfo()Since by default update of agent info on server-side happens every N seconds by schedule we don't guarantee that agents will immediately see new loaded plugin after load So one can use this method after loading plugins for force updating info from current plugins state
-
-
-
Constructor Detail
-
AgentDistributionMonitorImpl
public AgentDistributionMonitorImpl(@NotNull AgentUpdateInfoProvider updateInfoFactory)
-
-
Method Detail
-
getAgentUpgradeInfo
@NotNull public AgentUpdateInfo getAgentUpgradeInfo()
- Specified by:
getAgentUpgradeInfoin interfaceAgentDistributionMonitor
-
shouldUpgrade
public boolean shouldUpgrade(@NotNull String agentVersion, @NotNull String agentPluginsSignature)- Specified by:
shouldUpgradein interfaceAgentDistributionMonitor
-
updateInfo
public void updateInfo()
Description copied from interface:AgentDistributionMonitorSince by default update of agent info on server-side happens every N seconds by schedule we don't guarantee that agents will immediately see new loaded plugin after load So one can use this method after loading plugins for force updating info from current plugins state- Specified by:
updateInfoin interfaceAgentDistributionMonitor
-
isReady
public boolean isReady()
- Specified by:
isReadyin interfaceAgentDistributionMonitor
-
-