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

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

Best Java code snippets using com.nike.riposte.metrics.codahale.CodahaleMetricsEngine.startReporter (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

/**
 * Add a Reporter to the engine.  If the engine has been started already, the reporter will be started as it is
 * added.
 *
 * @param reporter
 *     the ReporterFactory to add
 */
public CodahaleMetricsEngine addReporter(ReporterFactory reporter) {
  reporters.add(reporter);
  if (started) {
    startReporter(reporter);
  }
  return 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.codahaleCodahaleMetricsEnginestartReporter

Popular methods of CodahaleMetricsEngine

  • <init>
    Provides a CodahaleMetricsEngine with the default CodahaleMetricsCollector and some ReporterFactorie
  • addReporter
    Add a Reporter to the engine. If the engine has been started already, the reporter will be started a
  • 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

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • getContentResolver (Context)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • Path (java.nio.file)
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