public abstract static class Channel.Listener extends Object
Channel.| Constructor and Description |
|---|
Listener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onClosed(Channel channel,
IOException cause)
When the channel was closed normally or abnormally due to an error.
|
void |
onJar(Channel channel,
File jar)
Called when a JAR file is being sent to the remote side.
|
void |
onRead(Channel channel,
Command cmd,
long blockSize)
Called when a command is successfully received by a channel.
|
void |
onResponse(Channel channel,
Request<?,?> req,
Response<?,?> rsp,
long totalTime)
Called when a response has been read from a channel.
|
void |
onWrite(Channel channel,
Command cmd,
long blockSize)
Called when a command is successfully written to a channel.
|
public void onClosed(Channel channel, IOException cause)
cause - if the channel is closed abnormally, this parameter
represents an exception that has triggered it.
Otherwise null.public void onRead(Channel channel, Command cmd, long blockSize)
channel - a channelcmd - a commandblockSize - the number of bytes used to read this commandpublic void onWrite(Channel channel, Command cmd, long blockSize)
onRead(hudson.remoting.Channel, hudson.remoting.Command, long) for general usage guidelines.channel - a channelcmd - a commandblockSize - the number of bytes used to write this commandpublic void onResponse(Channel channel, Request<?,?> req, Response<?,?> rsp, long totalTime)
channel - a channelreq - the original requestrsp - the resulting responsetotalTime - the total time in nanoseconds taken to service the requestpublic void onJar(Channel channel, File jar)
channel - a channeljar - the JAR file from which code is being loaded remotelyCapability.supportsPrefetch()Copyright © 2004–2018. All rights reserved.