org.glowroot.wire.api.model.CollectorServiceGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glowroot-agent-it-harness Show documentation
Show all versions of glowroot-agent-it-harness Show documentation
Glowroot Agent Integration Test Harness
package org.glowroot.wire.api.model;
import static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.generateFullMethodName;
import static org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.asyncUnaryCall;
import static org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.blockingServerStreamingCall;
import static org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.blockingUnaryCall;
import static org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.futureUnaryCall;
import static org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
import static org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.asyncClientStreamingCall;
import static org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.asyncServerStreamingCall;
import static org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.asyncUnaryCall;
import static org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
import static org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
/**
*/
@org.glowroot.agent.it.harness.shaded.javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.12.0)",
comments = "Source: CollectorService.proto")
public final class CollectorServiceGrpc {
private CollectorServiceGrpc() {}
public static final String SERVICE_NAME = "org_glowroot_wire_api_model.CollectorService";
// Static method descriptors that strictly reflect the proto.
@org.glowroot.agent.it.harness.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getCollectInitMethod()} instead.
public static final org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor METHOD_COLLECT_INIT = getCollectInitMethodHelper();
private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectInitMethod;
@org.glowroot.agent.it.harness.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectInitMethod() {
return getCollectInitMethodHelper();
}
private static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectInitMethodHelper() {
org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectInitMethod;
if ((getCollectInitMethod = CollectorServiceGrpc.getCollectInitMethod) == null) {
synchronized (CollectorServiceGrpc.class) {
if ((getCollectInitMethod = CollectorServiceGrpc.getCollectInitMethod) == null) {
CollectorServiceGrpc.getCollectInitMethod = getCollectInitMethod =
org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.newBuilder()
.setType(org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org_glowroot_wire_api_model.CollectorService", "collectInit"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.wire.api.model.CollectorServiceOuterClass.InitMessage.getDefaultInstance()))
.setResponseMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.wire.api.model.CollectorServiceOuterClass.InitResponse.getDefaultInstance()))
.setSchemaDescriptor(new CollectorServiceMethodDescriptorSupplier("collectInit"))
.build();
}
}
}
return getCollectInitMethod;
}
@org.glowroot.agent.it.harness.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getCollectAggregatesMethod()} instead.
public static final org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor METHOD_COLLECT_AGGREGATES = getCollectAggregatesMethodHelper();
private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectAggregatesMethod;
@org.glowroot.agent.it.harness.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectAggregatesMethod() {
return getCollectAggregatesMethodHelper();
}
private static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectAggregatesMethodHelper() {
org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectAggregatesMethod;
if ((getCollectAggregatesMethod = CollectorServiceGrpc.getCollectAggregatesMethod) == null) {
synchronized (CollectorServiceGrpc.class) {
if ((getCollectAggregatesMethod = CollectorServiceGrpc.getCollectAggregatesMethod) == null) {
CollectorServiceGrpc.getCollectAggregatesMethod = getCollectAggregatesMethod =
org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.newBuilder()
.setType(org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org_glowroot_wire_api_model.CollectorService", "collectAggregates"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.wire.api.model.CollectorServiceOuterClass.OldAggregateMessage.getDefaultInstance()))
.setResponseMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.wire.api.model.CollectorServiceOuterClass.AggregateResponseMessage.getDefaultInstance()))
.setSchemaDescriptor(new CollectorServiceMethodDescriptorSupplier("collectAggregates"))
.build();
}
}
}
return getCollectAggregatesMethod;
}
@org.glowroot.agent.it.harness.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getCollectAggregateStreamMethod()} instead.
public static final org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor METHOD_COLLECT_AGGREGATE_STREAM = getCollectAggregateStreamMethodHelper();
private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectAggregateStreamMethod;
@org.glowroot.agent.it.harness.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectAggregateStreamMethod() {
return getCollectAggregateStreamMethodHelper();
}
private static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectAggregateStreamMethodHelper() {
org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectAggregateStreamMethod;
if ((getCollectAggregateStreamMethod = CollectorServiceGrpc.getCollectAggregateStreamMethod) == null) {
synchronized (CollectorServiceGrpc.class) {
if ((getCollectAggregateStreamMethod = CollectorServiceGrpc.getCollectAggregateStreamMethod) == null) {
CollectorServiceGrpc.getCollectAggregateStreamMethod = getCollectAggregateStreamMethod =
org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.newBuilder()
.setType(org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
.setFullMethodName(generateFullMethodName(
"org_glowroot_wire_api_model.CollectorService", "collectAggregateStream"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.wire.api.model.CollectorServiceOuterClass.AggregateStreamMessage.getDefaultInstance()))
.setResponseMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.wire.api.model.CollectorServiceOuterClass.AggregateResponseMessage.getDefaultInstance()))
.setSchemaDescriptor(new CollectorServiceMethodDescriptorSupplier("collectAggregateStream"))
.build();
}
}
}
return getCollectAggregateStreamMethod;
}
@org.glowroot.agent.it.harness.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getCollectGaugeValuesMethod()} instead.
public static final org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor METHOD_COLLECT_GAUGE_VALUES = getCollectGaugeValuesMethodHelper();
private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectGaugeValuesMethod;
@org.glowroot.agent.it.harness.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectGaugeValuesMethod() {
return getCollectGaugeValuesMethodHelper();
}
private static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectGaugeValuesMethodHelper() {
org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectGaugeValuesMethod;
if ((getCollectGaugeValuesMethod = CollectorServiceGrpc.getCollectGaugeValuesMethod) == null) {
synchronized (CollectorServiceGrpc.class) {
if ((getCollectGaugeValuesMethod = CollectorServiceGrpc.getCollectGaugeValuesMethod) == null) {
CollectorServiceGrpc.getCollectGaugeValuesMethod = getCollectGaugeValuesMethod =
org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.newBuilder()
.setType(org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org_glowroot_wire_api_model.CollectorService", "collectGaugeValues"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValueMessage.getDefaultInstance()))
.setResponseMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValueResponseMessage.getDefaultInstance()))
.setSchemaDescriptor(new CollectorServiceMethodDescriptorSupplier("collectGaugeValues"))
.build();
}
}
}
return getCollectGaugeValuesMethod;
}
@org.glowroot.agent.it.harness.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getCollectTraceMethod()} instead.
public static final org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor METHOD_COLLECT_TRACE = getCollectTraceMethodHelper();
private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectTraceMethod;
@org.glowroot.agent.it.harness.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectTraceMethod() {
return getCollectTraceMethodHelper();
}
private static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectTraceMethodHelper() {
org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectTraceMethod;
if ((getCollectTraceMethod = CollectorServiceGrpc.getCollectTraceMethod) == null) {
synchronized (CollectorServiceGrpc.class) {
if ((getCollectTraceMethod = CollectorServiceGrpc.getCollectTraceMethod) == null) {
CollectorServiceGrpc.getCollectTraceMethod = getCollectTraceMethod =
org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.newBuilder()
.setType(org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org_glowroot_wire_api_model.CollectorService", "collectTrace"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.wire.api.model.CollectorServiceOuterClass.OldTraceMessage.getDefaultInstance()))
.setResponseMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.wire.api.model.CollectorServiceOuterClass.EmptyMessage.getDefaultInstance()))
.setSchemaDescriptor(new CollectorServiceMethodDescriptorSupplier("collectTrace"))
.build();
}
}
}
return getCollectTraceMethod;
}
@org.glowroot.agent.it.harness.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getCollectTraceStreamMethod()} instead.
public static final org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor METHOD_COLLECT_TRACE_STREAM = getCollectTraceStreamMethodHelper();
private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectTraceStreamMethod;
@org.glowroot.agent.it.harness.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectTraceStreamMethod() {
return getCollectTraceStreamMethodHelper();
}
private static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectTraceStreamMethodHelper() {
org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectTraceStreamMethod;
if ((getCollectTraceStreamMethod = CollectorServiceGrpc.getCollectTraceStreamMethod) == null) {
synchronized (CollectorServiceGrpc.class) {
if ((getCollectTraceStreamMethod = CollectorServiceGrpc.getCollectTraceStreamMethod) == null) {
CollectorServiceGrpc.getCollectTraceStreamMethod = getCollectTraceStreamMethod =
org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.newBuilder()
.setType(org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
.setFullMethodName(generateFullMethodName(
"org_glowroot_wire_api_model.CollectorService", "collectTraceStream"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.wire.api.model.CollectorServiceOuterClass.TraceStreamMessage.getDefaultInstance()))
.setResponseMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.wire.api.model.CollectorServiceOuterClass.EmptyMessage.getDefaultInstance()))
.setSchemaDescriptor(new CollectorServiceMethodDescriptorSupplier("collectTraceStream"))
.build();
}
}
}
return getCollectTraceStreamMethod;
}
@org.glowroot.agent.it.harness.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getLogMethod()} instead.
public static final org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor METHOD_LOG = getLogMethodHelper();
private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getLogMethod;
@org.glowroot.agent.it.harness.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getLogMethod() {
return getLogMethodHelper();
}
private static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getLogMethodHelper() {
org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getLogMethod;
if ((getLogMethod = CollectorServiceGrpc.getLogMethod) == null) {
synchronized (CollectorServiceGrpc.class) {
if ((getLogMethod = CollectorServiceGrpc.getLogMethod) == null) {
CollectorServiceGrpc.getLogMethod = getLogMethod =
org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.newBuilder()
.setType(org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org_glowroot_wire_api_model.CollectorService", "log"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.wire.api.model.CollectorServiceOuterClass.LogMessage.getDefaultInstance()))
.setResponseMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.wire.api.model.CollectorServiceOuterClass.EmptyMessage.getDefaultInstance()))
.setSchemaDescriptor(new CollectorServiceMethodDescriptorSupplier("log"))
.build();
}
}
}
return getLogMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static CollectorServiceStub newStub(org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel) {
return new CollectorServiceStub(channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static CollectorServiceBlockingStub newBlockingStub(
org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel) {
return new CollectorServiceBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static CollectorServiceFutureStub newFutureStub(
org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel) {
return new CollectorServiceFutureStub(channel);
}
/**
*/
public static abstract class CollectorServiceImplBase implements org.glowroot.agent.it.harness.shaded.io.grpc.BindableService {
/**
*/
public void collectInit(org.glowroot.wire.api.model.CollectorServiceOuterClass.InitMessage request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getCollectInitMethodHelper(), responseObserver);
}
/**
*
* deprecated in 0.9.5, replaced by collectAggregateStream
*
*/
public void collectAggregates(org.glowroot.wire.api.model.CollectorServiceOuterClass.OldAggregateMessage request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getCollectAggregatesMethodHelper(), responseObserver);
}
/**
*/
public org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver collectAggregateStream(
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
return asyncUnimplementedStreamingCall(getCollectAggregateStreamMethodHelper(), responseObserver);
}
/**
*/
public void collectGaugeValues(org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValueMessage request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getCollectGaugeValuesMethodHelper(), responseObserver);
}
/**
*
* deprecated in 0.9.5, replaced by collectTraceStream
*
*/
public void collectTrace(org.glowroot.wire.api.model.CollectorServiceOuterClass.OldTraceMessage request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getCollectTraceMethodHelper(), responseObserver);
}
/**
*/
public org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver collectTraceStream(
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
return asyncUnimplementedStreamingCall(getCollectTraceStreamMethodHelper(), responseObserver);
}
/**
*/
public void log(org.glowroot.wire.api.model.CollectorServiceOuterClass.LogMessage request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getLogMethodHelper(), responseObserver);
}
@java.lang.Override public final org.glowroot.agent.it.harness.shaded.io.grpc.ServerServiceDefinition bindService() {
return org.glowroot.agent.it.harness.shaded.io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCollectInitMethodHelper(),
asyncUnaryCall(
new MethodHandlers<
org.glowroot.wire.api.model.CollectorServiceOuterClass.InitMessage,
org.glowroot.wire.api.model.CollectorServiceOuterClass.InitResponse>(
this, METHODID_COLLECT_INIT)))
.addMethod(
getCollectAggregatesMethodHelper(),
asyncUnaryCall(
new MethodHandlers<
org.glowroot.wire.api.model.CollectorServiceOuterClass.OldAggregateMessage,
org.glowroot.wire.api.model.CollectorServiceOuterClass.AggregateResponseMessage>(
this, METHODID_COLLECT_AGGREGATES)))
.addMethod(
getCollectAggregateStreamMethodHelper(),
asyncClientStreamingCall(
new MethodHandlers<
org.glowroot.wire.api.model.CollectorServiceOuterClass.AggregateStreamMessage,
org.glowroot.wire.api.model.CollectorServiceOuterClass.AggregateResponseMessage>(
this, METHODID_COLLECT_AGGREGATE_STREAM)))
.addMethod(
getCollectGaugeValuesMethodHelper(),
asyncUnaryCall(
new MethodHandlers<
org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValueMessage,
org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValueResponseMessage>(
this, METHODID_COLLECT_GAUGE_VALUES)))
.addMethod(
getCollectTraceMethodHelper(),
asyncUnaryCall(
new MethodHandlers<
org.glowroot.wire.api.model.CollectorServiceOuterClass.OldTraceMessage,
org.glowroot.wire.api.model.CollectorServiceOuterClass.EmptyMessage>(
this, METHODID_COLLECT_TRACE)))
.addMethod(
getCollectTraceStreamMethodHelper(),
asyncClientStreamingCall(
new MethodHandlers<
org.glowroot.wire.api.model.CollectorServiceOuterClass.TraceStreamMessage,
org.glowroot.wire.api.model.CollectorServiceOuterClass.EmptyMessage>(
this, METHODID_COLLECT_TRACE_STREAM)))
.addMethod(
getLogMethodHelper(),
asyncUnaryCall(
new MethodHandlers<
org.glowroot.wire.api.model.CollectorServiceOuterClass.LogMessage,
org.glowroot.wire.api.model.CollectorServiceOuterClass.EmptyMessage>(
this, METHODID_LOG)))
.build();
}
}
/**
*/
public static final class CollectorServiceStub extends org.glowroot.agent.it.harness.shaded.io.grpc.stub.AbstractStub {
private CollectorServiceStub(org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel) {
super(channel);
}
private CollectorServiceStub(org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel,
org.glowroot.agent.it.harness.shaded.io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected CollectorServiceStub build(org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel,
org.glowroot.agent.it.harness.shaded.io.grpc.CallOptions callOptions) {
return new CollectorServiceStub(channel, callOptions);
}
/**
*/
public void collectInit(org.glowroot.wire.api.model.CollectorServiceOuterClass.InitMessage request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getCollectInitMethodHelper(), getCallOptions()), request, responseObserver);
}
/**
*
* deprecated in 0.9.5, replaced by collectAggregateStream
*
*/
public void collectAggregates(org.glowroot.wire.api.model.CollectorServiceOuterClass.OldAggregateMessage request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getCollectAggregatesMethodHelper(), getCallOptions()), request, responseObserver);
}
/**
*/
public org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver collectAggregateStream(
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
return asyncClientStreamingCall(
getChannel().newCall(getCollectAggregateStreamMethodHelper(), getCallOptions()), responseObserver);
}
/**
*/
public void collectGaugeValues(org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValueMessage request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getCollectGaugeValuesMethodHelper(), getCallOptions()), request, responseObserver);
}
/**
*
* deprecated in 0.9.5, replaced by collectTraceStream
*
*/
public void collectTrace(org.glowroot.wire.api.model.CollectorServiceOuterClass.OldTraceMessage request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getCollectTraceMethodHelper(), getCallOptions()), request, responseObserver);
}
/**
*/
public org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver collectTraceStream(
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
return asyncClientStreamingCall(
getChannel().newCall(getCollectTraceStreamMethodHelper(), getCallOptions()), responseObserver);
}
/**
*/
public void log(org.glowroot.wire.api.model.CollectorServiceOuterClass.LogMessage request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getLogMethodHelper(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class CollectorServiceBlockingStub extends org.glowroot.agent.it.harness.shaded.io.grpc.stub.AbstractStub {
private CollectorServiceBlockingStub(org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel) {
super(channel);
}
private CollectorServiceBlockingStub(org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel,
org.glowroot.agent.it.harness.shaded.io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected CollectorServiceBlockingStub build(org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel,
org.glowroot.agent.it.harness.shaded.io.grpc.CallOptions callOptions) {
return new CollectorServiceBlockingStub(channel, callOptions);
}
/**
*/
public org.glowroot.wire.api.model.CollectorServiceOuterClass.InitResponse collectInit(org.glowroot.wire.api.model.CollectorServiceOuterClass.InitMessage request) {
return blockingUnaryCall(
getChannel(), getCollectInitMethodHelper(), getCallOptions(), request);
}
/**
*
* deprecated in 0.9.5, replaced by collectAggregateStream
*
*/
public org.glowroot.wire.api.model.CollectorServiceOuterClass.AggregateResponseMessage collectAggregates(org.glowroot.wire.api.model.CollectorServiceOuterClass.OldAggregateMessage request) {
return blockingUnaryCall(
getChannel(), getCollectAggregatesMethodHelper(), getCallOptions(), request);
}
/**
*/
public org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValueResponseMessage collectGaugeValues(org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValueMessage request) {
return blockingUnaryCall(
getChannel(), getCollectGaugeValuesMethodHelper(), getCallOptions(), request);
}
/**
*
* deprecated in 0.9.5, replaced by collectTraceStream
*
*/
public org.glowroot.wire.api.model.CollectorServiceOuterClass.EmptyMessage collectTrace(org.glowroot.wire.api.model.CollectorServiceOuterClass.OldTraceMessage request) {
return blockingUnaryCall(
getChannel(), getCollectTraceMethodHelper(), getCallOptions(), request);
}
/**
*/
public org.glowroot.wire.api.model.CollectorServiceOuterClass.EmptyMessage log(org.glowroot.wire.api.model.CollectorServiceOuterClass.LogMessage request) {
return blockingUnaryCall(
getChannel(), getLogMethodHelper(), getCallOptions(), request);
}
}
/**
*/
public static final class CollectorServiceFutureStub extends org.glowroot.agent.it.harness.shaded.io.grpc.stub.AbstractStub {
private CollectorServiceFutureStub(org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel) {
super(channel);
}
private CollectorServiceFutureStub(org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel,
org.glowroot.agent.it.harness.shaded.io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected CollectorServiceFutureStub build(org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel,
org.glowroot.agent.it.harness.shaded.io.grpc.CallOptions callOptions) {
return new CollectorServiceFutureStub(channel, callOptions);
}
/**
*/
public org.glowroot.agent.it.harness.shaded.com.google.common.util.concurrent.ListenableFuture collectInit(
org.glowroot.wire.api.model.CollectorServiceOuterClass.InitMessage request) {
return futureUnaryCall(
getChannel().newCall(getCollectInitMethodHelper(), getCallOptions()), request);
}
/**
*
* deprecated in 0.9.5, replaced by collectAggregateStream
*
*/
public org.glowroot.agent.it.harness.shaded.com.google.common.util.concurrent.ListenableFuture collectAggregates(
org.glowroot.wire.api.model.CollectorServiceOuterClass.OldAggregateMessage request) {
return futureUnaryCall(
getChannel().newCall(getCollectAggregatesMethodHelper(), getCallOptions()), request);
}
/**
*/
public org.glowroot.agent.it.harness.shaded.com.google.common.util.concurrent.ListenableFuture collectGaugeValues(
org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValueMessage request) {
return futureUnaryCall(
getChannel().newCall(getCollectGaugeValuesMethodHelper(), getCallOptions()), request);
}
/**
*
* deprecated in 0.9.5, replaced by collectTraceStream
*
*/
public org.glowroot.agent.it.harness.shaded.com.google.common.util.concurrent.ListenableFuture collectTrace(
org.glowroot.wire.api.model.CollectorServiceOuterClass.OldTraceMessage request) {
return futureUnaryCall(
getChannel().newCall(getCollectTraceMethodHelper(), getCallOptions()), request);
}
/**
*/
public org.glowroot.agent.it.harness.shaded.com.google.common.util.concurrent.ListenableFuture log(
org.glowroot.wire.api.model.CollectorServiceOuterClass.LogMessage request) {
return futureUnaryCall(
getChannel().newCall(getLogMethodHelper(), getCallOptions()), request);
}
}
private static final int METHODID_COLLECT_INIT = 0;
private static final int METHODID_COLLECT_AGGREGATES = 1;
private static final int METHODID_COLLECT_GAUGE_VALUES = 2;
private static final int METHODID_COLLECT_TRACE = 3;
private static final int METHODID_LOG = 4;
private static final int METHODID_COLLECT_AGGREGATE_STREAM = 5;
private static final int METHODID_COLLECT_TRACE_STREAM = 6;
private static final class MethodHandlers implements
org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.UnaryMethod,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.ServerStreamingMethod,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.ClientStreamingMethod,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.BidiStreamingMethod {
private final CollectorServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(CollectorServiceImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_COLLECT_INIT:
serviceImpl.collectInit((org.glowroot.wire.api.model.CollectorServiceOuterClass.InitMessage) request,
(org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_COLLECT_AGGREGATES:
serviceImpl.collectAggregates((org.glowroot.wire.api.model.CollectorServiceOuterClass.OldAggregateMessage) request,
(org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_COLLECT_GAUGE_VALUES:
serviceImpl.collectGaugeValues((org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValueMessage) request,
(org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_COLLECT_TRACE:
serviceImpl.collectTrace((org.glowroot.wire.api.model.CollectorServiceOuterClass.OldTraceMessage) request,
(org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LOG:
serviceImpl.log((org.glowroot.wire.api.model.CollectorServiceOuterClass.LogMessage) request,
(org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver invoke(
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_COLLECT_AGGREGATE_STREAM:
return (org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) serviceImpl.collectAggregateStream(
(org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) responseObserver);
case METHODID_COLLECT_TRACE_STREAM:
return (org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) serviceImpl.collectTraceStream(
(org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) responseObserver);
default:
throw new AssertionError();
}
}
}
private static abstract class CollectorServiceBaseDescriptorSupplier
implements org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoFileDescriptorSupplier, org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoServiceDescriptorSupplier {
CollectorServiceBaseDescriptorSupplier() {}
@java.lang.Override
public org.glowroot.agent.it.harness.shaded.com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return org.glowroot.wire.api.model.CollectorServiceOuterClass.getDescriptor();
}
@java.lang.Override
public org.glowroot.agent.it.harness.shaded.com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("CollectorService");
}
}
private static final class CollectorServiceFileDescriptorSupplier
extends CollectorServiceBaseDescriptorSupplier {
CollectorServiceFileDescriptorSupplier() {}
}
private static final class CollectorServiceMethodDescriptorSupplier
extends CollectorServiceBaseDescriptorSupplier
implements org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
CollectorServiceMethodDescriptorSupplier(String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public org.glowroot.agent.it.harness.shaded.com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.ServiceDescriptor serviceDescriptor;
public static org.glowroot.agent.it.harness.shaded.io.grpc.ServiceDescriptor getServiceDescriptor() {
org.glowroot.agent.it.harness.shaded.io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (CollectorServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = org.glowroot.agent.it.harness.shaded.io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new CollectorServiceFileDescriptorSupplier())
.addMethod(getCollectInitMethodHelper())
.addMethod(getCollectAggregatesMethodHelper())
.addMethod(getCollectAggregateStreamMethodHelper())
.addMethod(getCollectGaugeValuesMethodHelper())
.addMethod(getCollectTraceMethodHelper())
.addMethod(getCollectTraceStreamMethodHelper())
.addMethod(getLogMethodHelper())
.build();
}
}
}
return result;
}
}