Package jetbrains.buildServer.serverSide
Class LowerBoundModificationProcessor
- java.lang.Object
-
- jetbrains.buildServer.serverSide.VcsModificationProcessor
-
- jetbrains.buildServer.serverSide.LowerBoundModificationProcessor
-
public class LowerBoundModificationProcessor extends VcsModificationProcessor
Processor which returns true only for modifications with id strictly greater than its lower bound.
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.serverSide.VcsModificationProcessor
ACCEPT_ALL
-
-
Constructor Summary
Constructors Constructor Description LowerBoundModificationProcessor(long lowerBound)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanchangesCanBeCached()StringgetId()Should return a unique id of the processor.IntegergetLimit()longgetLowerBound()booleanprocessAttachedModification(SVcsModification vcsModification)Processes a single SVcsModification.booleanprocessModification(SVcsModification vcsModification)This method is called for every SVcsModification visited during the changes collection process.booleanprocessUnloadedModification(long modId, long vcsRootId)This method is called when we've reached a VCS modification which is not loaded into the in-memory cache.-
Methods inherited from class jetbrains.buildServer.serverSide.VcsModificationProcessor
filterOrderedModifications, isSuitableFor
-
-
-
-
Method Detail
-
getId
@NotNull public String getId()
Description copied from class:VcsModificationProcessorShould return a unique id of the processor. It is used as a key for caching calculated modifications.- Specified by:
getIdin classVcsModificationProcessor- Returns:
- see above
-
getLimit
@Nullable public Integer getLimit()
- Specified by:
getLimitin classVcsModificationProcessor- Returns:
- the limit for changes this processor uses or null if processor doesn't limit changes or doesn't limit them by the amount (e.g. limit by date).
-
processAttachedModification
public boolean processAttachedModification(@NotNull SVcsModification vcsModification)Description copied from class:VcsModificationProcessorProcesses a single SVcsModification. This method is called only for changes attached to a build configuration where the changes calculation is performed.- Specified by:
processAttachedModificationin classVcsModificationProcessor- Parameters:
vcsModification- VCS modification to process.- Returns:
- false if no further processing needed.
-
processModification
public boolean processModification(@NotNull SVcsModification vcsModification)Description copied from class:VcsModificationProcessorThis method is called for every SVcsModification visited during the changes collection process.- Overrides:
processModificationin classVcsModificationProcessor- Parameters:
vcsModification- visited VCS modification- Returns:
- false if no further processing needed.
-
processUnloadedModification
public boolean processUnloadedModification(long modId, long vcsRootId)Description copied from class:VcsModificationProcessorThis method is called when we've reached a VCS modification which is not loaded into the in-memory cache. For instance, this can happen if the VCS modification is too old and was already unloaded from memory.- Overrides:
processUnloadedModificationin classVcsModificationProcessor- Parameters:
modId- id of the unloaded modificationvcsRootId- id of the VCS root instance- Returns:
- true if processing should be continued and false otherwise
-
getLowerBound
public long getLowerBound()
-
changesCanBeCached
public boolean changesCanBeCached()
- Overrides:
changesCanBeCachedin classVcsModificationProcessor- Returns:
- true if changes calculated with help of this processor can be cached and false otherwise Note: if false is returned by this method then existing cached changes won't be used when changes are computed with help of this processor
-
-