Map<GlobalStreamId, Double> processSum = JStormUtils
.mergeMapList(processList);
Map<GlobalStreamId, Double> process = new HashMap<GlobalStreamId, Double>();
for (Entry<GlobalStreamId, Double> entry : processSum.entrySet()) {
GlobalStreamId streamId = entry.getKey();
Double value = entry.getValue();
if (value != null && processList.size() > 0) {
process.put(streamId, value/processList.size());
}
}
for (Entry<String, Long> emittedEntry : emitted.entrySet()) {
String outputStreamId = emittedEntry.getKey();
Long emittedValue = emittedEntry.getValue();
Double sendTpsValue = sendTps.get(outputStreamId);
ComponentOutput co = new ComponentOutput();
co.setValues(outputStreamId, emittedValue, sendTpsValue);
coos.add(co);
}
for (Entry<GlobalStreamId, Double> entry : process.entrySet()) {
GlobalStreamId streamId = entry.getKey();
Double processValue = entry.getValue();
Double recvTpsValue = recvTps.get(streamId);
Long ackedValue = acked.get(streamId);
Long failedValue = failed.get(streamId);