Package backtype.storm.utils

Examples of backtype.storm.utils.TimeCacheMap$ExpiredCallback


  this.event_queue = new ConcurrentLinkedQueue<Runnable>();

  int message_timeout_secs =StormUtils.parseInt(storm_conf.get(Config.TOPOLOGY_MESSAGE_TIMEOUT_SECS));

  // �������ش���tuple�Ķ��У�����ȴ������tuple̫������spout����ͣ��TimeCacheMap�����tuple����ʱ�������tuple.fail��������֪ͨacker�ط���typle
  this.pending = new TimeCacheMap(message_timeout_secs,new SpoutTimeCallBack<Object, Object>(event_queue, spout,storm_conf,task_stats));

  // ����collector,ʵ�����ǵ���send_spout_msg
  this.output_collector = new SpoutCollector(task_id,spout,task_stats,sendTargets,storm_conf,_transfer_fn,pending,topology_context,event_queue);

  LOG.info("Opening spout " + component_id + ":" + task_id);
View Full Code Here


    @Override
    public void prepare(Map stormConf, TopologyContext context,
      OutputCollector collector) {
  this.collector = collector;
  String key=Config.TOPOLOGY_MESSAGE_TIMEOUT_SECS;
  pending = new TimeCacheMap(StormUtils.parseInt(stormConf.get(key)));
    }
View Full Code Here

TOP

Related Classes of backtype.storm.utils.TimeCacheMap$ExpiredCallback

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.