use of com.exalttech.trex.ui.views.services.PGIDStatsService in project trex-stateless-gui by cisco-system-traffic-generator.
the class PGIDStatsStorage method handlePGIDStatsReceived.
private void handlePGIDStatsReceived(final WorkerStateEvent event) {
final PGIDStatsService service = (PGIDStatsService) event.getSource();
final PGIdStatsRPCResult receivedPGIDStats = service.getValue();
final double time = System.currentTimeMillis() / 1000.0;
final Map<String, FlowStat> flowStatMap = receivedPGIDStats.getFlowStats();
if (flowStatMap != null) {
processFlowStats(receivedPGIDStats.getFlowStats(), time);
}
final Map<String, LatencyStat> latencyStatMap = receivedPGIDStats.getLatency();
if (latencyStatMap != null) {
processLatencyStats(receivedPGIDStats.getLatency(), time);
}
handleStatsChanged();
}
Aggregations