Interface Ports


@Contract public interface Ports
Management interfaces for all embedded ports
Author:
Jerome Dochez
  • Method Summary

    Modifier and Type
    Method
    Description
    createPort(int number)
    Creates a port, binds it to a port number and returns it
    Returns the list of allocated ports
  • Method Details

    • createPort

      Port createPort(int number) throws IOException
      Creates a port, binds it to a port number and returns it
      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

      Collection<Port> getPorts()
      Returns the list of allocated ports
      Returns:
      the allocated ports