}
spoutNum = Long.valueOf(component.getParallelism());
}
Double avergProcess = process / spoutNum;
WinComponentStats topologyStats = new WinComponentStats();
topologyStats.setWindow(window);
topologyStats.setEmitted(JStormUtils.formatValue(emitted));
topologyStats.setSendTps(JStormUtils.formatValue(sendTps));
topologyStats.setRecvTps(JStormUtils.formatValue(recvTps));
topologyStats.setAcked(JStormUtils.formatValue(acked));
topologyStats.setFailed(JStormUtils.formatValue(failed));
topologyStats.setProcess(JStormUtils.formatValue(avergProcess));
List<WinComponentStats> tss = new ArrayList<WinComponentStats>();
tss.add(topologyStats);
return tss;
}