Search in sources :

Example 6 with LatencyStatPoint

use of com.exalttech.trex.ui.models.stats.LatencyStatPoint in project trex-stateless-gui by cisco-system-traffic-generator.

the class PGIDStatsStorage method resetLatencyStats.

private void resetLatencyStats() {
    synchronized (latencyLock) {
        latencyStatPointShadowMap.clear();
        latencyStatPointHistoryMap.forEach((final Integer pgID, final ArrayHistory<LatencyStatPoint> history) -> {
            if (!history.isEmpty()) {
                final LatencyStatPoint last = history.last();
                latencyStatPointShadowMap.put(pgID, history.last());
                history.clear();
                history.add(last);
            }
        });
    }
}
Also used : ArrayHistory(com.exalttech.trex.util.ArrayHistory) LatencyStatPoint(com.exalttech.trex.ui.models.stats.LatencyStatPoint)

Aggregations

LatencyStatPoint (com.exalttech.trex.ui.models.stats.LatencyStatPoint)6 ArrayHistory (com.exalttech.trex.util.ArrayHistory)5 PGIDStatsStorage (com.exalttech.trex.ui.views.storages.PGIDStatsStorage)4 LatencyStat (com.cisco.trex.stateless.model.stats.LatencyStat)3 FlowStatPoint (com.exalttech.trex.ui.models.stats.FlowStatPoint)3 HeaderCell (com.exalttech.trex.ui.views.statistics.cells.HeaderCell)2 StatisticLabelCell (com.exalttech.trex.ui.views.statistics.cells.StatisticLabelCell)2 StatsStorage (com.exalttech.trex.ui.views.storages.StatsStorage)2 HashMap (java.util.HashMap)2 LinkedList (java.util.LinkedList)2 Map (java.util.Map)2 XYChart (javafx.scene.chart.XYChart)2 LatencyStatErr (com.cisco.trex.stateless.model.stats.LatencyStatErr)1 LatencyStatLat (com.cisco.trex.stateless.model.stats.LatencyStatLat)1