org.qi4j.test.util
Class FreePortFinder

java.lang.Object
  extended by org.qi4j.test.util.FreePortFinder

public class FreePortFinder
extends java.lang.Object


Constructor Summary
FreePortFinder()
           
 
Method Summary
static int findFreePortOnIface(java.net.InetAddress address)
           
static int findFreePortOnIface(java.net.InetAddress address, int prefered)
           
static int findFreePortOnLoopback()
           
static int findFreePortOnLoopback(int prefered)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreePortFinder

public FreePortFinder()
Method Detail

findFreePortOnLoopback

public static int findFreePortOnLoopback()
                                  throws java.io.IOException
Throws:
java.io.IOException

findFreePortOnLoopback

public static int findFreePortOnLoopback(int prefered)
                                  throws java.io.IOException
Throws:
java.io.IOException

findFreePortOnIface

public static int findFreePortOnIface(java.net.InetAddress address)
                               throws java.io.IOException
Throws:
java.io.IOException

findFreePortOnIface

public static int findFreePortOnIface(java.net.InetAddress address,
                                      int prefered)
                               throws java.io.IOException
Throws:
java.io.IOException