Class AbstractCompressingArbitraryFileCacheStrategy
java.lang.Object
jenkins.plugins.jobcacher.arbitrary.AbstractCompressingArbitraryFileCacheStrategy
- All Implemented Interfaces:
Serializable
,ArbitraryFileCacheStrategy
- Direct Known Subclasses:
TarArbitraryFileCacheStrategy
,ZipArbitraryFileCacheStrategy
public abstract class AbstractCompressingArbitraryFileCacheStrategy
extends Object
implements ArbitraryFileCacheStrategy
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cache
(FilePath localSource, String includes, String excludes, boolean useDefaultExcludes, ObjectPath remoteTarget, FilePath workspace) protected abstract void
compress
(FilePath source, String includes, String excludes, boolean useDefaultExcludes, FilePath target) createCacheName
(String cacheBaseName) protected abstract String
void
restore
(ObjectPath remoteSource, FilePath localTarget, FilePath workspace) protected abstract void
uncompress
(FilePath source, FilePath target)
-
Constructor Details
-
AbstractCompressingArbitraryFileCacheStrategy
public AbstractCompressingArbitraryFileCacheStrategy()
-
-
Method Details
-
createCacheName
- Specified by:
createCacheName
in interfaceArbitraryFileCacheStrategy
-
cache
public void cache(FilePath localSource, String includes, String excludes, boolean useDefaultExcludes, ObjectPath remoteTarget, FilePath workspace) throws IOException, InterruptedException - Specified by:
cache
in interfaceArbitraryFileCacheStrategy
- Throws:
IOException
InterruptedException
-
restore
public void restore(ObjectPath remoteSource, FilePath localTarget, FilePath workspace) throws IOException, InterruptedException - Specified by:
restore
in interfaceArbitraryFileCacheStrategy
- Throws:
IOException
InterruptedException
-
getArchiveExtension
-
uncompress
protected abstract void uncompress(FilePath source, FilePath target) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
compress
protected abstract void compress(FilePath source, String includes, String excludes, boolean useDefaultExcludes, FilePath target) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-