public interface JarLoader
ResourceImageInJar
.
Channel
exposes this as a remote property
under the key OURS
, then once retrieved we store it in a local property under THEIRS
.
Modifier and Type | Field and Description |
---|---|
static String |
OURS |
static ChannelProperty<JarLoader> |
THEIRS |
Modifier and Type | Method and Description |
---|---|
boolean |
isPresentOnRemote(hudson.remoting.Checksum sum)
Used by the local side to see if the jar file of the given checksum is already present
on the other side.
|
void |
notifyJarPresence(long[] sums) |
void |
notifyJarPresence(long sum1,
long sum2)
Called by the other side to notify that they already own the jar file of the given checksum.
|
void |
writeJarTo(long sum1,
long sum2,
OutputStream sink)
Retrieve the jar file image.
|
static final String OURS
static final ChannelProperty<JarLoader> THEIRS
void writeJarTo(long sum1, long sum2, OutputStream sink) throws IOException, InterruptedException
notifyJarPresence(long, long)
sink
- This stream receives the jar file.InterruptedException
- Since this is a remote call, if the calling thread gets interrupted while waiting for the completion
of the call, this exception will be thrown.IOException
@Asynchronous void notifyJarPresence(long sum1, long sum2)
ResourceImageRef
smartly by avoiding unnecessary
image transport.@Asynchronous void notifyJarPresence(long[] sums)
sums
- Array of even length. sums[2i] and sumes[2i+1] are paired up and interpreted as one checksum.boolean isPresentOnRemote(hudson.remoting.Checksum sum)
Copyright © 2015. All rights reserved.