Class GlassFishJmxPortType
java.lang.Object
org.jvnet.hudson.plugins.port_allocator.PortType
org.jvnet.hudson.plugins.port_allocator.GlassFishJmxPortType
- All Implemented Interfaces:
ExtensionPoint,Describable<PortType>,Serializable
GlassFish JMX port so that runaway GF instance can be terminated.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocate(AbstractBuild<?, ?> build, PortAllocationManager manager, int prefPort, Launcher launcher, BuildListener buildListener) Allocates a new port for a given build.Methods inherited from class org.jvnet.hudson.plugins.port_allocator.PortType
getFixedPort, isFixedPort
-
Field Details
-
userName
GlassFish admin user name. -
password
GlassFish admin password.
-
-
Constructor Details
-
GlassFishJmxPortType
-
-
Method Details
-
allocate
public Port allocate(AbstractBuild<?, ?> build, PortAllocationManager manager, int prefPort, Launcher launcher, BuildListener buildListener) throws IOException, InterruptedExceptionDescription copied from class:PortTypeAllocates a new port for a given build.- Specified by:
allocatein classPortType- Parameters:
build- the build that will use the allocated portmanager- can be used to assign a new TCP port numberprefPort- port number allocated to this type the last timelauncher- launcher used to perform operations for the buildbuildListener- listener that receives information about the build- Throws:
IOExceptionInterruptedException
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<PortType>- Specified by:
getDescriptorin classPortType
-