Uses of Class
hudson.remoting.Channel
Packages that use Channel
Package
Description
Remoting infrastructure for Hudson.
-
Uses of Channel in hudson.remoting
Fields in hudson.remoting declared as ChannelModifier and TypeFieldDescriptionprotected Channel
AbstractByteArrayCommandTransport.channel
protected Channel
SynchronousCommandTransport.channel
Methods in hudson.remoting that return ChannelModifier and TypeMethodDescriptionChannelBuilder.build
(CommandTransport transport) ChannelBuilder.build
(InputStream is, OutputStream os) Performs a handshake over the communication channel and builds aChannel
.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 ChannelModifier and TypeMethodDescriptionprotected void
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
Called when a JAR file is being sent to the remote side.void
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
Called when a command is successfully written to a channel.abstract byte[]
Read a byte[] from the underlying transport for the given channel.static Command
Reads command from the specified payload.abstract CompletableFuture<URL>
Looks up the jar in cache, and if not found, useJarLoader
to retrieve it from the other side.protected URL
protected abstract URL
Retrieve the jar file from the givenJarLoader
, store it, then return the URL to that jar.final void
AbstractByteArrayCommandTransport.setup
(Channel channel, CommandTransport.CommandReceiver receiver) final 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 ChannelModifierConstructorDescriptionChannelClosedException
(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 ChannelModifier and TypeMethodDescriptionChannelStateException.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 ChannelConstructors in org.jenkinsci.remoting with parameters of type ChannelModifierConstructorDescriptionChannelStateException
(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 ChannelModifier and TypeMethodDescriptionJnlpConnectionState.getChannel()
Gets the connection'sChannel
.Methods in org.jenkinsci.remoting.engine that return types with arguments of type ChannelModifier and TypeMethodDescriptionJnlpProtocol4Handler.connect
(Socket socket, Map<String, String> headers, List<? extends JnlpConnectionStateListener> listeners) Handles an outgoing connection to the server on the supplied socket.JnlpProtocol4ProxyHandler.connect
(Socket socket, Map<String, String> headers, List<? extends JnlpConnectionStateListener> listeners) JnlpProtocolHandler.connect
(Socket socket, Map<String, String> headers, List<? extends JnlpConnectionStateListener> listeners) Handles an outgoing connection to the server on the supplied socket.JnlpProtocolHandler.connect
(Socket socket, Map<String, String> headers, JnlpConnectionStateListener... listeners) Handles an outgoing connection to the server on the supplied socket.JnlpProtocol4Handler.handle
(Socket socket, Map<String, String> headers, List<? extends JnlpConnectionStateListener> listeners) Handles an incoming client connection on the supplied socket.JnlpProtocol4ProxyHandler.handle
(Socket socket, Map<String, String> headers, List<? extends JnlpConnectionStateListener> listeners) JnlpProtocolHandler.handle
(Socket socket, Map<String, String> headers, List<? extends JnlpConnectionStateListener> listeners) Handles an incoming client connection on the supplied socket.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 ChannelModifier and TypeMethodDescriptionvoid
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 ChannelModifier and TypeMethodDescriptionNioChannelBuilder.build
(SelectableChannel r, SelectableChannel w) 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 ChannelModifier and TypeMethodDescriptionChannelApplicationLayer.get()
SPI: Returns the application specific API instance.Methods in org.jenkinsci.remoting.protocol.impl with parameters of type Channel -
Uses of Channel in org.jenkinsci.remoting.util
Methods in org.jenkinsci.remoting.util with parameters of type ChannelModifier and TypeMethodDescriptionvoid
LoggingChannelListener.onClosed
(Channel channel, IOException cause) void
void
void
LoggingChannelListener.onResponse
(Channel channel, Request<?, ?> req, Response<?, ?> rsp, long totalTime) void