Class LoadStatsManager2.ClusterLocalityStats
java.lang.Object
io.grpc.xds.client.LoadStatsManager2.ClusterLocalityStats
- Enclosing class:
LoadStatsManager2
Recorder for client loads. One instance per locality (in cluster with edsService).
-
Method Summary
Modifier and TypeMethodDescriptionvoidrecordBackendLoadMetricStats(Map<String, Double> namedMetrics) Records all custom named backend load metric stats for per-call load reporting.voidrecordCallFinished(io.grpc.Status status) Records a request finished with the given status.voidRecords a request being issued.voidrelease()Release the hard reference for this stats object (previously obtained viaLoadStatsManager2.getClusterLocalityStats(String, String, Locality)).
-
Method Details
-
recordCallStarted
public void recordCallStarted()Records a request being issued. -
recordCallFinished
public void recordCallFinished(io.grpc.Status status) Records a request finished with the given status. -
recordBackendLoadMetricStats
Records all custom named backend load metric stats for per-call load reporting. For each metric keyname, creates a newStats.BackendLoadMetricStatswith a finished requests counter of 1 and thevalueif the key is not present in the map. Otherwise, increments the finished requests counter and adds thevalueto the existingStats.BackendLoadMetricStats. -
release
public void release()Release the hard reference for this stats object (previously obtained viaLoadStatsManager2.getClusterLocalityStats(String, String, Locality)). The object may still be recording loads after this method, but there is no guarantee loads recorded after this point will be included in load reports.
-