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 String
INACTIVITY_THRESHOLD_SECONDS_PROPERTY
static String
POSITION_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 void
afterCleanup(CleanupProcessState cleanupState)
Invoked upon finishing of the main cleanup process.PositionConstraint
getConstraint()
Constraint to be respected during objects sorting.String
getOrderId()
Returns object id that can be referenced by {PositionConstraint
}void
setBuildProblemManager(BuildProblemManager buildProblemManager)
void
setProjectManager(ProjectManager projectManager)
void
setResponsibilityManager(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 CleanupInterruptedException
Description copied from interface:AfterBuildsCleanupExtension
Invoked 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:
afterCleanup
in interfaceAfterBuildsCleanupExtension
- Parameters:
cleanupState
- cleanup process state- Throws:
CleanupInterruptedException
- if the cleanup process was interrupted
-
getOrderId
@NotNull public String getOrderId()
Description copied from interface:PositionAware
Returns object id that can be referenced by {PositionConstraint
}- Specified by:
getOrderId
in interfacePositionAware
- Returns:
- object id
-
getConstraint
@NotNull public PositionConstraint getConstraint()
Description copied from interface:PositionConstraintAware
Constraint to be respected during objects sorting.- Specified by:
getConstraint
in interfacePositionConstraintAware
- Returns:
- position constraint
-
-