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 DistributionDecision
distributeBuild(QueuedBuildInfo queuedBuild, VirtualAgent agent)
Will be called by distributor for an accepted queued build if no WaitReasons set for the QueuedBuildvoid
fetchPropertiesIfNotKnown()
boolean
startNewAgent(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:BuildStarter
Will be called by distributor for an accepted queued build if no WaitReasons set for the QueuedBuild- Specified by:
distributeBuild
in interfaceBuildStarter<VirtualAgent>
- Returns:
- DistributionDecision for this queued build
-
startNewAgent
public boolean startNewAgent(@NotNull QueuedBuildEx build, @NotNull VirtualAgent agent)
-
fetchPropertiesIfNotKnown
public void fetchPropertiesIfNotKnown()
-
-