public class ReplStatsTracker extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
RM_PROGRESS_LENGTH |
static int |
TOP_K_MAX |
| Constructor and Description |
|---|
ReplStatsTracker(int k) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(String eventType,
String eventId,
long timeTaken)
Adds an entry for tracking.
|
ConcurrentHashMap<String,org.apache.commons.math3.stat.descriptive.DescriptiveStatistics> |
getDescMap()
Get the DescriptiveStatistics for each event type.
|
int |
getK() |
String |
getLastEventId()
Gets the last event id processed.
|
ConcurrentHashMap<String,org.apache.commons.collections4.map.ListOrderedMap<Long,Long>> |
getTopKEvents()
Gets the top K costliest event per event type.
|
String |
toString() |
public static int RM_PROGRESS_LENGTH
public static int TOP_K_MAX
public void addEntry(String eventType, String eventId, long timeTaken)
eventType - the type of event.eventId - the event id.timeTaken - time taken to process the event.public ConcurrentHashMap<String,org.apache.commons.math3.stat.descriptive.DescriptiveStatistics> getDescMap()
public ConcurrentHashMap<String,org.apache.commons.collections4.map.ListOrderedMap<Long,Long>> getTopKEvents()
public String getLastEventId()
public int getK()
Copyright © 2022 The Apache Software Foundation. All rights reserved.