Class PortAllocBridge


  • public class PortAllocBridge
    extends java.lang.Object
    API for allocating network ports This class acts as a bridge between NetworkPortRequestor and HostPorts for a single call to allocatePorts(), gathering the resulting port allocations in a list of integers.
    Author:
    arnej
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int allocatePort​(java.lang.String suffix)  
      int requirePort​(int port, java.lang.String suffix)  
      java.util.List<java.lang.Integer> result()  
      int wantPort​(int port, java.lang.String suffix)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • requirePort

        public int requirePort​(int port,
                               java.lang.String suffix)
      • wantPort

        public int wantPort​(int port,
                            java.lang.String suffix)
      • allocatePort

        public int allocatePort​(java.lang.String suffix)
      • result

        public java.util.List<java.lang.Integer> result()