public class SimulatorConfig extends Object
If a file with name "toop-simulator.conf" exists in the current directory, then it is read, otherwise, the classpath is checked for /toop-sumlator.conf and if it exists its read.
If none of the above paths are valid, then an Exception is thrown.
| Modifier and Type | Field and Description |
|---|---|
static int |
connectorPort
The port that the connector HTTP server will be published on
|
static int |
dcPort
The port that the /to-dc endpoint will be published on.
|
static String |
dcURL
the http endpoint for an actual /to-dc (iff it is not simulated)
|
static int |
dpPort
The port that the /to-dp endpoint will be published on.
|
static String |
dpURL
the http endpoint for an actual /to-dp (iff it is not simulated)
|
static boolean |
mockGateway
A flag that indicates whether the gateway communication should be mocked (
true) or not (false) |
static SimulationMode |
mode
Simulation mode.
|
| Constructor and Description |
|---|
SimulatorConfig() |
public static final SimulationMode mode
public static final int dcPort
public static final int dpPort
public static final String dcURL
public static final String dpURL
public static final int connectorPort
public static final boolean mockGateway
true) or not (false)Copyright © 2019–2020 toop.eu. All rights reserved.