org.openqa.selenium.net
Class PortProber

java.lang.Object
  extended by org.openqa.selenium.net.PortProber

public class PortProber
extends Object


Field Summary
static int HIGHEST_PORT
           
static int START_OF_USER_PORTS
           
 
Method Summary
static int findFreePort()
           
static Callable<Integer> freeLocalPort(int port)
           
static boolean pollPort(int port)
           
static boolean pollPort(int port, int timeout, TimeUnit unit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HIGHEST_PORT

public static final int HIGHEST_PORT
See Also:
Constant Field Values

START_OF_USER_PORTS

public static final int START_OF_USER_PORTS
See Also:
Constant Field Values
Method Detail

findFreePort

public static int findFreePort()

freeLocalPort

public static Callable<Integer> freeLocalPort(int port)

pollPort

public static boolean pollPort(int port)

pollPort

public static boolean pollPort(int port,
                               int timeout,
                               TimeUnit unit)


Copyright © 2013. All rights reserved.