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 longprivate double -
Constructor Summary
ConstructorsConstructorDescriptionBackendLoadMetricStats(long numRequestsFinishedWithMetric, double totalMetricValue) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetricValueAndIncrementRequestsFinished(double metricValue) Adds the givenmetricValueand increments the number of requests finished counter for the existingStats.BackendLoadMetricStats.longdouble
-
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 givenmetricValueand increments the number of requests finished counter for the existingStats.BackendLoadMetricStats.
-