Package org.openqa.selenium.net
Class PortProber
- java.lang.Object
-
- org.openqa.selenium.net.PortProber
-
public class PortProber extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
HIGHEST_PORT
static int
START_OF_USER_PORTS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
findFreePort()
static boolean
pollPort(int port)
static boolean
pollPort(int port, int timeout, java.util.concurrent.TimeUnit unit)
static void
waitForPortUp(int port, int timeout, java.util.concurrent.TimeUnit unit)
-
-
-
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()
-
pollPort
public static boolean pollPort(int port)
-
pollPort
public static boolean pollPort(int port, int timeout, java.util.concurrent.TimeUnit unit)
-
waitForPortUp
public static void waitForPortUp(int port, int timeout, java.util.concurrent.TimeUnit unit)
-
-