public class RunnerPortProvider extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_PORT_NUMBER |
static int |
MIN_PORT_NUMBER |
static String |
MUNIT_SERVER_PORT |
| Constructor and Description |
|---|
RunnerPortProvider() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
findFreePort()
Looks for a free port in the predefined range
|
Integer |
getPort()
Returns the port number to be used.
|
Optional<Integer> |
getPredefinedPort()
Looks for a port number defined in a the property MUNIT_SERVER_PORT
|
public static final int MIN_PORT_NUMBER
public static final int MAX_PORT_NUMBER
public static final String MUNIT_SERVER_PORT
public Integer getPort() throws IllegalPortDefinitionException
IllegalPortDefinitionExceptionpublic Optional<Integer> getPredefinedPort()
public Integer findFreePort()
Copyright © 2019. All rights reserved.