Class VirtualAgentBuildStarter
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.VirtualAgentBuildStarter
-
- All Implemented Interfaces:
BuildStarter<VirtualAgent>
public class VirtualAgentBuildStarter extends Object implements BuildStarter<VirtualAgent>
- Author:
- Eugene Petrenko Created: 21.09.2009 13:06:41
-
-
Field Summary
-
Fields inherited from interface jetbrains.buildServer.serverSide.impl.buildDistribution.BuildStarter
NO_OP
-
-
Constructor Summary
Constructors Constructor Description VirtualAgentBuildStarter(VirtualAgentsManager virualAgents, Integer maxNumberOfAgentsToStart)VirtualAgentBuildStarter(VirtualAgentsManager virualAgents, Integer maxNumberOfAgentsToStart, ExtensionsProvider extensionsProvider, AgentParametersProvidersProcessor agentParametersProvidersProcessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DistributionDecisiondistributeBuild(QueuedBuildInfo queuedBuild, VirtualAgent agent)Will be called by distributor for an accepted queued build if no WaitReasons set for the QueuedBuildvoidfetchPropertiesIfNotKnown()booleanstartNewAgent(QueuedBuildEx build, VirtualAgent agent)
-
-
-
Constructor Detail
-
VirtualAgentBuildStarter
public VirtualAgentBuildStarter(@NotNull VirtualAgentsManager virualAgents, @Nullable Integer maxNumberOfAgentsToStart)
-
VirtualAgentBuildStarter
public VirtualAgentBuildStarter(@NotNull VirtualAgentsManager virualAgents, @Nullable Integer maxNumberOfAgentsToStart, @Nullable ExtensionsProvider extensionsProvider, @Nullable AgentParametersProvidersProcessor agentParametersProvidersProcessor)
-
-
Method Detail
-
distributeBuild
@NotNull public DistributionDecision distributeBuild(@NotNull QueuedBuildInfo queuedBuild, @NotNull VirtualAgent agent)
Description copied from interface:BuildStarterWill be called by distributor for an accepted queued build if no WaitReasons set for the QueuedBuild- Specified by:
distributeBuildin interfaceBuildStarter<VirtualAgent>- Returns:
- DistributionDecision for this queued build
-
startNewAgent
public boolean startNewAgent(@NotNull QueuedBuildEx build, @NotNull VirtualAgent agent)
-
fetchPropertiesIfNotKnown
public void fetchPropertiesIfNotKnown()
-
-