Examples of TpsCounter


Examples of com.alipay.dw.jstorm.example.TpsCounter

 
  private TpsCounter          tpsCounter;

  public void prepare(Map conf, TopologyContext context) {
     
      tpsCounter = new TpsCounter(context.getThisComponentId() +
                ":" + context.getThisTaskId());
     
    LOG.info("Successfully do prepare");
   
   
View Full Code Here

Examples of com.alipay.dw.jstorm.example.TpsCounter

  private AtomicLong  sum = new AtomicLong(0);
 
  private TpsCounter          tpsCounter;

  public void prepare(Map conf, TopologyContext context) {
      tpsCounter = new TpsCounter(context.getThisComponentId() +
                ":" + context.getThisTaskId());
   
    LOG.info("Successfully do parepare " + context.getThisComponentId());
  }
View Full Code Here

Examples of com.alipay.dw.jstorm.example.TpsCounter

    public void prepare(Map stormConf, TopologyContext context,
            OutputCollector collector) {
        // TODO Auto-generated method stub
        this.collector = collector;
       
        tpsCounter = new TpsCounter(context.getThisComponentId() +
                ":" + context.getThisTaskId());
       
        LOG.info("Finished preparation");
    }
View Full Code Here

Examples of com.alipay.dw.jstorm.example.TpsCounter

    public void prepare(Map stormConf, TopologyContext context,
            OutputCollector collector) {
        // TODO Auto-generated method stub
        this.collector = collector;
       
        tpsCounter = new TpsCounter(context.getThisComponentId() +
                ":" + context.getThisTaskId());
       
        checkTupleId = JStormUtils.parseBoolean(stormConf.get("bolt.check.tupleId"), false);
       
        slowDonw = JStormUtils.parseBoolean(stormConf.get("bolt.slow.down"), false);
View Full Code Here

Examples of com.alipay.dw.jstorm.example.TpsCounter

          .get("spout.max.sending.num"));
    }

    isFinished = false;

    tpsCounter = new TpsCounter(context.getThisComponentId() + ":"
        + context.getThisTaskId());

    MAX_PENDING_COUNTER = getMaxPending(conf);
   
    bufferLen = JStormUtils.parseInt(conf.get("byte.buffer.len"), 0);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.