Class ParamsParserSource

java.lang.Object
io.nosqlbench.nb.api.config.params.ParamsParserSource
All Implemented Interfaces:
ConfigSource

public class ParamsParserSource extends Object implements ConfigSource
  • Constructor Details

    • ParamsParserSource

      public ParamsParserSource()
  • Method Details

    • canRead

      public boolean canRead(Object source)
      Description copied from interface: ConfigSource
      Test the input data format to see if it appears valid for reading with this config source.
      Specified by:
      canRead in interface ConfigSource
      Parameters:
      source - An object of any kind
      Returns:
      true if the text is parsable by this config source
    • getAll

      public List<ElementData> getAll(String name, Object source)
      Description copied from interface: ConfigSource
      Read the source of data into a collection of config elements
      Specified by:
      getAll in interface ConfigSource
      Parameters:
      source - An object of any kind
      Returns:
      a collection of Elements
    • getName

      public String getName()
      Description copied from interface: ConfigSource
      If an element was created with a name, this name must be returned as the canonical name. If it was not, then the name field can provide the name.
      Specified by:
      getName in interface ConfigSource
      Returns:
      A name, or null if it is not given nor present in the name field