Class TestInvestigationsAndMutesListener
- java.lang.Object
-
- jetbrains.buildServer.serverSide.ProjectsModelListenerAdapter
-
- jetbrains.buildServer.serverSide.BuildServerAdapter
-
- jetbrains.buildServer.responsibility.remover.TestInvestigationsAndMutesListener
-
- All Implemented Interfaces:
EventListener,BuildServerListener,ProjectsModelListener,ServerListener,PositionAware,PositionConstraintAware
public class TestInvestigationsAndMutesListener extends BuildServerAdapter implements PositionAware
The class is entry point for test mutes and investigations removing logic.- See Also:
TestInvestigationsRemover,It handles event to process autoremovable fixed investigations and mutes in a separate thread.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSHOULD_CONSIDER_BRANCHES
-
Constructor Summary
Constructors Constructor Description TestInvestigationsAndMutesListener(ResponsibilityFacadeEx responsibilityFacade, EventDispatcher<BuildServerListener> eventDispatcher, ServerResponsibility serverResponsibility, ProblemMutingService problemMutingService, STestManager testManager, TestInvestigationAuditLog testInvestigationAuditLog, ProjectManager projectManager, InvestigationTestRunsHolder testRunsHolder, TimeService timeService, RunningBuildsManagerEx runningBuildsManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidawaitAdvance(int msecs)voidbuildFinished(SRunningBuild build)Called after build finishing, only if build was not interruptedPositionConstraintgetConstraint()Constraint to be respected during objects sorting.StringgetOrderId()Returns object id that can be referenced by {PositionConstraint}voidserverShutdown()Called when server shutdown has been started.-
Methods inherited from class jetbrains.buildServer.serverSide.BuildServerAdapter
agentDescriptionUpdated, agentRegistered, agentRemoved, agentRemoved, agentsDescriptionUpdated, agentStatusChanged, agentUnregistered, agentUnregistered, beforeAgentUnregistered, beforeBuildFinish, beforeEntryDelete, beforeServerConfigurationLoaded, buildArtifactsChanged, buildChangedStatus, buildCommented, buildDetachedFromAgent, buildInterrupted, buildPinned, buildProblemsChanged, buildProblemsMuted, buildProblemsUnmuted, buildPromotionTagsChanged, buildQueueOrderChanged, buildRemovedFromQueue, buildStarted, buildTagsChanged, buildTagsChanged, buildTypeAddedToQueue, buildTypeAddedToQueue, buildUnpinned, changeAdded, changesLoaded, changesLoaded, cleanupFinished, cleanupStarted, entriesDeleted, entryCreated, entryDeleted, labelingFailed, labelingSucceed, messageReceived, pluginsLoaded, responsibleChanged, responsibleChanged, responsibleChanged, responsibleChanged, responsibleRemoved, responsibleRemoved, serverConfigurationReloaded, serverShutdownComplete, serverStartup, sourcesVersionReleased, sourcesVersionReleased, sourcesVersionReleased, statisticValuePublished, testsMuted, testsUnmuted
-
Methods inherited from class jetbrains.buildServer.serverSide.ProjectsModelListenerAdapter
beforeBuildTypeDeleted, beforeBuildTypesDeleted, buildTypeActiveStatusChanged, buildTypeDeleted, buildTypeDescriptionUpdated, buildTypeExternalIdChanged, buildTypeMoved, buildTypePersisted, buildTypeRegistered, buildTypeRenamed, buildTypeTemplateDeleted, buildTypeTemplateDeleted, buildTypeTemplateExternalIdChanged, buildTypeTemplateMoved, buildTypeTemplatePersisted, buildTypeTemplateRestored, buildTypeUnregistered, projectArchived, projectCreated, projectDearchived, projectDescriptionUpdated, projectExternalIdChanged, projectFeatureAdded, projectFeatureChanged, projectFeatureRemoved, projectMoved, projectPersisted, projectPluginDataFileRemoved, projectPluginDataFileSaved, projectRemoved, projectRemoved, projectRenamed, projectRestored, vcsRootExternalIdChanged, vcsRootMoved, vcsRootPersisted, vcsRootRemoved, vcsRootsPersisted, vcsRootUpdated
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.ProjectsModelListener
beforeBuildTypeDeleted, beforeBuildTypesDeleted, buildTypeActiveStatusChanged, buildTypeDeleted, buildTypeDescriptionUpdated, buildTypeExternalIdChanged, buildTypeMoved, buildTypePersisted, buildTypeRegistered, buildTypeRenamed, buildTypeTemplateDeleted, buildTypeTemplateDeleted, buildTypeTemplateExternalIdChanged, buildTypeTemplateMoved, buildTypeTemplatePersisted, buildTypeTemplateRestored, buildTypeUnregistered, projectArchived, projectCreated, projectDearchived, projectDescriptionUpdated, projectExternalIdChanged, projectFeatureAdded, projectFeatureChanged, projectFeatureRemoved, projectMoved, projectPersisted, projectPluginDataFileRemoved, projectPluginDataFileSaved, projectRemoved, projectRemoved, projectRenamed, projectRestored, vcsRootExternalIdChanged, vcsRootMoved, vcsRootPersisted, vcsRootRemoved, vcsRootsPersisted, vcsRootUpdated
-
-
-
-
Field Detail
-
SHOULD_CONSIDER_BRANCHES
@NonNls public static final String SHOULD_CONSIDER_BRANCHES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TestInvestigationsAndMutesListener
public TestInvestigationsAndMutesListener(@NotNull ResponsibilityFacadeEx responsibilityFacade, @NotNull EventDispatcher<BuildServerListener> eventDispatcher, @NotNull ServerResponsibility serverResponsibility, @NotNull ProblemMutingService problemMutingService, @NotNull STestManager testManager, @NotNull TestInvestigationAuditLog testInvestigationAuditLog, @NotNull ProjectManager projectManager, @NotNull InvestigationTestRunsHolder testRunsHolder, @NotNull TimeService timeService, @NotNull RunningBuildsManagerEx runningBuildsManager)
-
-
Method Detail
-
serverShutdown
public void serverShutdown()
Description copied from interface:ServerListenerCalled when server shutdown has been started. In addition, this method is called for a plugin before it is unloaded, may be used for releasing resources and cleanup.- Specified by:
serverShutdownin interfaceServerListener- Overrides:
serverShutdownin classBuildServerAdapter
-
awaitAdvance
@TestOnly public void awaitAdvance(int msecs)
-
buildFinished
public void buildFinished(@NotNull SRunningBuild build)Description copied from interface:BuildServerListenerCalled after build finishing, only if build was not interrupted- Specified by:
buildFinishedin interfaceBuildServerListener- Overrides:
buildFinishedin classBuildServerAdapter- Parameters:
build- running build // TODO: shall pass SFinishedBuild as parameter
-
getOrderId
@NotNull public String getOrderId()
Description copied from interface:PositionAwareReturns object id that can be referenced by {PositionConstraint}- Specified by:
getOrderIdin interfacePositionAware- Returns:
- object id
-
getConstraint
@NotNull public PositionConstraint getConstraint()
Description copied from interface:PositionConstraintAwareConstraint to be respected during objects sorting.- Specified by:
getConstraintin interfacePositionConstraintAware- Returns:
- position constraint
-
-