Class TarArbitraryFileCacheStrategy
- java.lang.Object
-
- jenkins.plugins.jobcacher.arbitrary.AbstractCompressingArbitraryFileCacheStrategy
-
- jenkins.plugins.jobcacher.arbitrary.TarArbitraryFileCacheStrategy
-
- All Implemented Interfaces:
Serializable
,ArbitraryFileCacheStrategy
public class TarArbitraryFileCacheStrategy extends AbstractCompressingArbitraryFileCacheStrategy
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TarArbitraryFileCacheStrategy.CompressingInputStreamFactory
static interface
TarArbitraryFileCacheStrategy.CompressingOutputStreamFactory
-
Constructor Summary
Constructors Constructor Description TarArbitraryFileCacheStrategy(TarArbitraryFileCacheStrategy.CompressingOutputStreamFactory compressingOutputStreamFactory, TarArbitraryFileCacheStrategy.CompressingInputStreamFactory compressingInputStreamFactory, String archiveExtension)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
compress(FilePath source, String includes, String excludes, boolean useDefaultExcludes, FilePath target)
protected String
getArchiveExtension()
protected void
uncompress(FilePath source, FilePath target)
-
Methods inherited from class jenkins.plugins.jobcacher.arbitrary.AbstractCompressingArbitraryFileCacheStrategy
cache, createCacheName, restore
-
-
-
-
Constructor Detail
-
TarArbitraryFileCacheStrategy
public TarArbitraryFileCacheStrategy(TarArbitraryFileCacheStrategy.CompressingOutputStreamFactory compressingOutputStreamFactory, TarArbitraryFileCacheStrategy.CompressingInputStreamFactory compressingInputStreamFactory, String archiveExtension)
-
-
Method Detail
-
getArchiveExtension
protected String getArchiveExtension()
- Specified by:
getArchiveExtension
in classAbstractCompressingArbitraryFileCacheStrategy
-
uncompress
protected void uncompress(FilePath source, FilePath target) throws IOException, InterruptedException
- Specified by:
uncompress
in classAbstractCompressingArbitraryFileCacheStrategy
- Throws:
IOException
InterruptedException
-
compress
protected void compress(FilePath source, String includes, String excludes, boolean useDefaultExcludes, FilePath target) throws IOException, InterruptedException
- Specified by:
compress
in classAbstractCompressingArbitraryFileCacheStrategy
- Throws:
IOException
InterruptedException
-
-