Enum Class CmdType

java.lang.Object
java.lang.Enum<CmdType>
io.nosqlbench.engine.cmdstream.CmdType
All Implemented Interfaces:
Serializable, Comparable<CmdType>, Constable

public enum CmdType extends Enum<CmdType>
Command verbs define the names and possible parameters for valid commands. One special type known as 'indirect' encodes verbs which are not directly mapped to specific command implementations. This type is resolved based on the available commands in the runtime, or an error is thrown.
  • Enum Constant Details

    • script

      public static final CmdType script
    • java

      public static final CmdType java
    • fragment

      public static final CmdType fragment
    • container

      public static final CmdType container
    • indirect

      public static final CmdType indirect
  • Method Details

    • values

      public static CmdType[] 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 CmdType 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
    • anyMatches

      public static boolean anyMatches(String s)
    • getPositionalArgNames

      public String[] getPositionalArgNames()
    • valueOfAnyCaseOrIndirect

      public static CmdType valueOfAnyCaseOrIndirect(String cmdname)
    • getPositionalArgs

      public CmdParam<?>[] getPositionalArgs()
    • getNamedParam

      public CmdParam<?> getNamedParam(String varname)