public final class WSSimulator
extends java.lang.Object
| Constructor and Description |
|---|
WSSimulator() |
| Modifier and Type | Method and Description |
|---|---|
static int |
addSimulation(java.io.File echoSimulationAsYaml)
Adds a simulation from a YAML file
|
static void |
addSimulation(java.lang.String yamlString)
Apply a simulation to be emulated
|
static int |
addSimulation(WSSimulation WSSimulation)
Apply a simulation to be emulated
|
static void |
addSimulationOnClasspath(java.lang.String classpathLocation)
Apply a simulation to be emulated
|
static void |
addSimulations(java.util.Collection<java.io.File> simulations)
adds a collection of simulations to the simulator.
|
static int |
calledCount(int simulationId)
Holds the times a simulation has been called.
|
static int |
findSimulationIdByPath(java.lang.String path)
Return the ID of a simulation path based on its logical path
|
static int |
loadedSimulationCount()
Returns the count of all simulations that are loaded within the simulator.
|
static void |
setPort(int port)
Sets the port to start the http server.
|
static void |
shutdown()
Shuts down the simulator
|
public static void addSimulation(@NotNull
java.lang.String yamlString)
yamlString - YAML as a Stringpublic static void addSimulationOnClasspath(@NotNull
java.lang.String classpathLocation)
classpathLocation - YAML location on classpathpublic static int addSimulation(@NotNull
WSSimulation WSSimulation)
WSSimulation - the WSSimulationpublic static int addSimulation(@NotNull
java.io.File echoSimulationAsYaml)
echoSimulationAsYaml - the yaml filepublic static void shutdown()
public static void setPort(int port)
port - the port numberpublic static void addSimulations(java.util.Collection<java.io.File> simulations)
simulations - the collection of files to add to the emaulatorpublic static int loadedSimulationCount()
public static int calledCount(int simulationId)
simulationId - - the simulation idpublic static int findSimulationIdByPath(@NotNull
java.lang.String path)
path - the path that the simulation