Package jenkins.security
Class ChannelConfigurator
- java.lang.Object
-
- jenkins.security.ChannelConfigurator
-
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
CallableDirectionChecker.ChannelConfiguratorImpl
public abstract class ChannelConfigurator extends Object implements ExtensionPoint
Intercepts the new creation ofChannel
and tweak its configuration.- Since:
- 1.587 / 1.580.1
- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description ChannelConfigurator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExtensionList<ChannelConfigurator>
all()
All the registeredChannelConfigurator
s.void
onChannelBuilding(hudson.remoting.ChannelBuilder builder, Object context)
Called whenever a new channel is being built.
-
-
-
Method Detail
-
onChannelBuilding
public void onChannelBuilding(hudson.remoting.ChannelBuilder builder, @Nullable Object context)
Called whenever a new channel is being built.- Parameters:
builder
- Configures the newly built channel. The callee can call its methods to modify its settings.context
- The parameter that helps the callee determines what this channel is for. Legacy callers do not always provide this information, in which case this value might be null. Possible known values include:SlaveComputer
- When a channel is being established to talk to a agent.
Proc
- When
Channels.forProcess(String, ExecutorService, Process, OutputStream)
or overloads are used without a contextualSlaveComputer
.
-
all
public static ExtensionList<ChannelConfigurator> all()
All the registeredChannelConfigurator
s.
-
-