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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcache(FilePath localSource, String includes, String excludes, boolean useDefaultExcludes, ObjectPath remoteTarget, FilePath workspace) protected abstract voidcompress(FilePath source, String includes, String excludes, boolean useDefaultExcludes, FilePath target) createCacheName(String cacheBaseName) protected abstract Stringvoidrestore(ObjectPath remoteSource, FilePath localTarget, FilePath workspace) protected abstract voiduncompress(FilePath source, FilePath target)
-
Constructor Details
-
AbstractCompressingArbitraryFileCacheStrategy
public AbstractCompressingArbitraryFileCacheStrategy()
-
-
Method Details
-
createCacheName
- Specified by:
createCacheNamein interfaceArbitraryFileCacheStrategy
-
cache
public void cache(FilePath localSource, String includes, String excludes, boolean useDefaultExcludes, ObjectPath remoteTarget, FilePath workspace) throws IOException, InterruptedException - Specified by:
cachein interfaceArbitraryFileCacheStrategy- Throws:
IOExceptionInterruptedException
-
restore
public void restore(ObjectPath remoteSource, FilePath localTarget, FilePath workspace) throws IOException, InterruptedException - Specified by:
restorein interfaceArbitraryFileCacheStrategy- Throws:
IOExceptionInterruptedException
-
getArchiveExtension
-
uncompress
protected abstract void uncompress(FilePath source, FilePath target) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
compress
protected abstract void compress(FilePath source, String includes, String excludes, boolean useDefaultExcludes, FilePath target) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-