Package com.taobao.top.analysis.config

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


    SlaveMonitor monitor = new SlaveMonitor();
    slaveConnector.setDownstreamHandler(new ObjectEncoder());
    slaveConnector.setUpstreamHandler(new ObjectDecoder());
     
    StatisticsEngine statisticsEngine = new StatisticsEngine();
    SlaveConfig slaveConfig = new SlaveConfig();
    slaveConfig.load(configfile);
    slaveNode.setConfig(slaveConfig);
    slaveNode.setSlaveConnector(slaveConnector);
    slaveNode.setStatisticsEngine(statisticsEngine);
    slaveNode.setJobResultMerger(jobResultMerger2);
    slaveNode.setMonitor(monitor);
View Full Code Here


    SlaveNode slaveNode = new SlaveNode();
    JobResultMerger jobResultMerger2 = new JobResultMerger();
    MemSlaveConnector slaveConnector = new MemSlaveConnector();
    slaveConnector.setTunnel(tunnel);
    StatisticsEngine statisticsEngine = new StatisticsEngine();
    SlaveConfig slaveConfig = new SlaveConfig();
    slaveConfig.load("slave-config.properties");
    slaveNode.setConfig(slaveConfig);
    slaveNode.setSlaveConnector(slaveConnector);
    slaveNode.setStatisticsEngine(statisticsEngine);
    slaveNode.setJobResultMerger(jobResultMerger2);
   
View Full Code Here

    /**
     * 初始化slave
     */
    private void buildSlave() {
        node = new SlaveNode();
        nodeConfig = new SlaveConfig();
        slaveConnector = new SocketSlaveConnector();
        monitor = new SlaveMonitor();
        statisticsEngine = new StatisticsEngine();
        httpInputAdaptor = new HttpInputAdaptor();
        hdfsInputAdaptor = new HdfsInputAdaptor();
View Full Code Here

TOP

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

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.