public class PortFinder extends Object
| Modifier and Type | Field and Description |
|---|---|
private static int |
MAX_PORT_NUMBER |
| Constructor and Description |
|---|
PortFinder() |
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
available(int port)
Returns true if the specified port is available on this host.
|
static int |
findFreePort(int minPortNumber)
Finds a free port between minPortNumber and MAX_PORT_NUMBER
|
private static final int MAX_PORT_NUMBER
public static int findFreePort(int minPortNumber)
private static boolean available(int port)
port - the port to checkCopyright © 2014 Immobilien Scout GmbH. All rights reserved.