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

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


  }
 
  private void initUploadMetricThread(NimbusData data) {
    ScheduledExecutorService scheduleService = data.getScheduExec();
   
    MetricSendClient client;
    if (ConfigExtension.isAlimonitorMetricsPost(data.getConf())) {
        client = new AlimonitorClient(AlimonitorClient.DEFAUT_ADDR,
            AlimonitorClient.DEFAULT_PORT, true);
    } else {
      client = new MetricSendClient();
    }
   
    uploadMetric = new UploadMetricFromZK(data, client);
   
    scheduleService.scheduleWithFixedDelay(uploadMetric, 120, 60, TimeUnit.SECONDS);
View Full Code Here


    int port = ConfigExtension.getSupervisorDeamonHttpserverPort(conf);
    Httpserver httpserver = new Httpserver(port, conf);
    httpserver.start();
   
    //Step 8 start uploading every 60 secs
    MetricSendClient client;
    if (ConfigExtension.isAlimonitorMetricsPost(conf)) {
      client = new AlimonitorClient(AlimonitorClient.DEFAUT_ADDR,
          AlimonitorClient.DEFAULT_PORT, true);
    } else {
        client = new MetricSendClient();
    }
    UploadSupervMetric uploadMetric = new UploadSupervMetric(conf, stormClusterState,
        supervisorId, active, 60, client);
    AsyncLoopThread uploadMetricThread = new AsyncLoopThread(uploadMetric);
    threads.add(uploadMetricThread);
View Full Code Here

TOP

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

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.