Class PatchCacheImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.projectSources.PatchCacheImpl
-
- All Implemented Interfaces:
PatchCache
,ServerExtension
,TeamCityExtension
public class PatchCacheImpl extends Object implements PatchCache
-
-
Field Summary
Fields Modifier and Type Field Description static Logger
LOG
protected static String
TEAMCITY_CLEANUP_CLEAN_SERVER_SIDE_PATCHES_CACHE
-
Constructor Summary
Constructors Constructor Description PatchCacheImpl(File cacheDirectory, EventDispatcher<BuildServerListener> eventDispatcher)
PatchCacheImpl(ServerPaths paths, EventDispatcher<BuildServerListener> eventDispatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanCache()
void
doCleanup()
Pair<File,String>
requestCachedPatch(VcsRootInstance root, CheckoutRules rules, String requestedVersion, PatchBuildingDelegate patchConstructor)
-
-
-
Field Detail
-
LOG
public static final Logger LOG
-
TEAMCITY_CLEANUP_CLEAN_SERVER_SIDE_PATCHES_CACHE
protected static final String TEAMCITY_CLEANUP_CLEAN_SERVER_SIDE_PATCHES_CACHE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PatchCacheImpl
@Autowired public PatchCacheImpl(@NotNull ServerPaths paths, @NotNull EventDispatcher<BuildServerListener> eventDispatcher)
-
PatchCacheImpl
public PatchCacheImpl(@NotNull File cacheDirectory, @NotNull EventDispatcher<BuildServerListener> eventDispatcher)
-
-
Method Detail
-
requestCachedPatch
public Pair<File,String> requestCachedPatch(@NotNull VcsRootInstance root, @NotNull CheckoutRules rules, @NotNull String requestedVersion, @NotNull PatchBuildingDelegate patchConstructor) throws IOException, VcsException
- Specified by:
requestCachedPatch
in interfacePatchCache
- Throws:
IOException
VcsException
-
cleanCache
public void cleanCache()
- Specified by:
cleanCache
in interfacePatchCache
-
doCleanup
public void doCleanup()
-
-