Class InvestigationsCleanupExtension
- java.lang.Object
 - 
- jetbrains.buildServer.responsibility.impl.InvestigationsCleanupExtension
 
 
- 
- All Implemented Interfaces:
 AfterBuildsCleanupExtension,ServerExtension,TeamCityExtension,PositionAware,PositionConstraintAware
public class InvestigationsCleanupExtension extends Object implements AfterBuildsCleanupExtension, PositionAware
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringINACTIVITY_THRESHOLD_SECONDS_PROPERTYstatic StringPOSITION_AWARE_ID 
- 
Constructor Summary
Constructors Constructor Description InvestigationsCleanupExtension(TestName2Index testName2Index, InvestigationTestRunsHolder testRunsHolderCache, TimeService timeService) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterCleanup(CleanupProcessState cleanupState)Invoked upon finishing of the main cleanup process.PositionConstraintgetConstraint()Constraint to be respected during objects sorting.StringgetOrderId()Returns object id that can be referenced by {PositionConstraint}voidsetBuildProblemManager(BuildProblemManager buildProblemManager)voidsetProjectManager(ProjectManager projectManager)voidsetResponsibilityManager(ResponsibilityManager responsibilityManager) 
 - 
 
- 
- 
Field Detail
- 
POSITION_AWARE_ID
public static final String POSITION_AWARE_ID
- See Also:
 - Constant Field Values
 
 
- 
INACTIVITY_THRESHOLD_SECONDS_PROPERTY
public static final String INACTIVITY_THRESHOLD_SECONDS_PROPERTY
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
InvestigationsCleanupExtension
public InvestigationsCleanupExtension(@NotNull TestName2Index testName2Index, @NotNull InvestigationTestRunsHolder testRunsHolderCache, @NotNull TimeService timeService) 
 - 
 
- 
Method Detail
- 
setProjectManager
public void setProjectManager(@NotNull ProjectManager projectManager) 
- 
setResponsibilityManager
public void setResponsibilityManager(@NotNull ResponsibilityManager responsibilityManager) 
- 
setBuildProblemManager
public void setBuildProblemManager(@NotNull BuildProblemManager buildProblemManager) 
- 
afterCleanup
public void afterCleanup(@NotNull CleanupProcessState cleanupState) throws CleanupInterruptedExceptionDescription copied from interface:AfterBuildsCleanupExtensionInvoked upon finishing of the main cleanup process. At this point all data for specific builds is deleted.
Note: This extension might not be called for every cleanup run as cleanup process can be interrupted earlier. Extension must check cleanup process state and if it is interrupted, complete its operations and return as quick as possible.- Specified by:
 afterCleanupin interfaceAfterBuildsCleanupExtension- Parameters:
 cleanupState- cleanup process state- Throws:
 CleanupInterruptedException- if the cleanup process was interrupted
 
- 
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
 
 
 - 
 
 -