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

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

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

origin: dstl/baleen

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

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

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

 @Test
 public void testGetMeter() {
  metrics.getMeter("meter");
  verify(factory).getMeter(anyString(), eq("meter"));
 }
}
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.metricsMetricsFactorygetMeter

Javadoc

Get or create a metric meter, 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.
  • getHistogram
    Get or create a metric histogram, 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
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Top PhpStorm plugins
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