Package jetbrains.buildServer.vcs.impl
Class BuildTypeModifications
- java.lang.Object
-
- jetbrains.buildServer.vcs.impl.BuildTypeModifications
-
public class BuildTypeModifications extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BuildTypeModifications.ChangesRange
-
Field Summary
Fields Modifier and Type Field Description static String
MODIFICATIONS_INTERVAL_MAX_RANGE
static String
PROCESS_EXPIRED_MODIFICATIONS_PAGE_SIZE
-
Constructor Summary
Constructors Constructor Description BuildTypeModifications(String buildTypeId, ProjectManager projectManager, VcsModificationsStorage vcsModificationsStorage, BuildTypeVcsRoots buildTypeVcsRoots, List<BuildTypeModifications.ChangesRange> modificationsIntervals)
BuildTypeModifications(SBuildType buildType, ProjectManager projectManager, VcsModificationsStorage vcsModificationsStorage, BuildTypeVcsRoots buildTypeVcsRoots, List<BuildTypeModifications.ChangesRange> modificationsIntervals)
-
Method Summary
-
-
-
Field Detail
-
PROCESS_EXPIRED_MODIFICATIONS_PAGE_SIZE
public static final String PROCESS_EXPIRED_MODIFICATIONS_PAGE_SIZE
- See Also:
- Constant Field Values
-
MODIFICATIONS_INTERVAL_MAX_RANGE
public static final String MODIFICATIONS_INTERVAL_MAX_RANGE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BuildTypeModifications
public BuildTypeModifications(@NotNull SBuildType buildType, @NotNull ProjectManager projectManager, @NotNull VcsModificationsStorage vcsModificationsStorage, @NotNull BuildTypeVcsRoots buildTypeVcsRoots, @Nullable List<BuildTypeModifications.ChangesRange> modificationsIntervals)
-
BuildTypeModifications
public BuildTypeModifications(@NotNull String buildTypeId, @NotNull ProjectManager projectManager, @NotNull VcsModificationsStorage vcsModificationsStorage, @NotNull BuildTypeVcsRoots buildTypeVcsRoots, @Nullable List<BuildTypeModifications.ChangesRange> modificationsIntervals)
-
-
Method Detail
-
clearCache
public void clearCache()
-
changesUnloaded
public boolean changesUnloaded(@NotNull List<SVcsModification> changes)
-
getFixedModificationsCount
@NotNull public List<SVcsModification> getFixedModificationsCount(@Nullable Long maxModificationId, int count)
-
getModifications
@NotNull public List<SVcsModification> getModifications(@Nullable Long fromModificationId, @Nullable Long toModificationId)
-
processModifications
public void processModifications(@NotNull Predicate<VcsRootInstance> vcsRootsFilter, @NotNull ItemProcessor<SVcsModification> processor, @NotNull Interval interval, @Nullable Date minRegistrationDate, int expiredCommitsMaxNum, RelationType... relationTypes)
Processes modifications in the order from the most recent to oldest. Starts with a modification with specified id.- Parameters:
vcsRootsFilter
- filter for VCS root instances, only changes from VCS roots matched by this filter will be passed to processorprocessor
- processor, if returns false, then processing is stoppedrelationTypes
- if specified then only changes with given relation are sent to the processorexpiredCommitsMaxNum
- max number of the expired commits to process, set to 0 to disable expired commits lookup
-
setIntervals
public void setIntervals(@NotNull List<BuildTypeModifications.ChangesRange> intervals, long maxProcessedModId)
-
addToCache
public void addToCache(@NotNull SVcsModification modification)
-
getLastModification
@Nullable public SVcsModification getLastModification()
-
getIntervalsCount
public int getIntervalsCount()
-
computeIntervals
@NotNull public static Map<SBuildType,List<BuildTypeModifications.ChangesRange>> computeIntervals(@NotNull VcsModificationsStorage vcsModificationsStorage, @NotNull BuildTypeVcsRoots buildTypeVcsRoots, @NotNull Collection<SBuildType> buildTypes)
-
-