Package com.alibaba.jstorm.batch.meta

Examples of com.alibaba.jstorm.batch.meta.MetaSpoutConfig


    int batchMessageNum = JStormUtils.parseInt(
        conf.get("meta.batch.message.num"), 1024);
    int maxFailTimes = JStormUtils.parseInt(
        conf.get("meta.max.fail.times"), 10);

    MetaSpoutConfig ret = new MetaSpoutConfig(consumerGroup, nameServer,
        topic, subExpress);
    ret.setStartTimeStamp(startTimeStamp);
    ret.setBatchMsgNum(batchMessageNum);
    ret.setMaxFailTimes(maxFailTimes);

    return ret;
  }
View Full Code Here


  public static TopologyBuilder SetBuilder() {

    BatchTopologyBuilder batchTopologyBuilder = new BatchTopologyBuilder(
        topologyName);

    MetaSpoutConfig metaSpoutConfig = getMetaSpoutConfig(conf);

    BoltDeclarer rebalanceDeclarer = batchTopologyBuilder.setBolt(
        BatchMetaRebalance.BOLT_NAME, new BatchMetaRebalance(), 1);

    IBatchSpout batchSpout = new BatchMetaSpout(metaSpoutConfig);
View Full Code Here

TOP

Related Classes of com.alibaba.jstorm.batch.meta.MetaSpoutConfig

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.