Class PortAllocator
java.lang.Object
hudson.model.AbstractDescribableImpl<BuildWrapper>
hudson.tasks.BuildWrapper
org.jvnet.hudson.plugins.port_allocator.PortAllocator
- All Implemented Interfaces:
ExtensionPoint
,Describable<BuildWrapper>
Allocates TCP Ports on a Computer for consumption and sets it as
environment variables, see configuration
This just mediates between different Jobs running on the same Computer by assigning free ports and its the jobs responsibility to open and close the ports.
- Author:
- Rama Pulavarthi
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.tasks.BuildWrapper
BuildWrapper.Environment
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionsetUp
(AbstractBuild build, Launcher launcher, BuildListener listener) Methods inherited from class hudson.tasks.BuildWrapper
all, decorateLauncher, decorateLogger, getProjectAction, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, preCheckout, setUp
-
Field Details
-
ports
-
DESCRIPTOR
-
-
Method Details
-
setUp
public BuildWrapper.Environment setUp(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException - Overrides:
setUp
in classBuildWrapper
- Throws:
IOException
InterruptedException
-
getDisplayName
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<BuildWrapper>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<BuildWrapper>
-