use of org.apache.storm.generated.SpoutAggregateStats in project storm by apache.
the class StatsUtil method thriftifySpoutAggStats.
private static ComponentAggregateStats thriftifySpoutAggStats(Map m) {
ComponentAggregateStats stats = new ComponentAggregateStats();
stats.set_type(ComponentType.SPOUT);
stats.set_last_error((ErrorInfo) getByKey(m, LAST_ERROR));
thriftifyCommonAggStats(stats, m);
SpoutAggregateStats spoutAggStats = new SpoutAggregateStats();
spoutAggStats.set_complete_latency_ms(getByKeyOr0(m, COMP_LATENCY).doubleValue());
SpecificAggregateStats specificStats = SpecificAggregateStats.spout(spoutAggStats);
stats.set_specific_stats(specificStats);
return stats;
}
Aggregations