Class TestNamesCleaner
- java.lang.Object
 - 
- jetbrains.buildServer.serverSide.tests.TestNamesCleaner
 
 
- 
- All Implemented Interfaces:
 AfterBuildsCleanupExtension,ServerExtension,TeamCityExtension,PositionAware,PositionConstraintAware
public class TestNamesCleaner extends Object implements AfterBuildsCleanupExtension, PositionAware
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringPOSITION_AWARE_ID 
- 
Constructor Summary
Constructors Constructor Description TestNamesCleaner(SQLRunnerEx sqlRunner, ExecutorServicesEx executorServices, EventDispatcher<BuildServerListener> eventDispatcher, TestName2IndexImpl testName2Index) 
- 
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}voidwaitForTestNamesCleanupTask() 
 - 
 
- 
- 
Field Detail
- 
POSITION_AWARE_ID
public static final String POSITION_AWARE_ID
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
TestNamesCleaner
public TestNamesCleaner(@NotNull SQLRunnerEx sqlRunner, @NotNull ExecutorServicesEx executorServices, @NotNull EventDispatcher<BuildServerListener> eventDispatcher, @NotNull TestName2IndexImpl testName2Index) 
 - 
 
- 
Method Detail
- 
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
 
 
- 
afterCleanup
public void afterCleanup(@NotNull CleanupProcessState cleanupState)Description 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
 
- 
waitForTestNamesCleanupTask
public void waitForTestNamesCleanupTask()
 
 - 
 
 -