Package jetbrains.buildServer.agent
Interface DirectoryCleanersRegistry
-
@SystemProvided public interface DirectoryCleanersRegistry
Builder/registry to register all possible cleanable items. Context will be recreated each next clean attempt.- Since:
- 7.1
- Author:
- Eugene Petrenko (eugene.petrenko@gmail.com) Date: 19.03.12 12:58\
- See Also:
DirectoryCleanersProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addCleaner(File root, Date lastUseDate)
Registers simple cleanable item.void
addCleaner(File root, Date lastUseDate, Runnable cleanAction)
Registers callback-based cleaner.void
addRecurringCleaner(File root, Runnable action)
Registers action that will be called cleaner (registered with addCleaner)
-
-
-
Method Detail
-
addCleaner
void addCleaner(@NotNull File root, @NotNull Date lastUseDate)
Registers simple cleanable item. Root folder will be removed if clean is required- Parameters:
root
- file/folder to remove on cleanlastUseDate
- last used time- Since:
- 7.1
-
addCleaner
void addCleaner(@NotNull File root, @NotNull Date lastUseDate, @NotNull Runnable cleanAction)
Registers callback-based cleaner. Callback will be called if item is decided to be removed. Root folder is selected to be as close to the items as possible.- Parameters:
root
- file/folder containing the item.lastUseDate
- list use timecleanAction
- clean action that is called to initiate clean.- Since:
- 7.1
-
-