Package jetbrains.buildServer.serverSide
Class BuildPromotionOrderInfo
- java.lang.Object
-
- jetbrains.buildServer.serverSide.BuildPromotionOrderInfo
-
- Direct Known Subclasses:
OrderedBuild
public class BuildPromotionOrderInfo extends Object
-
-
Constructor Summary
Constructors Constructor Description BuildPromotionOrderInfo(Long buildId, Long modificationId, Long chainModificationId, long startTimestamp, boolean incompleteBuild)
BuildPromotionOrderInfo(BuildPromotionEx promotion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareStartTime(BuildPromotionOrderInfo anotherBuild)
This method compares start time and build id of this ordered build and build passed as argument.int
compareTo(BuildPromotionOrderInfo anotherBuild)
Comparator works that oldest builds go first, newest added to the end.long
getBuildId()
Long
getChainModificationId()
Long
getModificationId()
long
getStartTimestamp()
boolean
isIncomplete()
boolean
isLaterThan(BuildPromotionOrderInfo anotherBuild)
-
-
-
Constructor Detail
-
BuildPromotionOrderInfo
public BuildPromotionOrderInfo(@Nullable Long buildId, Long modificationId, Long chainModificationId, long startTimestamp, boolean incompleteBuild)
-
BuildPromotionOrderInfo
public BuildPromotionOrderInfo(@NotNull BuildPromotionEx promotion)
-
-
Method Detail
-
getBuildId
public long getBuildId()
-
getModificationId
@Nullable public Long getModificationId()
-
getChainModificationId
@Nullable public Long getChainModificationId()
-
getStartTimestamp
public long getStartTimestamp()
-
isIncomplete
public boolean isIncomplete()
-
compareTo
public int compareTo(@NotNull BuildPromotionOrderInfo anotherBuild)
Comparator works that oldest builds go first, newest added to the end. Each build (with VCS roots) has a modification id - a maximum id of modifications related to the build configuration in the moment when the build starts. Recent builds have mod id greater than old ones (if new changes were detected in configuration). When 2 builds have same mod id, more recent build has a greater build id.
-
compareStartTime
public int compareStartTime(@NotNull BuildPromotionOrderInfo anotherBuild)
This method compares start time and build id of this ordered build and build passed as argument. Returns -1 if this build started before (older than) anotherBuild.- Parameters:
anotherBuild
-- Returns:
-
isLaterThan
public boolean isLaterThan(@NotNull BuildPromotionOrderInfo anotherBuild)
-
-