Tabnine Logo
MetricsFactory.getHistogram
Code IndexAdd Tabnine to your IDE (free)

How to use
getHistogram
method
in
uk.gov.dstl.baleen.core.metrics.MetricsFactory

Best Java code snippets using uk.gov.dstl.baleen.core.metrics.MetricsFactory.getHistogram (Showing top 6 results out of 315)

origin: dstl/baleen

/**
 * Get or create a new histogram.
 *
 * @param name
 * @return
 */
public Histogram getHistogram(String name) {
 return factory.getHistogram(base, name);
}
origin: uk.gov.dstl.baleen/baleen-core

/**
 * Get or create a new histogram.
 *
 * @param name
 * @return
 */
public Histogram getHistogram(String name) {
 return factory.getHistogram(base, name);
}
origin: dstl/baleen

@Test
public void testGetHistogram() {
 Histogram a = metrics.getHistogram(MetricsFactoryTest.class, "a");
 assertNotNull(a);
 assertSame(a, metrics.getHistogram(MetricsFactoryTest.class, "a"));
 assertNotEquals(a, metrics.getHistogram(MetricsFactoryTest.class, "b"));
 Histogram b = metrics.getHistogram(MetricsFactoryTest.class.getCanonicalName(), "b");
 assertNotNull(b);
 assertSame(b, metrics.getHistogram(MetricsFactoryTest.class.getCanonicalName(), "b"));
 assertNotEquals(b, metrics.getHistogram(MetricsFactoryTest.class.getCanonicalName(), "c"));
}
origin: dstl/baleen

@Test
public void testGetHistogram() {
 metrics.getHistogram("histogram");
 verify(factory).getHistogram(anyString(), eq("histogram"));
}
origin: dstl/baleen

@Test
public void testRemove() {
 metrics.getCounter(MetricsFactoryTest.class, "removeC");
 metrics.getTimer(MetricsFactoryTest.class, "removeT");
 metrics.getHistogram(MetricsFactoryTest.class, "removeH");
 metrics.getMeter(MetricsFactoryTest.class, "removeM");
 assertFalse(metrics.getRegistry().getMetrics().isEmpty());
 metrics.removeAll();
 assertTrue(metrics.getRegistry().getMetrics().isEmpty());
}
origin: dstl/baleen

@Test
public void testDoesntCrash() {
 MetricsFactory factory = MetricsFactory.getInstance();
 factory.getRegistry().addListener(new LoggingMetricListener());
 assertNotNull(factory.getCounter(LoggingMetricListenerTest.class, "a"));
 assertNotNull(factory.getHistogram(LoggingMetricListenerTest.class, "b"));
 assertNotNull(factory.getMeter(LoggingMetricListenerTest.class, "c"));
 assertNotNull(factory.getTimer(LoggingMetricListenerTest.class, "d"));
 factory.removeAll();
}
uk.gov.dstl.baleen.core.metricsMetricsFactorygetHistogram

Javadoc

Get or create a metric histogram, with default naming.

Popular methods of MetricsFactory

  • getMetrics
    Get a new metrics provider for a specific class.
  • getInstance
    Get singleton instance
  • configure
    Configure the instance.
  • getCounter
    Get or create a metric counter, with default naming.
  • getMeter
    Get or create a metric meter, with default naming.
  • getPipelineMetrics
    Get an instance of PipelineMetrics for the given pipeline name
  • getRegistry
    Get the underlying metrics registry.
  • getTimer
    Get or create a metric timer, with default naming.
  • makeName
    Create a name using the default scheme.
  • removeAll
    Remove all metrics from the registry
  • start
  • stop
  • start,
  • stop,
  • <init>,
  • report

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • setContentView (Activity)
  • getApplicationContext (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • 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
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Top plugins for WebStorm
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