this.collector = collector;
LinkedHashMap copy = new LinkedHashMap(conf);
copy.putAll(spoutConfig);
StormSettings settings = new StormSettings(copy);
InitializationUtils.setValueReaderIfNotSet(settings, JdkValueReader.class, log);
ackReads = settings.getStormSpoutReliable();
if (ackReads) {
inTransitQueue = new LinkedHashMap<Object, Object>();
replayQueue = new LinkedList<Object[]>();
retries = new HashMap<Object, Integer>();
queueSize = settings.getStormSpoutReliableQueueSize();
tupleRetries = settings.getStormSpoutReliableRetriesPerTuple();
tupleFailure = settings.getStormSpoutReliableTupleFailureHandling();
}
int totalTasks = context.getComponentTasks(context.getThisComponentId()).size();
int currentTask = context.getThisTaskIndex();