Package io.ryos.rhino.sdk
Class Simulation
- java.lang.Object
-
- io.ryos.rhino.sdk.Simulation
-
public class Simulation extends java.lang.Object
Supervisor which manages set up and run benchmark tests. The class follows the steps required to initiate a test execution i.e configure and search for benchmark jobs by usingSimulationJobsScanner
. Once jobs are ready to execute, the implementation starts each one while providing a context to them.A
Context
instance is a storage associated with each benchmark job.- Since:
- 1.0.0
- Author:
- Erhan Bagdemir
- See Also:
SimulationConfig
,SimulationJobsScanner
,Context
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<SimulationMetadata>
getData()
static Simulation
getInstance(java.lang.String path, java.lang.Class<?> simulationClass)
SimulationMetadata
getMetadata()
void
start()
void
stop()
void
times(int numberOfRepeats)
void
verify()
-
-
-
Method Detail
-
getInstance
public static Simulation getInstance(java.lang.String path, java.lang.Class<?> simulationClass)
-
getData
public static java.util.Optional<SimulationMetadata> getData()
-
verify
public void verify()
-
times
public void times(int numberOfRepeats)
-
start
public void start()
-
stop
public void stop()
-
getMetadata
public SimulationMetadata getMetadata()
-
-