Class BaseLowLevelMutingService<T>
- java.lang.Object
-
- jetbrains.buildServer.serverSide.mute.BaseLowLevelMutingService<T>
-
- Direct Known Subclasses:
LowLevelBuildProblemMutingService,LowLevelTestMutingService
public abstract class BaseLowLevelMutingService<T> extends Object
User: Victory.Bedrosova Date: 11/27/12 Time: 2:53 PM- Since:
- 8.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBaseLowLevelMutingService.AbstractMutesConsumer<T>static interfaceBaseLowLevelMutingService.MutesConsumer<T>
-
Field Summary
Fields Modifier and Type Field Description protected ProjectManagermyProjectManager
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseLowLevelMutingService(DBFunctionsProvider DB, ProjectManager projectManager)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddBuildTypesToTT(DBFunctions dbf, Collection<String> buildTypeIds)protected voidaddProjectsToTT(DBFunctions dbf, Collection<String> projectIds)protected abstract voiddoAddProblemsToTT(DBFunctions dbf, Collection<T> problemIds)protected abstract voiddoMuteProblems(DBFunctions dbf, Integer muteId)protected abstract voiddoMuteProblemsInBuild(DBFunctions dbf, Integer muteId, Long buildId, Collection<T> problemIds)protected abstract voiddoMuteProblemsInBuildTypes(DBFunctions dbf, Integer muteId, Collection<String> buildTypeIds, Collection<T> problemIds, boolean removePreviousMutes)protected abstract voiddoMuteProblemsInProject(DBFunctions dbf, Integer muteId, String projectId, Collection<String> projectIdsToUnmute, Collection<String> buildTypeIdsToUnmute, Collection<T> problemIds)protected abstract voiddoUnmuteProblems(DBFunctions dbf, Long buildId, Collection<T> problemIds)protected abstract voiddoUnmuteProblems(DBFunctions dbf, Collection<Integer> muteIds)protected abstract voiddoUnmuteProblemsInProjectsAndBuildTypes(DBFunctions dbf, Collection<String> projectIds, Collection<String> buildTypeIds, Collection<T> problemIds)protected abstract Map<T,Integer>getAllMutes(DBFunctions dbf, String buildTypeId)Collection<T>getMutedProblems(Integer muteId)protected abstract Collection<T>getMutedProblems(DBFunctions dbf, Integer muteId)IntegergetMuteId(List<String> projectPathIds, String buildTypeId, T problemId)protected voidinvalidateMPLCacheFor(Set<String> projectIds, Collection<String> buildTypes)voidmuteProblemsInBuildExistingMute(Integer muteId, Long buildId, Collection<T> problemIds)voidmuteProblemsInBuildNewMute(Integer muteId, Long buildId, Collection<T> problemIds)voidmuteProblemsInBuildTypes(Integer muteId, String projId, Collection<String> buildTypeIds, Collection<T> problemIds, boolean removePreviousMutes)voidmuteProblemsInProject(Integer muteId, String projId, Set<String> projectIdsToUnmute, Collection<String> buildTypeIdsToUnmute, Collection<T> problemIds)voidresetMutedProblemsCache()voidretrieveCurrentMutes(Set<String> projectIds, Set<String> buildTypeIds, BaseLowLevelMutingService.MutesConsumer<T> consumer)Retrieves all current mutes for the specified project and build types (normally build types are from the specified project)protected abstract voidretrieveCurrentMutes(DBFunctions dbf, Set<String> projectIds, Set<String> buildTypeIds, BaseLowLevelMutingService.MutesConsumer<T> consumer)protected abstract voidretrieveCurrentMutes(DBFunctions dbf, T problemId, BaseLowLevelMutingService.MutesConsumer<T> consumer)voidretrieveCurrentMutes(T problemId, String projectId, Set<String> buildTypeIds, BaseLowLevelMutingService.MutesConsumer<T> consumer)Retrieves all current mutes for the specified project and build types with specified problem idvoidretrieveMutes(Long buildId, BaseLowLevelMutingService.MutesConsumer<T> consumer)Retrieves all mutes in specified buildabstract voidretrieveMutes(DBFunctions dbf, Long buildId, BaseLowLevelMutingService.MutesConsumer<T> consumer)voidretrieveMutesFromBuilds(Collection<Long> buildIds, BaseLowLevelMutingService.MutesConsumer<T> consumer)Retrieves all mutes in specified buildsprotected abstract voidretrieveMutesFromBuilds(DBFunctions dbf, Collection<Long> buildIds, BaseLowLevelMutingService.MutesConsumer<T> consumer)protected abstract voidretrieveMutesFromBuilds(DBFunctions dbf, T problemId, Collection<Long> buildIds, BaseLowLevelMutingService.MutesConsumer<T> consumer)voidretrieveMutesFromBuilds(T problemId, Collection<Long> buildIds, BaseLowLevelMutingService.MutesConsumer<T> consumer)Retrieves all mutes in specified builds with specified problem idprotected abstract voidretrieveMutesWithTimeOut(DBFunctions dbf, BaseLowLevelMutingService.MutesConsumer<T> consumer)voidretrieveMutesWithTimeOut(BaseLowLevelMutingService.MutesConsumer<T> consumer)Retrieves all mutes that should be automatically unmuted by nowvoidunmuteProblems(Long buildId, Collection<T> problemIds)voidunmuteProblems(Collection<Integer> muteIds)voidunmuteProblems(Set<String> projectIds, Set<String> buildTypeIds, Collection<T> problemIds)
-
-
-
Field Detail
-
myProjectManager
@NotNull protected final ProjectManager myProjectManager
-
-
Constructor Detail
-
BaseLowLevelMutingService
protected BaseLowLevelMutingService(@NotNull DBFunctionsProvider DB, @NotNull ProjectManager projectManager)
-
-
Method Detail
-
muteProblemsInBuildNewMute
public void muteProblemsInBuildNewMute(@Nullable Integer muteId, @NotNull Long buildId, @NotNull Collection<T> problemIds)
-
muteProblemsInBuildExistingMute
public void muteProblemsInBuildExistingMute(@Nullable Integer muteId, @NotNull Long buildId, @NotNull Collection<T> problemIds)
-
muteProblemsInBuildTypes
public void muteProblemsInBuildTypes(@NotNull Integer muteId, @NotNull String projId, @NotNull Collection<String> buildTypeIds, @NotNull Collection<T> problemIds, boolean removePreviousMutes)
-
muteProblemsInProject
public void muteProblemsInProject(@NotNull Integer muteId, @NotNull String projId, @NotNull Set<String> projectIdsToUnmute, @NotNull Collection<String> buildTypeIdsToUnmute, @NotNull Collection<T> problemIds)
-
unmuteProblems
public void unmuteProblems(@NotNull Set<String> projectIds, @NotNull Set<String> buildTypeIds, @NotNull Collection<T> problemIds)
-
unmuteProblems
public void unmuteProblems(@NotNull Long buildId, @NotNull Collection<T> problemIds)
-
unmuteProblems
public void unmuteProblems(@NotNull Collection<Integer> muteIds)
-
doMuteProblemsInBuild
protected abstract void doMuteProblemsInBuild(@NotNull DBFunctions dbf, @Nullable Integer muteId, @NotNull Long buildId, @NotNull Collection<T> problemIds)
-
doMuteProblemsInBuildTypes
protected abstract void doMuteProblemsInBuildTypes(@NotNull DBFunctions dbf, @NotNull Integer muteId, @NotNull Collection<String> buildTypeIds, @NotNull Collection<T> problemIds, boolean removePreviousMutes)
-
doMuteProblemsInProject
protected abstract void doMuteProblemsInProject(@NotNull DBFunctions dbf, @NotNull Integer muteId, @NotNull String projectId, @NotNull Collection<String> projectIdsToUnmute, @NotNull Collection<String> buildTypeIdsToUnmute, @NotNull Collection<T> problemIds)
-
doMuteProblems
protected abstract void doMuteProblems(@NotNull DBFunctions dbf, @NotNull Integer muteId)
-
doUnmuteProblemsInProjectsAndBuildTypes
protected abstract void doUnmuteProblemsInProjectsAndBuildTypes(@NotNull DBFunctions dbf, @NotNull Collection<String> projectIds, @NotNull Collection<String> buildTypeIds, @NotNull Collection<T> problemIds)
-
doUnmuteProblems
protected abstract void doUnmuteProblems(@NotNull DBFunctions dbf, @NotNull Collection<Integer> muteIds)
-
doUnmuteProblems
protected abstract void doUnmuteProblems(@NotNull DBFunctions dbf, @NotNull Long buildId, @NotNull Collection<T> problemIds)
-
doAddProblemsToTT
protected abstract void doAddProblemsToTT(@NotNull DBFunctions dbf, @NotNull Collection<T> problemIds)
-
invalidateMPLCacheFor
protected void invalidateMPLCacheFor(@NotNull Set<String> projectIds, @NotNull Collection<String> buildTypes)
-
resetMutedProblemsCache
public void resetMutedProblemsCache()
-
getAllMutes
@NotNull protected abstract Map<T,Integer> getAllMutes(@NotNull DBFunctions dbf, @NotNull String buildTypeId)
-
retrieveCurrentMutes
public void retrieveCurrentMutes(@NotNull Set<String> projectIds, @NotNull Set<String> buildTypeIds, @NotNull BaseLowLevelMutingService.MutesConsumer<T> consumer)Retrieves all current mutes for the specified project and build types (normally build types are from the specified project)
-
retrieveCurrentMutes
public void retrieveCurrentMutes(@NotNull T problemId, @NotNull String projectId, @NotNull Set<String> buildTypeIds, @NotNull BaseLowLevelMutingService.MutesConsumer<T> consumer)Retrieves all current mutes for the specified project and build types with specified problem id
-
retrieveMutesWithTimeOut
public void retrieveMutesWithTimeOut(@NotNull BaseLowLevelMutingService.MutesConsumer<T> consumer)Retrieves all mutes that should be automatically unmuted by now
-
retrieveMutes
public void retrieveMutes(@NotNull Long buildId, @NotNull BaseLowLevelMutingService.MutesConsumer<T> consumer)Retrieves all mutes in specified build
-
retrieveMutesFromBuilds
public void retrieveMutesFromBuilds(@NotNull Collection<Long> buildIds, @NotNull BaseLowLevelMutingService.MutesConsumer<T> consumer)Retrieves all mutes in specified builds
-
retrieveMutesFromBuilds
public void retrieveMutesFromBuilds(@NotNull T problemId, @NotNull Collection<Long> buildIds, @NotNull BaseLowLevelMutingService.MutesConsumer<T> consumer)Retrieves all mutes in specified builds with specified problem id
-
addBuildTypesToTT
protected void addBuildTypesToTT(@NotNull DBFunctions dbf, @NotNull Collection<String> buildTypeIds)
-
addProjectsToTT
protected void addProjectsToTT(@NotNull DBFunctions dbf, @NotNull Collection<String> projectIds)
-
retrieveCurrentMutes
protected abstract void retrieveCurrentMutes(@NotNull DBFunctions dbf, @NotNull Set<String> projectIds, @NotNull Set<String> buildTypeIds, @NotNull BaseLowLevelMutingService.MutesConsumer<T> consumer)
-
retrieveCurrentMutes
protected abstract void retrieveCurrentMutes(@NotNull DBFunctions dbf, @NotNull T problemId, @NotNull BaseLowLevelMutingService.MutesConsumer<T> consumer)
-
retrieveMutesWithTimeOut
protected abstract void retrieveMutesWithTimeOut(@NotNull DBFunctions dbf, @NotNull BaseLowLevelMutingService.MutesConsumer<T> consumer)
-
retrieveMutes
public abstract void retrieveMutes(@NotNull DBFunctions dbf, @NotNull Long buildId, @NotNull BaseLowLevelMutingService.MutesConsumer<T> consumer)
-
retrieveMutesFromBuilds
protected abstract void retrieveMutesFromBuilds(@NotNull DBFunctions dbf, T problemId, Collection<Long> buildIds, BaseLowLevelMutingService.MutesConsumer<T> consumer)
-
retrieveMutesFromBuilds
protected abstract void retrieveMutesFromBuilds(@NotNull DBFunctions dbf, @NotNull Collection<Long> buildIds, @NotNull BaseLowLevelMutingService.MutesConsumer<T> consumer)
-
getMuteId
@Nullable public Integer getMuteId(@NotNull List<String> projectPathIds, @NotNull String buildTypeId, @NotNull T problemId)
-
getMutedProblems
@NotNull public Collection<T> getMutedProblems(@NotNull Integer muteId)
-
getMutedProblems
@NotNull protected abstract Collection<T> getMutedProblems(@NotNull DBFunctions dbf, @NotNull Integer muteId)
-
-