Package io.grpc.xds.client
Class Stats.BackendLoadMetricStats
- java.lang.Object
-
- io.grpc.xds.client.Stats.BackendLoadMetricStats
-
- Enclosing class:
- Stats
public static final class Stats.BackendLoadMetricStats extends java.lang.Object
Load metric stats for multi-dimensional load balancing.
-
-
Field Summary
Fields Modifier and Type Field Description private long
numRequestsFinishedWithMetric
private double
totalMetricValue
-
Constructor Summary
Constructors Constructor Description BackendLoadMetricStats(long numRequestsFinishedWithMetric, double totalMetricValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMetricValueAndIncrementRequestsFinished(double metricValue)
Adds the givenmetricValue
and increments the number of requests finished counter for the existingStats.BackendLoadMetricStats
.long
numRequestsFinishedWithMetric()
double
totalMetricValue()
-
-
-
Method Detail
-
numRequestsFinishedWithMetric
public long numRequestsFinishedWithMetric()
-
totalMetricValue
public double totalMetricValue()
-
addMetricValueAndIncrementRequestsFinished
public void addMetricValueAndIncrementRequestsFinished(double metricValue)
Adds the givenmetricValue
and increments the number of requests finished counter for the existingStats.BackendLoadMetricStats
.
-
-