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.ObjectLoad metric stats for multi-dimensional load balancing.
-
-
Field Summary
Fields Modifier and Type Field Description private longnumRequestsFinishedWithMetricprivate doubletotalMetricValue
-
Constructor Summary
Constructors Constructor Description BackendLoadMetricStats(long numRequestsFinishedWithMetric, double totalMetricValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMetricValueAndIncrementRequestsFinished(double metricValue)Adds the givenmetricValueand increments the number of requests finished counter for the existingStats.BackendLoadMetricStats.longnumRequestsFinishedWithMetric()doubletotalMetricValue()
-
-
-
Method Detail
-
numRequestsFinishedWithMetric
public long numRequestsFinishedWithMetric()
-
totalMetricValue
public double totalMetricValue()
-
addMetricValueAndIncrementRequestsFinished
public void addMetricValueAndIncrementRequestsFinished(double metricValue)
Adds the givenmetricValueand increments the number of requests finished counter for the existingStats.BackendLoadMetricStats.
-
-