Tabnine Logo
CountMetric.getValueAndReset
Code IndexAdd Tabnine to your IDE (free)

How to use
getValueAndReset
method
in
backtype.storm.metric.api.CountMetric

Best Java code snippets using backtype.storm.metric.api.CountMetric.getValueAndReset (Showing top 5 results out of 315)

origin: alibaba/jstorm

  public Object getValueAndReset() {
    Map ret = new HashMap();
    for (Map.Entry<String, CountMetric> e : _value.entrySet()) {
      ret.put(e.getKey(), e.getValue().getValueAndReset());
    }
    return ret;
  }
}
origin: com.n3twork.storm/storm-core

  public Object getValueAndReset() {
    Map ret = new HashMap();
    for(Map.Entry<String, CountMetric> e : _value.entrySet()) {
      ret.put(e.getKey(), e.getValue().getValueAndReset());
    }
    return ret;
  }
}
origin: com.alibaba.jstorm/jstorm-core

  public Object getValueAndReset() {
    Map ret = new HashMap();
    for (Map.Entry<String, CountMetric> e : _value.entrySet()) {
      ret.put(e.getKey(), e.getValue().getValueAndReset());
    }
    return ret;
  }
}
origin: com.twitter.heron/heron-storm

 public Object getValueAndReset() {
  Map<String, Object> ret = new HashMap<>();
  for (Map.Entry<String, CountMetric> e : value.entrySet()) {
   ret.put(e.getKey(), e.getValue().getValueAndReset());
  }
  return ret;
 }
}
origin: wurstmeister/storm-kafka-0.8-plus

public Map getMetricsDataMap() {
  Map ret = new HashMap();
  ret.put(_partition + "/fetchAPILatencyMax", _fetchAPILatencyMax.getValueAndReset());
  ret.put(_partition + "/fetchAPILatencyMean", _fetchAPILatencyMean.getValueAndReset());
  ret.put(_partition + "/fetchAPICallCount", _fetchAPICallCount.getValueAndReset());
  ret.put(_partition + "/fetchAPIMessageCount", _fetchAPIMessageCount.getValueAndReset());
  return ret;
}
backtype.storm.metric.apiCountMetricgetValueAndReset

Popular methods of CountMetric

  • <init>
  • incr
  • incrBy

Popular in Java

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • setContentView (Activity)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • JLabel (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now