Exemplo n.º 1
0
  @SuppressWarnings({"unchecked", "rawtypes"})
  @Override
  public void prepare(Map conf, TopologyContext context, OutputCollector collector) {
    super.prepare(conf, context, collector);
    updateConfig(super.config);

    this.mtClientList = TDEngineClientFactory.createMTClientList(conf);
    this.mt = MonitorTools.getMonitorInstance(conf);
    this.liveCombinerMap = new HashMap<String, ActionCombinerValue>(1024);
    this.putCallBack = new UpdateCallBack(mt, this.nsTableId, debug);

    int combinerExpireTime = Utils.getInt(conf, "combiner.expireTime", 5);
    setCombinerTime(combinerExpireTime);
  }