Package com.taobao.top.analysis.config

Examples of com.taobao.top.analysis.config.MasterConfig


   
    masterNode.setJobManager(jobManager);
    masterNode.setMasterConnector(masterConnector)
    masterNode.setMonitor(monitor);
   
    MasterConfig config = new MasterConfig();
    config.load(configfile);
    masterNode.setConfig(config);
    masterNode.startNode();
   
   
    return masterNode;
View Full Code Here


    jobManager.setJobResultMerger(jobResultMerger);
    masterConnector.setTunnel(tunnel);
    masterNode.setJobManager(jobManager);
    masterNode.setMasterConnector(masterConnector)
   
    MasterConfig config = new MasterConfig();
    config.load("master-config-ms.properties");
    masterNode.setConfig(config);
    masterNode.startNode();
   
   
    //build SlaveNode
View Full Code Here

public class JobResultMergerTest {

  @Test
  public void testMerge() throws AnalysisException, UnsupportedEncodingException, IOException, InterruptedException {
    JobResultMerger jobResultMerge = new JobResultMerger();
    MasterConfig config = new MasterConfig();
    config.load("master-config.properties");
    jobResultMerge.setConfig(config);
    jobResultMerge.init();
   
    BlockingQueue<JobMergedResult> branchResultQueue = new LinkedBlockingQueue<JobMergedResult>();
    BlockingQueue<JobTaskResult> jobTaskResultsQueue = new LinkedBlockingQueue<JobTaskResult>();
View Full Code Here

  @Test
  public void testBuild() throws AnalysisException {
    MixJobBuilder mixJobBuilder = new MixJobBuilder();
    FileJobBuilder fileJobBuilder = new FileJobBuilder();
    MasterConfig config = new MasterConfig();
    config.load("master-config.properties");
    mixJobBuilder.setConfig(config);
    mixJobBuilder.init();
    fileJobBuilder.setConfig(config);
    fileJobBuilder.init();
   
View Full Code Here

 
  @Test
  public void testRebuild() throws AnalysisException {
    MixJobBuilder mixJobBuilder = new MixJobBuilder();
    MasterConfig config = new MasterConfig();
    config.load("master-config.properties");
    mixJobBuilder.setConfig(config);
    mixJobBuilder.init();
   
    Map<String, Job> jobs = mixJobBuilder.build();
   
View Full Code Here

    defaultAnalysisEngine.addInputAdaptor(fileInputAdaptor);
    defaultAnalysisEngine.addInputAdaptor(httpInputAdaptor);
   
    MixJobBuilder mixJobBuilder = new MixJobBuilder();
    FileJobExporter fileJobExporter = new FileJobExporter();
    MasterConfig config = new MasterConfig();
    config.load("master-config.properties");
    fileJobExporter.setConfig(config);
    mixJobBuilder.setConfig(config);
    mixJobBuilder.init();
    fileJobExporter.init();
   
View Full Code Here

    defaultAnalysisEngine.addInputAdaptor(fileInputAdaptor);
    defaultAnalysisEngine.addInputAdaptor(httpInputAdaptor);
   
    MixJobBuilder mixJobBuilder = new MixJobBuilder();
    FileJobExporter fileJobExporter = new FileJobExporter();
    MasterConfig config = new MasterConfig();
    config.load("master-config.properties");
    fileJobExporter.setConfig(config);
    mixJobBuilder.setConfig(config);
    mixJobBuilder.init();
    fileJobExporter.init();
   
View Full Code Here

    defaultAnalysisEngine.addInputAdaptor(fileInputAdaptor);
    defaultAnalysisEngine.addInputAdaptor(httpInputAdaptor);
   
    MixJobBuilder mixJobBuilder = new MixJobBuilder();
    FileJobExporter fileJobExporter = new FileJobExporter();
    MasterConfig config = new MasterConfig();
    config.load("master-config.properties");
    fileJobExporter.setConfig(config);
    mixJobBuilder.setConfig(config);
    mixJobBuilder.init();
    fileJobExporter.init();
   
View Full Code Here

    jobManager.setJobResultMerger(jobResultMerger);
    masterConnector.setTunnel(tunnel);
    masterNode.setJobManager(jobManager);
    masterNode.setMasterConnector(masterConnector)
   
    MasterConfig config = new MasterConfig();
    config.load("master-config.properties");
    config.setUseAsynModeToSendResponse("false");
    masterNode.setConfig(config);
    masterNode.init();
  }
View Full Code Here

    /**
     * 初始化master
     */
    private void buildMaster() {
        node = new MasterNode();
        nodeConfig = new MasterConfig();
        jobManager = new JobManager();
        jobBuilder = new MixJobBuilder();
        masterConnector = new SocketMasterConnector();
        monitor = new MasterMonitor();
        httpAgentNode = new HttpAgentNode();
View Full Code Here

TOP

Related Classes of com.taobao.top.analysis.config.MasterConfig

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.