Class ScenarioHandle

java.lang.Object
org.acemq.workloads.scenario.ScenarioHandle

public final class ScenarioHandle extends Object
A scenario in progress.
  • Method Details

    • scenario

      public Scenario scenario()
    • stop

      public void stop()
      Ends the run early and reports on what it measured.

      Not an abort: producers stop, consumers finish what is in flight, and the report covers however long the measured window actually lasted. It is marked as stopped early, so nobody reads a twenty-second window as if it were the two minutes that were asked for.

    • isStopping

      public boolean isStopping()
    • isRunning

      public boolean isRunning()
    • report

      Returns:
      the report, or an exceptional completion if the run could not be made
    • toString

      public String toString()
      Overrides:
      toString in class Object