public class HotParameterLeapArray extends LeapArray<ParamMapBucket>
array, intervalInMs, sampleCount, windowLengthInMs| Constructor and Description |
|---|
HotParameterLeapArray(int sampleCount,
int intervalInMs) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(RollingParamEvent event,
int count,
Object value)
Add event count for specific parameter value.
|
double |
getRollingAvg(RollingParamEvent event,
Object value) |
long |
getRollingSum(RollingParamEvent event,
Object value) |
Map<Object,Double> |
getTopValues(RollingParamEvent event,
int number)
Get "top-N" value-QPS map of provided event.
|
ParamMapBucket |
newEmptyBucket(long timeMillis) |
protected WindowWrap<ParamMapBucket> |
resetWindowTo(WindowWrap<ParamMapBucket> w,
long startTime) |
addWaiting, calculateWindowStart, currentWaiting, currentWindow, currentWindow, debug, getIntervalInMs, getIntervalInSecond, getPreviousWindow, getPreviousWindow, getSampleCount, getValidHead, getWindowValue, isWindowDeprecated, isWindowDeprecated, list, list, listAll, values, valuespublic HotParameterLeapArray(int sampleCount,
int intervalInMs)
public ParamMapBucket newEmptyBucket(long timeMillis)
newEmptyBucket in class LeapArray<ParamMapBucket>protected WindowWrap<ParamMapBucket> resetWindowTo(WindowWrap<ParamMapBucket> w, long startTime)
resetWindowTo in class LeapArray<ParamMapBucket>public void addValue(RollingParamEvent event, int count, Object value)
event - target eventcount - count to addvalue - parameter valuepublic Map<Object,Double> getTopValues(RollingParamEvent event, int number)
event - target eventnumber - max number of valuespublic long getRollingSum(RollingParamEvent event, Object value)
public double getRollingAvg(RollingParamEvent event, Object value)
Copyright © 2020 Alibaba Group. All rights reserved.