public abstract class JarCache extends Object
The remoting library supports local jar file caching for the efficiency in remote class loading. The cache stores jar files sent by the other side, and identifies jars with MD5 checksums that uniquely identifies its content. This allows the cache to be reused by future channel sessions or other concurrent channel sessions.
| Modifier and Type | Field and Description |
|---|---|
static File |
DEFAULT_NOWS_JAR_CACHE_LOCATION
Default JAR cache location for disabled workspace Manager.
|
| Constructor and Description |
|---|
JarCache() |
| Modifier and Type | Method and Description |
|---|---|
abstract Future<URL> |
resolve(Channel channel,
long sum1,
long sum2)
Looks up the jar in cache, and if not found, use
JarLoader to retrieve it
from the other side. |
public static final File DEFAULT_NOWS_JAR_CACHE_LOCATION
@Nonnull public abstract Future<URL> resolve(@Nonnull Channel channel, long sum1, long sum2) throws IOException, InterruptedException
JarLoader to retrieve it
from the other side.
This method must be concurrency-safe.
channel - Channel that needs this jar file.IOExceptionInterruptedExceptionCopyright © 2004–2020. All rights reserved.