Class PortFinder


  • public class PortFinder
    extends Object
    • Constructor Detail

      • PortFinder

        public PortFinder​(Collection<com.yahoo.config.provision.NetworkPorts.Allocation> allocations)
    • Method Detail

      • use

        public void use​(com.yahoo.config.provision.NetworkPorts.Allocation allocation)
        force add the given allocation, removing any conflicting ones
      • findPort

        public int findPort​(com.yahoo.config.provision.NetworkPorts.Allocation request,
                            String host)
      • isFree

        public boolean isFree​(int port)
      • allocations

        public Collection<com.yahoo.config.provision.NetworkPorts.Allocation> allocations()