Class MetricMap

java.lang.Object
io.nosqlbench.engine.core.metrics.MetricMap
All Implemented Interfaces:
org.graalvm.polyglot.proxy.Proxy, org.graalvm.polyglot.proxy.ProxyObject

public class MetricMap extends Object implements org.graalvm.polyglot.proxy.ProxyObject
  • Field Details

  • Constructor Details

    • MetricMap

      public MetricMap(String name, String parent)
    • MetricMap

      public MetricMap()
  • Method Details

    • findOrCreateDottedParentPath

      public MetricMap findOrCreateDottedParentPath(String metricName)
    • findOrCreateDottedNodePath

      public MetricMap findOrCreateDottedNodePath(String nodeName)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • findOrCreateNodePath

      public MetricMap findOrCreateNodePath(String... names)
      Given an array of non-delimited component names, walk from the root node to each name, creating any needed nodes along the way.
      Parameters:
      names - the names of the nodes to traverse or create
      Returns:
      The MetricMap node in the node tree with the given path-wise address.
      Throws:
      InvalidParameterException - if any of the component names includes a delimiter
    • add

      public void add(String name, com.codahale.metrics.Metric metric)
    • remove

      public void remove(String name)
    • get

      public Object get(String key)
    • getKeys

      public Set<String> getKeys()
    • containsKey

      public boolean containsKey(String key)
    • getMember

      public Object getMember(String key)
      Specified by:
      getMember in interface org.graalvm.polyglot.proxy.ProxyObject
    • getMemberKeys

      public Object getMemberKeys()
      Specified by:
      getMemberKeys in interface org.graalvm.polyglot.proxy.ProxyObject
    • hasMember

      public boolean hasMember(String key)
      Specified by:
      hasMember in interface org.graalvm.polyglot.proxy.ProxyObject
    • putMember

      public void putMember(String key, org.graalvm.polyglot.Value value)
      Specified by:
      putMember in interface org.graalvm.polyglot.proxy.ProxyObject
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object