Class Simulation


  • public class Simulation
    extends java.lang.Object
    Simulation is representation of a single performance testing job. The instances of Simulation is created by using the metadata provided on annotated benchmark entities. Simulation entities do comprise scenarios, that are run per user on a single thread. For each scenario there will be a new Simulation instance created so as to run the scenario isolated on a single thread.

    The job instances are created by SimulationJobsScanner classes.

    Since:
    1.0.0
    Author:
    Erhan Bagdemir
    See Also:
    Simulation
    • Method Detail

      • prepare

        public void prepare​(UserSession userSession)
      • cleanUp

        public void cleanUp​(UserSession userSession)
      • run

        public Recorder run​(UserSession userSession,
                            Scenario scenario)
        The method runs the scenarios for a user provided.
        Parameters:
        userSession - User session, to be injected.
        scenario - Scenario, to be run.
        Returns:
        Recorder instance which contains simulation logs.
      • stop

        public void stop()
      • getSimulationName

        public java.lang.String getSimulationName()
      • getInjectUser

        public int getInjectUser()
      • getRampUp

        public int getRampUp()
      • getDuration

        public int getDuration()
      • getRunnableScenarios

        public java.util.List<Scenario> getRunnableScenarios()