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 boolean
changesCanBeCached()
String
getId()
Should return a unique id of the processor.Integer
getLimit()
long
getLowerBound()
boolean
processAttachedModification(SVcsModification vcsModification)
Processes a single SVcsModification.boolean
processModification(SVcsModification vcsModification)
This method is called for every SVcsModification visited during the changes collection process.boolean
processUnloadedModification(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:VcsModificationProcessor
Should return a unique id of the processor. It is used as a key for caching calculated modifications.- Specified by:
getId
in classVcsModificationProcessor
- Returns:
- see above
-
getLimit
@Nullable public Integer getLimit()
- Specified by:
getLimit
in 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:VcsModificationProcessor
Processes a single SVcsModification. This method is called only for changes attached to a build configuration where the changes calculation is performed.- Specified by:
processAttachedModification
in 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:VcsModificationProcessor
This method is called for every SVcsModification visited during the changes collection process.- Overrides:
processModification
in 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:VcsModificationProcessor
This 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:
processUnloadedModification
in 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:
changesCanBeCached
in 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
-
-