Uses of Class
hudson.remoting.Channel
-
Packages that use Channel Package Description hudson.remoting Remoting infrastructure for Hudson.org.jenkinsci.remoting org.jenkinsci.remoting.engine org.jenkinsci.remoting.nio org.jenkinsci.remoting.protocol.impl org.jenkinsci.remoting.util -
-
Uses of Channel in hudson.remoting
Fields in hudson.remoting declared as Channel Modifier and Type Field Description protected Channel
AbstractByteArrayCommandTransport. channel
protected Channel
SynchronousCommandTransport. channel
Methods in hudson.remoting that return Channel Modifier and Type Method Description Channel
ChannelBuilder. build(CommandTransport transport)
Channel
ChannelBuilder. build(InputStream is, OutputStream os)
Performs a handshake over the communication channel and builds aChannel
.Channel
ChannelBuilder. build(Socket s)
Channel
ChannelBuilder. build(SocketChannel s)
static Channel
Channel. current()
This method can be invoked during the serialization/deserialization of objects when they are transferred to the remoteChannel
, as well as duringCallable.call()
is invoked.static Channel
Channel. currentOrFail()
Gets current channel or fails withIllegalStateException
.protected Channel
AbstractByteBufferCommandTransport. getChannel()
Gets the channel.default Channel
Callable. getChannelOrFail()
Gets a channel for the operation inside callable.default Channel
Callable. getOpenChannelOrFail()
Gets an open channel, which is ready to accept commands.Methods in hudson.remoting with parameters of type Channel Modifier and Type Method Description protected void
UnexportCommand. execute(Channel channel)
protected JarLoader
JarCacheSupport. getJarLoader(Channel channel)
protected URL
FileSystemJarCache. lookInCache(Channel channel, long sum1, long sum2)
protected abstract URL
JarCacheSupport. lookInCache(Channel channel, long sum1, long sum2)
Look up the local cache and return URL if found.void
Channel.Listener. onClosed(Channel channel, IOException cause)
When the channel was closed normally or abnormally due to an error.void
Channel.Listener. onJar(Channel channel, File jar)
Called when a JAR file is being sent to the remote side.void
Channel.Listener. onRead(Channel channel, Command cmd, long blockSize)
Called when a command is successfully received by a channel.void
Channel.Listener. onResponse(Channel channel, Request<?,?> req, Response<?,?> rsp, long totalTime)
Called when a response has been read from a channel.void
Channel.Listener. onWrite(Channel channel, Command cmd, long blockSize)
Called when a command is successfully written to a channel.abstract byte[]
AbstractSynchronousByteArrayCommandTransport. readBlock(Channel channel)
Read a byte[] from the underlying transport for the given channel.static Command
Command. readFrom(Channel channel, byte[] payload)
Reads command from the specified payload.abstract CompletableFuture<URL>
JarCache. resolve(Channel channel, long sum1, long sum2)
Looks up the jar in cache, and if not found, useJarLoader
to retrieve it from the other side.CompletableFuture<URL>
JarCacheSupport. resolve(Channel channel, long sum1, long sum2)
protected URL
FileSystemJarCache. retrieve(Channel channel, long sum1, long sum2)
protected abstract URL
JarCacheSupport. retrieve(Channel channel, long sum1, long sum2)
Retrieve the jar file from the givenJarLoader
, store it, then return the URL to that jar.void
AbstractByteArrayCommandTransport. setup(Channel channel, CommandTransport.CommandReceiver receiver)
void
AbstractByteBufferCommandTransport. setup(Channel channel, CommandTransport.CommandReceiver receiver)
Starts the transport.abstract void
CommandTransport. setup(Channel channel, CommandTransport.CommandReceiver receiver)
Starts the transport.void
SynchronousCommandTransport. setup(Channel channel, CommandTransport.CommandReceiver receiver)
abstract void
AbstractByteArrayCommandTransport. writeBlock(Channel channel, byte[] payload)
Writes a byte[] to the transport.abstract void
AbstractSynchronousByteArrayCommandTransport. writeBlock(Channel channel, byte[] payload)
Writes a byte[] to the transport.Constructors in hudson.remoting with parameters of type Channel Constructor Description ChannelClosedException(Channel channel, String message, Throwable cause)
Constructor.ChannelClosedException(Channel channel, Throwable cause)
Constructor.PingThread(Channel channel)
PingThread(Channel channel, long interval)
PingThread(Channel channel, long timeout, long interval)
-
Uses of Channel in org.jenkinsci.remoting
Methods in org.jenkinsci.remoting that return Channel Modifier and Type Method Description Channel
ChannelStateException. getChannel()
Gets channel associated with the exception.default Channel
SerializableOnlyOverRemoting. getChannelForSerialization()
Gets current channel or fails withNotSerializableException
.Methods in org.jenkinsci.remoting that return types with arguments of type Channel Modifier and Type Method Description WeakReference<Channel>
ChannelStateException. getChannelRef()
Constructors in org.jenkinsci.remoting with parameters of type Channel Constructor Description ChannelStateException(Channel channel, String message)
ChannelStateException(Channel channel, String message, Throwable cause)
-
Uses of Channel in org.jenkinsci.remoting.engine
Methods in org.jenkinsci.remoting.engine that return Channel Modifier and Type Method Description Channel
JnlpConnectionState. getChannel()
Gets the connection'sChannel
.Methods in org.jenkinsci.remoting.engine that return types with arguments of type Channel Modifier and Type Method Description Future<Channel>
JnlpProtocol4Handler. connect(Socket socket, Map<String,String> headers, List<? extends JnlpConnectionStateListener> listeners)
Handles an outgoing connection to the server on the supplied socket.Future<Channel>
JnlpProtocol4ProxyHandler. connect(Socket socket, Map<String,String> headers, List<? extends JnlpConnectionStateListener> listeners)
abstract Future<Channel>
JnlpProtocolHandler. connect(Socket socket, Map<String,String> headers, List<? extends JnlpConnectionStateListener> listeners)
Handles an outgoing connection to the server on the supplied socket.Future<Channel>
JnlpProtocolHandler. connect(Socket socket, Map<String,String> headers, JnlpConnectionStateListener... listeners)
Handles an outgoing connection to the server on the supplied socket.Future<Channel>
JnlpProtocol4Handler. handle(Socket socket, Map<String,String> headers, List<? extends JnlpConnectionStateListener> listeners)
Handles an incoming client connection on the supplied socket.Future<Channel>
JnlpProtocol4ProxyHandler. handle(Socket socket, Map<String,String> headers, List<? extends JnlpConnectionStateListener> listeners)
abstract Future<Channel>
JnlpProtocolHandler. handle(Socket socket, Map<String,String> headers, List<? extends JnlpConnectionStateListener> listeners)
Handles an incoming client connection on the supplied socket.Future<Channel>
JnlpProtocolHandler. handle(Socket socket, Map<String,String> headers, JnlpConnectionStateListener... listeners)
Handles an incoming client connection on the supplied socket.Methods in org.jenkinsci.remoting.engine with parameters of type Channel Modifier and Type Method Description void
JnlpConnectionState. fireAfterChannel(Channel channel)
Advances the connection state to indicate that the channel has been created. -
Uses of Channel in org.jenkinsci.remoting.nio
Methods in org.jenkinsci.remoting.nio that return Channel Modifier and Type Method Description Channel
NioChannelBuilder. build(Socket s)
Channel
NioChannelBuilder. build(SelectableChannel r, SelectableChannel w)
Channel
NioChannelBuilder. build(SocketChannel socket)
-
Uses of Channel in org.jenkinsci.remoting.protocol.impl
Methods in org.jenkinsci.remoting.protocol.impl that return types with arguments of type Channel Modifier and Type Method Description Future<Channel>
ChannelApplicationLayer. get()
SPI: Returns the application specific API instance.Methods in org.jenkinsci.remoting.protocol.impl with parameters of type Channel Modifier and Type Method Description void
ChannelApplicationLayer.Listener. onChannel(Channel channel)
Called when theChannel
has been constructed. -
Uses of Channel in org.jenkinsci.remoting.util
Methods in org.jenkinsci.remoting.util with parameters of type Channel Modifier and Type Method Description void
LoggingChannelListener. onClosed(Channel channel, IOException cause)
void
LoggingChannelListener. onJar(Channel channel, File jar)
void
LoggingChannelListener. onRead(Channel channel, Command cmd, long blockSize)
void
LoggingChannelListener. onResponse(Channel channel, Request<?,?> req, Response<?,?> rsp, long totalTime)
void
LoggingChannelListener. onWrite(Channel channel, Command cmd, long blockSize)
-