jetbrains.buildServer.serverSide.buildDistribution
Interface AgentsFilterContext


public interface AgentsFilterContext

Starting build agents filter context. Contains information which might be required to filter agents of the starting build.

Since:
6.0

Method Summary
 java.util.Collection<SBuildAgent> getAgentsForStartingBuild()
          Returns agents available for the starting build.
 java.util.Map<QueuedBuildInfo,SBuildAgent> getDistributedBuilds()
          Returns map of the builds already distributed by agents.
 BuildDistributorInput getDistributorInput()
          Returns agent distributor input (running builds, queue, agents and so on).
 QueuedBuildInfo getStartingBuild()
          The build which is going to start, i.e.
 boolean isEmulationMode()
          Returns true if the filter is called in the emulation mode.
 

Method Detail

getStartingBuild

@NotNull
QueuedBuildInfo getStartingBuild()
The build which is going to start, i.e. the build for which the agents are being filtered.

Returns:
see above

getAgentsForStartingBuild

@NotNull
java.util.Collection<SBuildAgent> getAgentsForStartingBuild()
Returns agents available for the starting build.

Returns:
see above

getDistributedBuilds

@NotNull
java.util.Map<QueuedBuildInfo,SBuildAgent> getDistributedBuilds()
Returns map of the builds already distributed by agents. This map cannot be edited.

Returns:
see above

getDistributorInput

@NotNull
BuildDistributorInput getDistributorInput()
Returns agent distributor input (running builds, queue, agents and so on).

Returns:
see above

isEmulationMode

boolean isEmulationMode()
Returns true if the filter is called in the emulation mode. Emulation mode is used to compute estimates, not to start builds.

Returns:
see above