public class BaseSimulator extends Object implements Simulator
| Constructor and Description |
|---|
BaseSimulator(int port)
The port at which the simulator will run.
|
| Modifier and Type | Method and Description |
|---|---|
org.simpleframework.http.core.Container |
getActualContainer() |
int |
getPort() |
String |
getSimulatorName() |
boolean |
isRunning() |
Simulator |
restApi(Api apiOrder) |
Simulator |
run()
Runs the simulator and returns the current state of the simulator.
|
void |
setActualContainer(org.simpleframework.http.core.Container actualContainer) |
void |
setSimulatorName(String simulatorName) |
void |
start()
Starts the simulator at the supplied port exposing the end point.
|
void |
stop()
Stops the simulator.
|
public BaseSimulator(int port)
port - public void start()
public String getSimulatorName()
public void setSimulatorName(String simulatorName)
public org.simpleframework.http.core.Container getActualContainer()
public void setActualContainer(org.simpleframework.http.core.Container actualContainer)
Copyright © 2016. All Rights Reserved.