public class ClusterMetricLeapArray extends LeapArray<ClusterMetricBucket>
array, intervalInMs, sampleCount, windowLengthInMs| Constructor and Description |
|---|
ClusterMetricLeapArray(int sampleCount,
int intervalInMs) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOccupyPass(int count) |
long |
getFirstCountOfWindow(ClusterFlowEvent event) |
long |
getOccupiedCount(ClusterFlowEvent event) |
ClusterMetricBucket |
newEmptyBucket(long timeMillis) |
protected WindowWrap<ClusterMetricBucket> |
resetWindowTo(WindowWrap<ClusterMetricBucket> w,
long startTime) |
addWaiting, calculateWindowStart, currentWaiting, currentWindow, currentWindow, debug, getIntervalInMs, getIntervalInSecond, getPreviousWindow, getPreviousWindow, getSampleCount, getValidHead, getWindowValue, isWindowDeprecated, isWindowDeprecated, list, list, listAll, values, valuespublic ClusterMetricLeapArray(int sampleCount,
int intervalInMs)
public ClusterMetricBucket newEmptyBucket(long timeMillis)
newEmptyBucket in class LeapArray<ClusterMetricBucket>protected WindowWrap<ClusterMetricBucket> resetWindowTo(WindowWrap<ClusterMetricBucket> w, long startTime)
resetWindowTo in class LeapArray<ClusterMetricBucket>public void addOccupyPass(int count)
public long getOccupiedCount(ClusterFlowEvent event)
public long getFirstCountOfWindow(ClusterFlowEvent event)
Copyright © 2021 Alibaba Group. All rights reserved.