jetbrains.buildServer.serverSide
Interface GeneralDataCleaner
- All Superinterfaces:
- ServerExtension, TeamCityExtension
public interface GeneralDataCleaner
- extends ServerExtension
If a plugin has some data that should be deleted within cleanup process
it should implement this interface and register it as server extension with help of
SBuildServer#registerExtension(Class, String, ServerExtension) method.
|
Method Summary |
void |
performCleanup(java.sql.Connection connection)
Invoked once at the end of cleanup procedure. |
performCleanup
void performCleanup(java.sql.Connection connection)
throws java.sql.SQLException
- Invoked once at the end of cleanup procedure.
At this point all data for specific build_id's is deleted.
Note: DataCleaner is invoked when cleanup is proceeding and
it should perform db operations in current thread otherwise deadlock will occur.
- Parameters:
connection - to work with
- Throws:
java.sql.SQLException - throws exception if some database operation failed while cleanup process.