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

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


public class MasterSlaveIntegrationTest_SocketVersion {
 
  public static MasterNode buildMaster(String configfile) throws InterruptedException
  {
    MasterNode masterNode = new MasterNode();
    SocketMasterConnector masterConnector = new SocketMasterConnector();
    JobManager jobManager = new JobManager();
    JobResultMerger jobResultMerger = new JobResultMerger();
    MixJobBuilder mixJobBuilder = new MixJobBuilder();
    FileJobExporter fileJobExporter = new FileJobExporter();
    MasterMonitor monitor = new MasterMonitor();
   
   
    jobManager.setJobBuilder(mixJobBuilder);
    jobManager.setJobExporter(fileJobExporter);
    jobManager.setJobResultMerger(jobResultMerger);
   
    masterConnector.setDownstreamHandler(new ObjectEncoder());
    masterConnector.setUpstreamHandler(new ObjectDecoder());
   
    masterNode.setJobManager(jobManager);
    masterNode.setMasterConnector(masterConnector)
    masterNode.setMonitor(monitor);
   
View Full Code Here


    private void buildMaster() {
        node = new MasterNode();
        nodeConfig = new MasterConfig();
        jobManager = new JobManager();
        jobBuilder = new MixJobBuilder();
        masterConnector = new SocketMasterConnector();
        monitor = new MasterMonitor();
        httpAgentNode = new HttpAgentNode();
       
        ((MasterNode)node).setConfig((MasterConfig)nodeConfig);
       
View Full Code Here

TOP

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

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.