Package io.grpc.xds.client
Class Stats.BackendLoadMetricStats
java.lang.Object
io.grpc.xds.client.Stats.BackendLoadMetricStats
- Enclosing class:
Stats
Load metric stats for multi-dimensional load balancing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
private double
-
Constructor Summary
ConstructorsConstructorDescriptionBackendLoadMetricStats
(long numRequestsFinishedWithMetric, double totalMetricValue) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMetricValueAndIncrementRequestsFinished
(double metricValue) Adds the givenmetricValue
and increments the number of requests finished counter for the existingStats.BackendLoadMetricStats
.long
double
-
Field Details
-
numRequestsFinishedWithMetric
private long numRequestsFinishedWithMetric -
totalMetricValue
private double totalMetricValue
-
-
Constructor Details
-
BackendLoadMetricStats
BackendLoadMetricStats(long numRequestsFinishedWithMetric, double totalMetricValue)
-
-
Method Details
-
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
.
-