Package org.glassfish.kernel.embedded
Class PortsImpl
- java.lang.Object
-
- org.glassfish.kernel.embedded.PortsImpl
-
-
Constructor Summary
Constructors Constructor Description PortsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PortcreatePort(int number)Creates a port, binds it to a port number and returns itCollection<Port>getPorts()Returns the list of allocated portsvoidremove(Port port)
-
-
-
Method Detail
-
createPort
public Port createPort(int number) throws IOException
Description copied from interface:PortsCreates a port, binds it to a port number and returns it- Specified by:
createPortin interfacePorts- Parameters:
number- the port number- Returns:
- the bound port to the port number
- Throws:
IOException- if the port is already taken or another network exception occurs
-
getPorts
public Collection<Port> getPorts()
Description copied from interface:PortsReturns the list of allocated ports
-
remove
public void remove(Port port)
-
-