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 AgentUpdateInfo
getAgentUpgradeInfo()
boolean
isReady()
boolean
shouldUpgrade(String agentVersion, String agentPluginsSignature)
void
updateInfo()
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:
getAgentUpgradeInfo
in interfaceAgentDistributionMonitor
-
shouldUpgrade
public boolean shouldUpgrade(@NotNull String agentVersion, @NotNull String agentPluginsSignature)
- Specified by:
shouldUpgrade
in interfaceAgentDistributionMonitor
-
updateInfo
public void updateInfo()
Description copied from interface:AgentDistributionMonitor
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- Specified by:
updateInfo
in interfaceAgentDistributionMonitor
-
isReady
public boolean isReady()
- Specified by:
isReady
in interfaceAgentDistributionMonitor
-
-