Package com.yammer.metrics.reporting

Examples of com.yammer.metrics.reporting.JmxReporter


  public JmxReporter get() {
    if (metricsRegistry == Metrics.defaultRegistry()) {
      return JmxReporter.getDefault();
    }

    final JmxReporter reporter = new JmxReporter(metricsRegistry);
    reporter.start();
    return reporter;
  }
View Full Code Here


       
        // The first StatsHTable will set up JMX reporting for region detail and server detail registries
        if(!jmxSetupDone) {
            synchronized (jmxSetupLock) {
                if(!jmxSetupDone) {
                    new JmxReporter(regionTimers).start();
                    new JmxReporter(serverTimers).start();
                    new JmxReporter(opTypeTimers).start();
                    jmxSetupDone = true;
                }
            }
        }
    }
View Full Code Here

   * @return new metrics registry
   */
  public static GiraphMetricsRegistry createWithOptional(String groupName,
    String type) {
    MetricsRegistry registry = new MetricsRegistry();
    return new GiraphMetricsRegistry(registry, new JmxReporter(registry),
        groupName, type);
  }
View Full Code Here

  public static SuperstepMetricsRegistry create(GiraphConfiguration conf,
      long superstep) {
    if (conf.metricsEnabled()) {
      MetricsRegistry registry = new MetricsRegistry();
      SuperstepMetricsRegistry superstepMetrics = new SuperstepMetricsRegistry(
          registry, new JmxReporter(registry),
          "giraph.superstep", String.valueOf(superstep));
      superstepMetrics.superstep = superstep;
      return superstepMetrics;
    } else {
      return createFake();
View Full Code Here

  public static SuperstepMetricsRegistry create(GiraphConfiguration conf,
      long superstep) {
    if (conf.metricsEnabled()) {
      MetricsRegistry registry = new MetricsRegistry();
      SuperstepMetricsRegistry superstepMetrics = new SuperstepMetricsRegistry(
          registry, new JmxReporter(registry),
          "giraph.superstep", String.valueOf(superstep));
      superstepMetrics.superstep = superstep;
      return superstepMetrics;
    } else {
      return createFake();
View Full Code Here

   * @return new metrics registry
   */
  public static GiraphMetricsRegistry createWithOptional(String groupName,
    String type) {
    MetricsRegistry registry = new MetricsRegistry();
    return new GiraphMetricsRegistry(registry, new JmxReporter(registry),
        groupName, type);
  }
View Full Code Here

    return factory._registry;
  }

  private MetricFactory() {
    _registry = new MetricsRegistry();
    _reporter = new JmxReporter(_registry);
  }
View Full Code Here

    });

    Metrics(Cluster.Manager manager) {
        this.manager = manager;
        if (manager.configuration.getMetricsOptions().isJMXReportingEnabled()) {
            this.jmxReporter = new JmxReporter(registry);
            this.jmxReporter.start();
        } else {
            this.jmxReporter = null;
        }
    }
View Full Code Here

    });

    Metrics(Cluster.Manager manager) {
        this.manager = manager;
        if (manager.configuration.getMetricsOptions().isJMXReportingEnabled()) {
            this.jmxReporter = new JmxReporter(registry);
            this.jmxReporter.start();
        } else {
            this.jmxReporter = null;
        }
    }
View Full Code Here

TOP

Related Classes of com.yammer.metrics.reporting.JmxReporter

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.