jetbrains.buildServer.serverSide.buildDistribution
Interface BuildConfigurationInfo


public interface BuildConfigurationInfo

Represents build configuration specific information for the build distribution algorithm

Since:
4.5

Method Summary
 long getBuildDuration(BuildAgent agent)
          Returns estimated duration of a build on the specified agent.
 java.lang.String getId()
          Returns build configuration id
 int getMaximumNumberOfBuilds()
           
 

Method Detail

getId

@NotNull
java.lang.String getId()
Returns build configuration id

Returns:
see above

getMaximumNumberOfBuilds

int getMaximumNumberOfBuilds()
Returns:
see BuildTypeDescriptor#getMaximumNumberOfBuilds()

getBuildDuration

long getBuildDuration(@NotNull
                      BuildAgent agent)
Returns estimated duration of a build on the specified agent.

Parameters:
agent - build agent.
Returns:
Estimated time in milliseconds. -1 if an estimate cannot be calculated for some reason (e.g. lack of statistics).