Package com.taobao.top.analysis.node.connect

Examples of com.taobao.top.analysis.node.connect.MemMasterConnector


  @Test
  public void test() throws AnalysisException, InterruptedException
  {
    //build MasterNode
    MasterNode masterNode = new MasterNode();
    MemMasterConnector masterConnector = new MemMasterConnector();
    JobManager jobManager = new JobManager();
    JobResultMerger jobResultMerger = new JobResultMerger();
    MixJobBuilder mixJobBuilder = new MixJobBuilder();
    FileJobExporter fileJobExporter = new FileJobExporter();
    MemTunnel tunnel = new MemTunnel();
   
    jobManager.setJobBuilder(mixJobBuilder);
    jobManager.setJobExporter(fileJobExporter);
    jobManager.setJobResultMerger(jobResultMerger);
    masterConnector.setTunnel(tunnel);
    masterNode.setJobManager(jobManager);
    masterNode.setMasterConnector(masterConnector)
   
    MasterConfig config = new MasterConfig();
    config.load("master-config-ms.properties");
View Full Code Here


 
 
  @Before
  public void setUp() throws Exception {
    masterNode = new MasterNode();
    MemMasterConnector masterConnector = new MemMasterConnector();
    jobManager = new JobManager();
    JobResultMerger jobResultMerger = new JobResultMerger();
    mixJobBuilder = new MixJobBuilder();
    FileJobExporter fileJobExporter = new FileJobExporter();
    tunnel = new MemTunnel();
   
    jobManager.setJobBuilder(mixJobBuilder);
    jobManager.setJobExporter(fileJobExporter);
    jobManager.setJobResultMerger(jobResultMerger);
    masterConnector.setTunnel(tunnel);
    masterNode.setJobManager(jobManager);
    masterNode.setMasterConnector(masterConnector)
   
    MasterConfig config = new MasterConfig();
    config.load("master-config.properties");
View Full Code Here

TOP

Related Classes of com.taobao.top.analysis.node.connect.MemMasterConnector

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.