Class PortFinder

java.lang.Object
com.yahoo.vespa.model.PortFinder

public class PortFinder extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    PortFinder(Collection<com.yahoo.config.provision.NetworkPorts.Allocation> allocations)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Collection<com.yahoo.config.provision.NetworkPorts.Allocation>
     
    int
    findPort(com.yahoo.config.provision.NetworkPorts.Allocation request, String host)
     
    boolean
    isFree(int port)
     
    void
    use(com.yahoo.config.provision.NetworkPorts.Allocation allocation)
    force add the given allocation, removing any conflicting ones

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PortFinder

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

    • 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()