Package com.vaadin.flow.testutil.net
Class LinuxEphemeralPortRangeDetector
java.lang.Object
com.vaadin.flow.testutil.net.LinuxEphemeralPortRangeDetector
- All Implemented Interfaces:
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
Modifier and TypeMethodDescriptionintReturns the last port that could be searched for free portsGet port range detector instance.intReturns the first port in the ephemeral range
-
Method Details
-
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
-