Package jetbrains.buildServer.serverSide
Interface BuildPromotionReplacement
-
- All Superinterfaces:
BuildPromotionReplacementLog
- All Known Implementing Classes:
BuildPromotionReplacementImpl
public interface BuildPromotionReplacement extends BuildPromotionReplacementLog
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceBuildPromotionReplacement.ReplacementStatistics-
Nested classes/interfaces inherited from interface jetbrains.buildServer.serverSide.impl.BuildPromotionReplacementLog
BuildPromotionReplacementLog.ReplacementReason
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<Long>getOriginalPromotionIds(long replacementId)LonggetReplacementId(long originalPromotionId)For a given promotion id returns id of another promotion which replaced the given one in build queue.BuildPromotionReplacement.ReplacementStatisticsgetStatistics()-
Methods inherited from interface jetbrains.buildServer.serverSide.impl.BuildPromotionReplacementLog
rememberReplacements
-
-
-
-
Method Detail
-
getReplacementId
@Nullable Long getReplacementId(long originalPromotionId)
For a given promotion id returns id of another promotion which replaced the given one in build queue.- Parameters:
originalPromotionId- id of queued build promotion- Returns:
- id of replacement or null if promotion was not replaced or information about replacement is not available anymore
-
getOriginalPromotionIds
@NotNull Collection<Long> getOriginalPromotionIds(long replacementId)
- Parameters:
replacementId- id of replacement promotion- Returns:
- collection of original promotion ids replaced by promotion with specified id
-
getStatistics
@NotNull BuildPromotionReplacement.ReplacementStatistics getStatistics()
- Returns:
- current replacement statistics
-
-