Package hudson.remoting
Class FileSystemJarCache
java.lang.Object
hudson.remoting.JarCache
hudson.remoting.JarCacheSupport
hudson.remoting.FileSystemJarCache
JarCache that stores files in a single directory.- Since:
- 2.24
- Author:
- Kohsuke Kawaguchi
-
Field Summary
FieldsFields inherited from class hudson.remoting.JarCache
DEFAULT_NOWS_JAR_CACHE_LOCATION -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class hudson.remoting.JarCacheSupport
getJarLoader, resolve
-
Field Details
-
rootDir
-
-
Constructor Details
-
FileSystemJarCache
- Parameters:
rootDir- Root directory.touch- True to touch the cached jar file that's used. This enables external LRU based cache eviction at the expense of increased I/O.- Throws:
IllegalArgumentException- Root directory isnullor not writable.
-
-
Method Details
-
toString
-
lookInCache
protected URL lookInCache(Channel channel, long sum1, long sum2) throws IOException, InterruptedException Description copied from class:JarCacheSupportLook up the local cache and return URL if found. Otherwise null (which will trigger a remote retrieval.)- Specified by:
lookInCachein classJarCacheSupport- Throws:
IOExceptionInterruptedException
-
retrieve
protected URL retrieve(Channel channel, long sum1, long sum2) throws IOException, InterruptedException Description copied from class:JarCacheSupportRetrieve the jar file from the givenJarLoader, store it, then return the URL to that jar.- Specified by:
retrievein classJarCacheSupport- Returns:
- must not be null
- Throws:
IOExceptionInterruptedException
-