Package org.springside.modules.metrics.reporter

Examples of org.springside.modules.metrics.reporter.ReportScheduler$NamedThreadFactory


  private boolean graphiteEnabled = false;

  @PostConstruct
  public void start() {
    Slf4jReporter slf4jReporter = new Slf4jReporter();
    scheduler = new ReportScheduler(MetricRegistry.INSTANCE, slf4jReporter);

    if (graphiteEnabled) {
      GraphiteReporter graphiteReporter = new GraphiteReporter(new InetSocketAddress("localhost", 2003));
      scheduler.addReporter(graphiteReporter);
    }
View Full Code Here


    runReport(new GraphiteReporter(new InetSocketAddress("localhost", 2003)));
  }

  @Test
  public void schedulerStartStop() throws InterruptedException {
    ReportScheduler scheduler = new ReportScheduler(new MetricRegistry(), new ConsoleReporter());
    scheduler.start(1, TimeUnit.SECONDS);
    Thread.sleep(2000);
    scheduler.stop();
  }
View Full Code Here

      clock.increaseTime(75);
      timerContext.stop();
    }

    // totally 2 seconds past
    ReportScheduler scheduler = new ReportScheduler(metricRegistry, reporter);
    scheduler.report();
  }
View Full Code Here

TOP

Related Classes of org.springside.modules.metrics.reporter.ReportScheduler$NamedThreadFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.