public final class OrcaServiceImpl extends Object implements io.grpc.BindableService
BindableService that generates Out-Of-Band server metrics.
Register the returned service to the server, then a client can request for periodic load reports.| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_MIN_REPORT_INTERVAL_NANOS
Empty or invalid (non-positive) minInterval config in will be treated to this default value.
|
| Modifier and Type | Method and Description |
|---|---|
io.grpc.ServerServiceDefinition |
bindService() |
static io.grpc.BindableService |
createService(ScheduledExecutorService timeService,
io.grpc.services.MetricRecorder metricRecorder) |
static io.grpc.BindableService |
createService(ScheduledExecutorService timeService,
io.grpc.services.MetricRecorder metricsRecorder,
long minInterval,
TimeUnit timeUnit)
Constructs a service to report server metrics.
|
public static final long DEFAULT_MIN_REPORT_INTERVAL_NANOS
public static io.grpc.BindableService createService(ScheduledExecutorService timeService, io.grpc.services.MetricRecorder metricsRecorder, long minInterval, TimeUnit timeUnit)
MetricRecorder that contains metrics data.minInterval - configures the minimum metrics reporting interval for the
service. Bad configuration (non-positive) will be overridden to service default (30s).
Minimum metrics reporting interval means, if the setting in the client's
request is invalid (non-positive) or below this value, they will be treated
as this value.public static io.grpc.BindableService createService(ScheduledExecutorService timeService, io.grpc.services.MetricRecorder metricRecorder)
public io.grpc.ServerServiceDefinition bindService()
bindService in interface io.grpc.BindableService