Package com.alibaba.jstorm.daemon.worker.metrics

Examples of com.alibaba.jstorm.daemon.worker.metrics.MetricReporter


        .mkWorkerInstance(workerData.getConf());
    if (syncContainerHbThread != null) {
      threads.add(syncContainerHbThread);
    }

    MetricReporter metricReporter = workerData.getMetricsReporter();
    boolean isMetricsEnable = ConfigExtension
        .isEnablePerformanceMetrics(workerData.getStormConf());
    metricReporter.setEnable(isMetricsEnable);
    metricReporter.start();
    LOG.info("Start metrics reporter, enable performance metrics: "
        + isMetricsEnable);
   
    // create task heartbeat
    TaskHeartbeatRunable taskHB = new TaskHeartbeatRunable(workerData);
View Full Code Here


    generateMaps();

    contextMaker = new ContextMaker(this);
   
    metricReporter = new MetricReporter(this);

    LOG.info("Successfully create WorkerData");

  }
View Full Code Here

      // Stop metrics report if metrics monitor is disabled.
      try {
          StormMonitor monitor = zkCluster.get_storm_monitor(topologyId);
          if (null != monitor) {
              boolean newMetricsMonitor = monitor.getMetrics();
              MetricReporter metricReporter = workerData.getMetricsReporter();
              boolean oldMetricsMonitor = metricReporter.isEnable();
         
              if (oldMetricsMonitor != newMetricsMonitor) {
                  metricReporter.setEnable(newMetricsMonitor);
                  if (true == newMetricsMonitor) {
                      LOG.info("Start metrics reporter");
                  } else {
                    LOG.info("Stop metrics reporter");
                  }
View Full Code Here

TOP

Related Classes of com.alibaba.jstorm.daemon.worker.metrics.MetricReporter

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.