Package org.openqa.selenium.net
Class LinuxEphemeralPortRangeDetector
- java.lang.Object
-
- org.openqa.selenium.net.LinuxEphemeralPortRangeDetector
-
- All Implemented Interfaces:
EphemeralPortRangeDetector
public class LinuxEphemeralPortRangeDetector extends java.lang.Object implements EphemeralPortRangeDetector
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHighestEphemeralPort()Returns the last port that could be searched for free portsstatic LinuxEphemeralPortRangeDetectorgetInstance()intgetLowestEphemeralPort()Returns the first port in the ephemeral range
-
-
-
Method Detail
-
getInstance
public static LinuxEphemeralPortRangeDetector getInstance()
-
getLowestEphemeralPort
public int getLowestEphemeralPort()
Description copied from interface:EphemeralPortRangeDetectorReturns the first port in the ephemeral range- Specified by:
getLowestEphemeralPortin interfaceEphemeralPortRangeDetector- Returns:
- The first ephemeral port
-
getHighestEphemeralPort
public int getHighestEphemeralPort()
Description copied from interface:EphemeralPortRangeDetectorReturns the last port that could be searched for free ports- Specified by:
getHighestEphemeralPortin interfaceEphemeralPortRangeDetector- Returns:
- The first port that may be free
-
-