public class Simulator
extends java.lang.Object
| Constructor and Description |
|---|
Simulator() |
| Modifier and Type | Method and Description |
|---|---|
Simulator |
addSimulations(java.util.Collection<WSSimulation> simulations)
adds a collection of simulations to the simulator.
|
WSSimulation |
findSimulation(java.lang.String path,
HttpMethod httpMethod)
Return simulation path based on its logical path
|
WSSimulation |
findSimulationByName(java.lang.String name)
Return the Simulation of a simulation path based on its name.
|
int |
findSimulationId(java.lang.String path,
HttpMethod httpMethod)
Return the ID of a simulation path based on its logical path
|
java.util.List<WSSimulation> |
findSimulationsByPath(java.lang.String path,
HttpMethod httpMethod)
Return all simulations listening on a path based on its logical path
|
java.util.Collection<WSSimulation> |
findSimulationsNamespace(java.lang.String namespace)
Return the simulations of a given namespace.
|
int |
loadedSimulationCount()
Returns the count of all simulations that are loaded within the simulator.
|
void |
setPort(int port) |
void |
shutdown()
Shuts down the simulator
|
public void setPort(int port)
@NotNull public Simulator addSimulations(java.util.Collection<WSSimulation> simulations)
simulations - the collection of files to add to the emaulatorpublic int loadedSimulationCount()
public java.util.Collection<WSSimulation> findSimulationsNamespace(@NotNull java.lang.String namespace)
namespace - the namespace to search against.public WSSimulation findSimulation(@NotNull java.lang.String path, @NotNull HttpMethod httpMethod)
path - the path that the simulationhttpMethod - the httpmethod of the specificationSimulationNotFoundException - when simulation isn't foundpublic int findSimulationId(@NotNull
java.lang.String path,
@NotNull
HttpMethod httpMethod)
path - the path that the simulationhttpMethod - the httpmethod of the specificationpublic java.util.List<WSSimulation> findSimulationsByPath(@NotNull java.lang.String path, @NotNull HttpMethod httpMethod)
path - the path that the simulationhttpMethod - the httpmethod of the specificationSimulationNotFoundException - when simulation isn't foundpublic WSSimulation findSimulationByName(@NotNull java.lang.String name)
name - the name of the simulationpublic void shutdown()