WeightedStats that manages tracking state and exposes the required
stats.
A sub-class or a different class (delegation) needs to call startStream(), stopStream(), startRequest(), and stopRequest(long) to drive state tracking.
WeightedStatsRequestInterceptor
| Modifier and Type | Field and Description |
|---|---|
| private final Ewma | |
| private static final double | |
| private static final long | |
| private static final double | |
| private long | |
| private long | |
| private final Quantile | |
| private static final int | |
| private final long | |
| private final Ewma | |
| private final Quantile | |
| private final Median | |
| private static final AtomicIntegerFieldUpdater | |
| private static final AtomicIntegerFieldUpdater | |
| private volatile int | |
| private volatile int | |
| private long | |
| private long | |
| private static final double | |
| private final long |
| Access | Constructor and Description |
|---|---|
| protected | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public double | |
| pack-priv long | |
| public double | |
| public int | |
| public double | |
| pack-priv synchronized void | |
| pack-priv synchronized long | |
| pack-priv void | |
| pack-priv synchronized long | |
| pack-priv void | |
| public String | |
| pack-priv void | |
| public double |
| availabilityPercentage | back to summary |
|---|---|
| private final Ewma availabilityPercentage | |
| DEFAULT_HIGHER_QUANTILE | back to summary |
|---|---|
| private static final double DEFAULT_HIGHER_QUANTILE | |
| DEFAULT_INITIAL_INTER_ARRIVAL_TIME | back to summary |
|---|---|
| private static final long DEFAULT_INITIAL_INTER_ARRIVAL_TIME | |
| DEFAULT_LOWER_QUANTILE | back to summary |
|---|---|
| private static final double DEFAULT_LOWER_QUANTILE | |
| duration | back to summary |
|---|---|
| private long duration | |
| errorStamp | back to summary |
|---|---|
| private long errorStamp | |
| higherQuantile | back to summary |
|---|---|
| private final Quantile higherQuantile | |
| INACTIVITY_FACTOR | back to summary |
|---|---|
| private static final int INACTIVITY_FACTOR | |
| inactivityFactor | back to summary |
|---|---|
| private final long inactivityFactor | |
| interArrivalTime | back to summary |
|---|---|
| private final Ewma interArrivalTime | |
| lowerQuantile | back to summary |
|---|---|
| private final Quantile lowerQuantile | |
| median | back to summary |
|---|---|
| private final Median median | |
| PENDING_REQUESTS | back to summary |
|---|---|
| private static final AtomicIntegerFieldUpdater<BaseWeightedStats> PENDING_REQUESTS | |
| PENDING_STREAMS | back to summary |
|---|---|
| private static final AtomicIntegerFieldUpdater<BaseWeightedStats> PENDING_STREAMS | |
| pendingRequests | back to summary |
|---|---|
| private volatile int pendingRequests | |
| pendingStreams | back to summary |
|---|---|
| private volatile int pendingStreams | |
| stamp | back to summary |
|---|---|
| private long stamp | |
| stamp0 | back to summary |
|---|---|
| private long stamp0 | |
| STARTUP_PENALTY | back to summary |
|---|---|
| private static final double STARTUP_PENALTY | |
| tau | back to summary |
|---|---|
| private final long tau | |
| BaseWeightedStats | back to summary |
|---|---|
| protected BaseWeightedStats() | |
| BaseWeightedStats | back to summary |
|---|---|
| private BaseWeightedStats(Quantile lowerQuantile, Quantile higherQuantile, long inactivityFactor) | |
| higherQuantileLatency | back to summary |
|---|---|
| public double higherQuantileLatency() Implements io.
| |
| instantaneous | back to summary |
|---|---|
| pack-priv long instantaneous(long now, int pending) | |
| lowerQuantileLatency | back to summary |
|---|---|
| public double lowerQuantileLatency() Implements io.
| |
| pending | back to summary |
|---|---|
| public int pending() Implements io.
| |
| predictedLatency | back to summary |
|---|---|
| public double predictedLatency() Implements io.
| |
| record | back to summary |
|---|---|
| pack-priv synchronized void record(double roundTripTime) | |
| startRequest | back to summary |
|---|---|
| pack-priv synchronized long startRequest() | |
| startStream | back to summary |
|---|---|
| pack-priv void startStream() | |
| stopRequest | back to summary |
|---|---|
| pack-priv synchronized long stopRequest(long timestamp) | |
| stopStream | back to summary |
|---|---|
| pack-priv void stopStream() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| updateAvailability | back to summary |
|---|---|
| pack-priv void updateAvailability(double value) | |
| weightedAvailability | back to summary |
|---|---|
| public double weightedAvailability() Implements io.
| |