Class SimpleArbitraryFileCacheStrategy
- java.lang.Object
-
- jenkins.plugins.jobcacher.arbitrary.SimpleArbitraryFileCacheStrategy
-
- All Implemented Interfaces:
Serializable
,ArbitraryFileCacheStrategy
public class SimpleArbitraryFileCacheStrategy extends Object implements ArbitraryFileCacheStrategy
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleArbitraryFileCacheStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cache(FilePath source, String includes, String excludes, boolean useDefaultExcludes, ObjectPath target, FilePath workspace)
String
createCacheName(String basename)
void
restore(ObjectPath source, FilePath target, FilePath workspace)
-
-
-
Method Detail
-
createCacheName
public String createCacheName(String basename)
- Specified by:
createCacheName
in interfaceArbitraryFileCacheStrategy
-
cache
public void cache(FilePath source, String includes, String excludes, boolean useDefaultExcludes, ObjectPath target, FilePath workspace) throws IOException, InterruptedException
- Specified by:
cache
in interfaceArbitraryFileCacheStrategy
- Throws:
IOException
InterruptedException
-
restore
public void restore(ObjectPath source, FilePath target, FilePath workspace) throws IOException, InterruptedException
- Specified by:
restore
in interfaceArbitraryFileCacheStrategy
- Throws:
IOException
InterruptedException
-
-