Class RunningBuildsCollectionImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.RunningBuildsCollectionImpl
-
- All Implemented Interfaces:
RunningBuildsCollection
public class RunningBuildsCollectionImpl extends Object implements RunningBuildsCollection
-
-
Field Summary
Fields Modifier and Type Field Description static String
CANCELED_NO_AGENT
static GenericQuery<RunningBuildData>
RUNNING_BUILD_SELECT_SINGLE_QUERY
static String
TEAMCITY_CHECK_FOR_NEW_RUNNING_BUILDS_PROP
-
Fields inherited from interface jetbrains.buildServer.serverSide.RunningBuildsCollection
TEAMCITY_RUNNING_BUILDS_UPDATE_DELAY, TEAMCITY_RUNNING_BUILDS_UPDATE_DELAY_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description RunningBuildsCollectionImpl(SQLRunnerEx SQLRunner, ServerResponsibilityEx serverResponsibility, EventDispatcher<BuildServerListener> eventDispatcher, ExecutorServices executorServices, BuildContext buildContext, BuildPromotionManager buildPromotionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRunningBuild(RunningBuildEx runningBuild)
RunningBuildEx
findRunningBuildById(long buildId)
Searches for a running build by specified build id.Collection<RunningBuildEx>
findRunningBuildsByIds(Collection<Long> buildIds)
Set<RunningBuildEx>
getBuildTypeRunningBuilds(SBuildType buildType)
RunningBuildEx
getRunningBuildOnAgent(SBuildAgent agent)
List<RunningBuildEx>
getRunningBuilds()
int
getSize()
Returns number of running buildsboolean
isRunningBuildsHaveTheSameBuildIdAndPromotionId()
void
removeRunningBuild(long buildId)
-
-
-
Field Detail
-
RUNNING_BUILD_SELECT_SINGLE_QUERY
public static final GenericQuery<RunningBuildData> RUNNING_BUILD_SELECT_SINGLE_QUERY
-
TEAMCITY_CHECK_FOR_NEW_RUNNING_BUILDS_PROP
public static final String TEAMCITY_CHECK_FOR_NEW_RUNNING_BUILDS_PROP
- See Also:
- Constant Field Values
-
CANCELED_NO_AGENT
public static final String CANCELED_NO_AGENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RunningBuildsCollectionImpl
public RunningBuildsCollectionImpl(@NotNull SQLRunnerEx SQLRunner, @NotNull ServerResponsibilityEx serverResponsibility, @NotNull EventDispatcher<BuildServerListener> eventDispatcher, @NotNull ExecutorServices executorServices, @NotNull BuildContext buildContext, @NotNull BuildPromotionManager buildPromotionManager)
-
-
Method Detail
-
findRunningBuildById
@Nullable public RunningBuildEx findRunningBuildById(long buildId)
Description copied from interface:RunningBuildsCollection
Searches for a running build by specified build id.- Specified by:
findRunningBuildById
in interfaceRunningBuildsCollection
- Parameters:
buildId
- id of the build- Returns:
- running build with specified build id or null if there are no running build with such build id.
-
getSize
public int getSize()
Description copied from interface:RunningBuildsCollection
Returns number of running builds- Specified by:
getSize
in interfaceRunningBuildsCollection
- Returns:
- number of running builds
-
findRunningBuildsByIds
@NotNull public Collection<RunningBuildEx> findRunningBuildsByIds(@NotNull Collection<Long> buildIds)
-
getRunningBuildOnAgent
@Nullable public RunningBuildEx getRunningBuildOnAgent(@NotNull SBuildAgent agent)
-
getBuildTypeRunningBuilds
@NotNull public Set<RunningBuildEx> getBuildTypeRunningBuilds(@NotNull SBuildType buildType)
-
getRunningBuilds
@NotNull public List<RunningBuildEx> getRunningBuilds()
- Specified by:
getRunningBuilds
in interfaceRunningBuildsCollection
-
addRunningBuild
public void addRunningBuild(@NotNull RunningBuildEx runningBuild)
-
removeRunningBuild
public void removeRunningBuild(long buildId)
-
isRunningBuildsHaveTheSameBuildIdAndPromotionId
public boolean isRunningBuildsHaveTheSameBuildIdAndPromotionId()
-
-