Package io.grpc.xds
Class ClusterImplLoadBalancer.OrcaPerRpcListener
- java.lang.Object
-
- io.grpc.xds.ClusterImplLoadBalancer.OrcaPerRpcListener
-
- All Implemented Interfaces:
OrcaPerRequestUtil.OrcaPerRequestReportListener
- Enclosing class:
- ClusterImplLoadBalancer
private static final class ClusterImplLoadBalancer.OrcaPerRpcListener extends java.lang.Object implements OrcaPerRequestUtil.OrcaPerRequestReportListener
-
-
Field Summary
Fields Modifier and Type Field Description private LoadStatsManager2.ClusterLocalityStatsstats
-
Constructor Summary
Constructors Modifier Constructor Description privateOrcaPerRpcListener(LoadStatsManager2.ClusterLocalityStats stats)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonLoadReport(io.grpc.services.MetricReport report)CopiesMetricReport.getNamedMetrics()toLoadStatsManager2.ClusterLocalityStatssuch that it is included in the snapshot for the LRS report sent to the LRS server.
-
-
-
Field Detail
-
stats
private final LoadStatsManager2.ClusterLocalityStats stats
-
-
Constructor Detail
-
OrcaPerRpcListener
private OrcaPerRpcListener(LoadStatsManager2.ClusterLocalityStats stats)
-
-
Method Detail
-
onLoadReport
public void onLoadReport(io.grpc.services.MetricReport report)
CopiesMetricReport.getNamedMetrics()toLoadStatsManager2.ClusterLocalityStatssuch that it is included in the snapshot for the LRS report sent to the LRS server.- Specified by:
onLoadReportin interfaceOrcaPerRequestUtil.OrcaPerRequestReportListener- Parameters:
report- load report in the format of grpcMetricReport.
-
-