public void prepare(Map stormConf, TopologyContext context, OutputCollector collector) { _bolt.prepare(stormConf, context); _collector = new BasicOutputCollector(collector); }
public void prepare(Map stormConf, TopologyContext context, OutputCollector collector) { _bolt.prepare(stormConf, context); _collector = new BasicOutputCollector(collector); }
public void prepare(Map conf, TopologyContext context, OutputCollector collector) { taskId = String.valueOf(context.getThisTaskId()); taskName = context.getThisComponentId() + "_" + context.getThisTaskId(); this.basicCollector = new BasicOutputCollector(collector); this.collector = collector; if (delegate instanceof ICommitter) { isCommiter = true; commited = new TimeCacheMap<>(context.maxTopologyMessageTimeout()); mkCommitDir(conf); } delegate.prepare(conf, context); }
public void prepare(Map stormConf, TopologyContext context, OutputCollector collector) { _bolt.prepare(stormConf, context); _collector = new BasicOutputCollector(collector); }
@Override @SuppressWarnings("rawtypes") public void prepare(Map stormConf, TopologyContext context, OutputCollector newCollector) { delegate.prepare(stormConf, context); this.collector = new BasicOutputCollector(newCollector); }
public void prepare(Map stormConf, TopologyContext context, OutputCollector collector) { _bolt.prepare(stormConf, context); _collector = new BasicOutputCollector(collector); }
@Override public void prepare(Map conf, TopologyContext context) { this.context = context; try { // Register the metrics hook for this bolt to track statistics context.addTaskHook(new BoltMetricsHook()); getDelegate().prepare(conf, context); } catch (FrameworkException ex) { LOG.error("prepare() not delegated due to a Framework exception: ", ex); throw new RuntimeException(ex); } }
public void prepare(Map conf, TopologyContext context, OutputCollector collector) { taskId = String.valueOf(context.getThisTaskId()); taskName = context.getThisComponentId() + "_" + context.getThisTaskId(); this.basicCollector = new BasicOutputCollector(collector); this.collector = collector; if (delegate instanceof ICommitter) { isCommiter = true; commited = new TimeCacheMap<Object, Object>(context.maxTopologyMessageTimeout()); mkCommitDir(conf); } delegate.prepare(conf, context); }