Codota Logo
CodahaleMetricsEngine.addReporter
Code IndexAdd Codota to your IDE (free)

How to use
addReporter
method
in
com.nike.riposte.metrics.codahale.CodahaleMetricsEngine

Best Java code snippets using com.nike.riposte.metrics.codahale.CodahaleMetricsEngine.addReporter (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: Nike-Inc/riposte

public MetricsTestConfig() {
  try {
    port = ComponentTestUtils.findFreePort();
  }
  catch (IOException e) {
    throw new RuntimeException("Couldn't allocate port", e);
  }
  CodahaleMetricsEngine metricsEngine = new CodahaleMetricsEngine()
    .addReporter(new DefaultSLF4jReporterFactory())
    .addReporter(new RiposteGraphiteReporterFactory("test.metrics.stuff", "doesnotexist.nikecloud.com", 2003))
    .reportJvmMetrics()
    .start();
  metricsListener = new CodahaleMetricsListener(metricsEngine.getMetricsCollector());
  metricsListener.initEndpointAndServerConfigMetrics(this);
}
origin: Nike-Inc/riposte

@Test
public void testStartup() {
  SimpleTestReporter str = new SimpleTestReporter();
  WeirdScheduledTestReporter wschtr = new WeirdScheduledTestReporter();
  ScheduledTestReporter schtr = new ScheduledTestReporter();
  BrokenReporter br = new BrokenReporter();
  CodahaleMetricsEngine engine =
    new CodahaleMetricsEngine().addReporter(wschtr).addReporter(schtr).reportJvmMetrics().start();
  assertTrue(wschtr.started());
  assertTrue(schtr.started());
  assertFalse(wschtr.stopped());
  assertFalse(schtr.stopped());
  engine.addReporter(str);
  assertTrue(str.started());
  assertFalse(engine.startReporter(br));
  assertFalse(engine.stopReporter(br));
  engine.stop();
  assertTrue(str.stopped());
  assertTrue(schtr.stopped());
  assertTrue(wschtr.stopped());
}
com.nike.riposte.metrics.codahaleCodahaleMetricsEngineaddReporter

Javadoc

Add a Reporter to the engine. If the engine has been started already, the reporter will be started as it is added.

Popular methods of CodahaleMetricsEngine

  • startReporter
  • <init>
    Provides a CodahaleMetricsEngine with the default CodahaleMetricsCollector and some ReporterFactorie
  • getMetricsCollector
    Get the CodahaleMetricsCollector that is being used by this engine instance
  • reportJvmMetrics
    Adds JVM MetricSets to this engine. By default JVM metrics are not placed in the Registry
  • start
    Starts the Reporters
  • stop
    Stops the Reporters
  • stopReporter

Popular in Java

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • getSharedPreferences (Context)
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JTable (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now