Class LoadReportClient
java.lang.Object
io.grpc.xds.client.LoadReportClient
Client of xDS load reporting service based on LRS protocol, which reports load stats of
gRPC client's perspective to a management server.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLoadReportClient(LoadStatsManager2 loadStatsManager, XdsTransportFactory.XdsTransport xdsTransport, EnvoyProtoData.Node node, io.grpc.SynchronizationContext syncContext, ScheduledExecutorService scheduledExecutorService, io.grpc.internal.BackoffPolicy.Provider backoffPolicyProvider, com.google.common.base.Supplier<com.google.common.base.Stopwatch> stopwatchSupplier) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidEstablishes load reporting communication and negotiates with traffic director to report load stats periodically.voidTerminates load reporting.
-
Field Details
-
loadStatsManager
-
-
Constructor Details
-
LoadReportClient
public LoadReportClient(LoadStatsManager2 loadStatsManager, XdsTransportFactory.XdsTransport xdsTransport, EnvoyProtoData.Node node, io.grpc.SynchronizationContext syncContext, ScheduledExecutorService scheduledExecutorService, io.grpc.internal.BackoffPolicy.Provider backoffPolicyProvider, com.google.common.base.Supplier<com.google.common.base.Stopwatch> stopwatchSupplier)
-
-
Method Details
-
lrsStreamIsNull
public boolean lrsStreamIsNull() -
startLoadReporting
public void startLoadReporting()Establishes load reporting communication and negotiates with traffic director to report load stats periodically. Calling this method on an already startedLoadReportClientis no-op. -
stopLoadReporting
public void stopLoadReporting()Terminates load reporting. Calling this method on an already stoppedLoadReportClientis no-op.
-