Class PortManager

java.lang.Object
org.apache.bookkeeper.util.PortManager

public class PortManager extends Object
Port manager provides free ports to allows multiple instances of the bookkeeper tests to run at once.
  • Constructor Details

    • PortManager

      public PortManager()
  • Method Details

    • nextFreePort

      public static int nextFreePort()
      Return an available port.
      Returns:
      available port.