use of io.grpc.xds.LoadStatsManager2.ClusterDropStats in project grpc-java by grpc.
the class ClientXdsClient method addClusterDropStats.
@Override
ClusterDropStats addClusterDropStats(final ServerInfo serverInfo, String clusterName, @Nullable String edsServiceName) {
ClusterDropStats dropCounter = loadStatsManager.getClusterDropStats(clusterName, edsServiceName);
syncContext.execute(new Runnable() {
@Override
public void run() {
if (!reportingLoad) {
serverLrsClientMap.get(serverInfo).startLoadReporting();
reportingLoad = true;
}
}
});
return dropCounter;
}
Aggregations