Package com.taobao.top.analysis.util

Examples of com.taobao.top.analysis.util.NamedThreadFactory


  @Override
  public void init() throws AnalysisException {
    cache = new ConcurrentHashMap<String, SlaveMonitorInfoContainer>();
    jobExecutionLogCache = new ConcurrentHashMap<String, JobExecutionLogContainer>();
    executor = Executors.newSingleThreadScheduledExecutor(new NamedThreadFactory("Master-Monitor", true));
    executor.scheduleWithFixedDelay(new ExportTask(), config.getExportMonitorInterval() * 2, config.getExportMonitorInterval(), TimeUnit.SECONDS);
    logger.info("monitor init end");
  }
View Full Code Here


            branchResultQueuePool.put(jobName, new LinkedBlockingQueue<JobMergedResult>());
        }

        eventProcessThreadPool =
                new ThreadPoolExecutor(this.config.getMaxJobEventWorker(), this.config.getMaxJobEventWorker(), 0,
                    TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(), new NamedThreadFactory(
                        "jobManagerEventProcess_worker"));

        masterDataRecoverWorker =
                new MasterDataRecoverWorker(config.getMasterName(), config.getTempStoreDataDir(), jobs, this.config);
        masterDataRecoverWorker.start();
View Full Code Here

   
    analysisWorkerThreadPool = new ThreadPoolExecutor(
        this.config.getAnalysisWorkerNum(),
        this.config.getAnalysisWorkerNum(), 0,
        TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(),
        new NamedThreadFactory("analysisProcess_worker"));
   
    slaveConnector.setSlaveNode(this);
    slaveConnector.init();
    statisticsEngine.init();
    jobResultMerger.init();
View Full Code Here

   
    createReportFileThreadPool = new ThreadPoolExecutor(
        maxCreateReportWorker,
        maxCreateReportWorker, 0,
        TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(),
        new NamedThreadFactory("createReportFile_worker"));
   
  }
View Full Code Here

   
    mergeJobResultThreadPool = new ThreadPoolExecutor(
        maxMergeJobWorker,
        maxMergeJobWorker, 0,
        TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(),
        new NamedThreadFactory("mergeJobResult_worker"));
   
    if (logger.isInfoEnabled())
      logger.info("JobResultMerger init end. maxMergeJobWorker size : " + maxMergeJobWorker);
  }
View Full Code Here

  @Override
  public void init() throws AnalysisException {
    monitorInfo = new SlaveMonitorInfo();
    monitorInfo.setSlaveStartupTime(new Date());
    executor = Executors.newSingleThreadScheduledExecutor(new NamedThreadFactory("Slave-Monitor", true));
    executor.scheduleWithFixedDelay(new ReportTask(), config.getSlaveReportMonitorInterval() * 2, config.getSlaveReportMonitorInterval(), TimeUnit.SECONDS);
  }
View Full Code Here

TOP

Related Classes of com.taobao.top.analysis.util.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.