Package io.ryos.rhino.sdk
Class SimulationSpecImpl
- java.lang.Object
-
- io.ryos.rhino.sdk.SimulationSpecImpl
-
- All Implemented Interfaces:
SimulationSpec
public class SimulationSpecImpl extends java.lang.Object implements SimulationSpec
Supervisor type 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
- Author:
- Erhan Bagdemir
- See Also:
SimulationConfig
,SimulationJobsScanner
,Context
-
-
Constructor Summary
Constructors Constructor Description SimulationSpecImpl(java.lang.String path, java.lang.String simulationName)
Constructs a new instance ofSimulationSpecImpl
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
start()
Execute all tests, detected by scanning the paths defined in the configuration.void
stop()
Stop all running tests.
-
-
-
Constructor Detail
-
SimulationSpecImpl
public SimulationSpecImpl(java.lang.String path, java.lang.String simulationName)
Constructs a new instance ofSimulationSpecImpl
.- Parameters:
path
- Path to properties file.simulationName
- Simulation name.
-
-
Method Detail
-
start
public void start()
Description copied from interface:SimulationSpec
Execute all tests, detected by scanning the paths defined in the configuration.- Specified by:
start
in interfaceSimulationSpec
-
stop
public void stop()
Description copied from interface:SimulationSpec
Stop all running tests.- Specified by:
stop
in interfaceSimulationSpec
-
-