Enum Class SimRateSpec.Verb

java.lang.Object
java.lang.Enum<SimRateSpec.Verb>
io.nosqlbench.engine.api.activityapi.simrate.SimRateSpec.Verb
All Implemented Interfaces:
Serializable, Comparable<SimRateSpec.Verb>, Constable
Enclosing class:
SimRateSpec

public static enum SimRateSpec.Verb extends Enum<SimRateSpec.Verb>
Rate limiters can be put into motion in different modes to suit different scenarios. This is mostly to support advanced scripting capability. When the verb is not specified in a SimRateSpec, then it is started immediately as a user would expect.
  • Enum Constant Details

    • configure

      public static final SimRateSpec.Verb configure
      Specify that a rate limiter should only be configured without affecting its running state. If the rate limiter is already running, then the configuration should take effect immediately. A rate limiter will be created automatically if needed. Configurations that do not effectively change the rate limiter are ignored. This does not automatically start the rate limiter. It will need to be started explicitly before it is used.
    • start

      public static final SimRateSpec.Verb start
      The default behavior for a rate limiter. This means that the rate limiter should be started at the time this rate spec is applied. The start time of a rate limiter is significant in that it determines both the calculated average rate and the accumulated wait time from slow callers. In order to start, a rate limiter will be configured automatically, if the provided rate spec would cause a change to the configuration. If a rate limiter is started that is already running, an error should be thrown. If it is desired to ignore this condition, the restart should be used instead.
    • restart

      public static final SimRateSpec.Verb restart
      The restart action on a rate limiter causes it to be re-initialized as if it were just being started for the first time. This causes any accumulated wait time or time resources to be zeroed. This type of specifier can be useful, for example, when iterating on a workload with different target rates, where each iteration is independent of the others. In order to restart, a rate limiter will be configured if necessary.
    • stop

      public static final SimRateSpec.Verb stop
  • Method Details

    • values

      public static SimRateSpec.Verb[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SimRateSpec.Verb valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null