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 String
POSITION_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 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
waitForTestNamesCleanupTask()
-
-
-
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: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
-
afterCleanup
public void afterCleanup(@NotNull CleanupProcessState cleanupState)
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
-
waitForTestNamesCleanupTask
public void waitForTestNamesCleanupTask()
-
-