Package com.vaadin.flow.testutil.net
Class LinuxEphemeralPortRangeDetector
- java.lang.Object
-
- com.vaadin.flow.testutil.net.LinuxEphemeralPortRangeDetector
-
- All Implemented Interfaces:
EphemeralPortRangeDetector
public class LinuxEphemeralPortRangeDetector extends Object implements EphemeralPortRangeDetector
Calculate the available port range for linux system or the default fixed range if ip_local_port_range is not defined.Derived from SeleniumHQ / selenium
For internal use only. May be renamed or removed in a future release.
-
-
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()Get port range detector instance.intgetLowestEphemeralPort()Returns the first port in the ephemeral range
-
-
-
Method Detail
-
getInstance
public static LinuxEphemeralPortRangeDetector getInstance()
Get port range detector instance.- Returns:
- port range detector instance
-
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 last port that may be free
-
-