org.openqa.selenium.net
Class PortProber

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

public class PortProber
extends java.lang.Object


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

Constructor Detail

PortProber

public PortProber()
Method Detail

findFreePort

public static int findFreePort()

freeLocalPort

public static java.util.concurrent.Callable<java.lang.Integer> freeLocalPort(int port)

pollPort

public static boolean pollPort(int port)

pollPort

public static boolean pollPort(int port,
                               int timeout,
                               java.util.concurrent.TimeUnit unit)


Copyright © 2011. All Rights Reserved.