Package org.jenkinsci.remoting.nio
Class NioChannelBuilder
java.lang.Object
hudson.remoting.ChannelBuilder
org.jenkinsci.remoting.nio.NioChannelBuilder
ChannelBuilder
subtype for NioChannelHub
.- Since:
- 2.38
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(SocketChannel socket) withBaseLoader
(ClassLoader base) Specify the classloader used for deserializing remote commands.withCapability
(Capability capability) Controls the capabilities that we'll advertise to the other side.withClassFilter
(ClassFilter filter) Replaces theClassFilter
used by the channel.withHeaderStream
(OutputStream header) If non-null, receive the portion of data inis
before the data goes into the "binary mode".withJarCache
(JarCache jarCache) Sets the JAR cache storage.withMode
(Channel.Mode mode) The encoding to be used over the stream.Resets JAR Cache setting to the default.withRestricted
(boolean restricted) For compatibility reasons, activates/disables all the security restriction features.Methods inherited from class hudson.remoting.ChannelBuilder
build, build, getBaseLoader, getCapability, getClassFilter, getDecorators, getExecutors, getHeaderStream, getJarCache, getMode, getName, getProperties, isArbitraryCallableAllowed, isRemoteClassLoadingAllowed, isRestricted, makeTransport, negotiate, with, withArbitraryCallableAllowed, withJarCacheOrDefault, withProperty, withProperty, withRemoteClassLoadingAllowed, withRoleChecker, withRoles, withRoles
-
Method Details
-
build
- Overrides:
build
in classChannelBuilder
- Throws:
IOException
-
build
- Throws:
IOException
-
build
- Overrides:
build
in classChannelBuilder
- Throws:
IOException
-
withBaseLoader
Description copied from class:ChannelBuilder
Specify the classloader used for deserializing remote commands. This is primarily related toChannel.getRemoteProperty(Object)
. Sometimes two parties communicate over a channel and pass objects around as properties, but those types might not be visible from the classloader loading theChannel
class. In such a case, specify a classloader so that those classes resolve. If null,Channel.class.getClassLoader()
is used.- Overrides:
withBaseLoader
in classChannelBuilder
-
withMode
Description copied from class:ChannelBuilder
The encoding to be used over the stream.- Overrides:
withMode
in classChannelBuilder
-
withCapability
Description copied from class:ChannelBuilder
Controls the capabilities that we'll advertise to the other side.- Overrides:
withCapability
in classChannelBuilder
-
withHeaderStream
Description copied from class:ChannelBuilder
If non-null, receive the portion of data inis
before the data goes into the "binary mode". This is useful when the established communication channel might include some data that might be useful for debugging/trouble-shooting.- Overrides:
withHeaderStream
in classChannelBuilder
-
withRestricted
Description copied from class:ChannelBuilder
For compatibility reasons, activates/disables all the security restriction features.- Overrides:
withRestricted
in classChannelBuilder
-
withJarCache
Description copied from class:ChannelBuilder
Sets the JAR cache storage.- Overrides:
withJarCache
in classChannelBuilder
- Parameters:
jarCache
- JAR Cache to be used. If a deprecatednull
value is passed, the behavior will be determined by theChannel
implementation.- Returns:
this
-
withoutJarCache
Description copied from class:ChannelBuilder
Resets JAR Cache setting to the default. The behavior will be determined by theChannel
implementation.- Overrides:
withoutJarCache
in classChannelBuilder
-
withClassFilter
Description copied from class:ChannelBuilder
Replaces theClassFilter
used by the channel. By default,ClassFilter.DEFAULT
is installed.- Overrides:
withClassFilter
in classChannelBuilder
-