org.glowroot.agent.it.harness.grpc.JavaagentServiceGrpc 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.agent.it.harness.grpc;
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.14.0)",
comments = "Source: JavaagentService.proto")
public final class JavaagentServiceGrpc {
private JavaagentServiceGrpc() {}
public static final String SERVICE_NAME = "org_glowroot_agent_it_harness.JavaagentService";
// Static method descriptors that strictly reflect the proto.
private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getPingMethod;
@org.glowroot.agent.it.harness.shaded.io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ping",
requestType = org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.class,
responseType = org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.class,
methodType = org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
public static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getPingMethod() {
org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getPingMethod;
if ((getPingMethod = JavaagentServiceGrpc.getPingMethod) == null) {
synchronized (JavaagentServiceGrpc.class) {
if ((getPingMethod = JavaagentServiceGrpc.getPingMethod) == null) {
JavaagentServiceGrpc.getPingMethod = getPingMethod =
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_agent_it_harness.JavaagentService", "ping"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()))
.setResponseMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()))
.setSchemaDescriptor(new JavaagentServiceMethodDescriptorSupplier("ping"))
.build();
}
}
}
return getPingMethod;
}
private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getExecuteAppMethod;
@org.glowroot.agent.it.harness.shaded.io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "executeApp",
requestType = org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.AppUnderTestClassName.class,
responseType = org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.class,
methodType = org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
public static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getExecuteAppMethod() {
org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getExecuteAppMethod;
if ((getExecuteAppMethod = JavaagentServiceGrpc.getExecuteAppMethod) == null) {
synchronized (JavaagentServiceGrpc.class) {
if ((getExecuteAppMethod = JavaagentServiceGrpc.getExecuteAppMethod) == null) {
JavaagentServiceGrpc.getExecuteAppMethod = getExecuteAppMethod =
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_agent_it_harness.JavaagentService", "executeApp"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.AppUnderTestClassName.getDefaultInstance()))
.setResponseMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()))
.setSchemaDescriptor(new JavaagentServiceMethodDescriptorSupplier("executeApp"))
.build();
}
}
}
return getExecuteAppMethod;
}
private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getInterruptAppMethod;
@org.glowroot.agent.it.harness.shaded.io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "interruptApp",
requestType = org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.class,
responseType = org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.class,
methodType = org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
public static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getInterruptAppMethod() {
org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getInterruptAppMethod;
if ((getInterruptAppMethod = JavaagentServiceGrpc.getInterruptAppMethod) == null) {
synchronized (JavaagentServiceGrpc.class) {
if ((getInterruptAppMethod = JavaagentServiceGrpc.getInterruptAppMethod) == null) {
JavaagentServiceGrpc.getInterruptAppMethod = getInterruptAppMethod =
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_agent_it_harness.JavaagentService", "interruptApp"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()))
.setResponseMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()))
.setSchemaDescriptor(new JavaagentServiceMethodDescriptorSupplier("interruptApp"))
.build();
}
}
}
return getInterruptAppMethod;
}
private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getSetSlowThresholdToZeroMethod;
@org.glowroot.agent.it.harness.shaded.io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "setSlowThresholdToZero",
requestType = org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.class,
responseType = org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.class,
methodType = org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
public static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getSetSlowThresholdToZeroMethod() {
org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getSetSlowThresholdToZeroMethod;
if ((getSetSlowThresholdToZeroMethod = JavaagentServiceGrpc.getSetSlowThresholdToZeroMethod) == null) {
synchronized (JavaagentServiceGrpc.class) {
if ((getSetSlowThresholdToZeroMethod = JavaagentServiceGrpc.getSetSlowThresholdToZeroMethod) == null) {
JavaagentServiceGrpc.getSetSlowThresholdToZeroMethod = getSetSlowThresholdToZeroMethod =
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_agent_it_harness.JavaagentService", "setSlowThresholdToZero"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()))
.setResponseMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()))
.setSchemaDescriptor(new JavaagentServiceMethodDescriptorSupplier("setSlowThresholdToZero"))
.build();
}
}
}
return getSetSlowThresholdToZeroMethod;
}
private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getResetConfigMethod;
@org.glowroot.agent.it.harness.shaded.io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "resetConfig",
requestType = org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.class,
responseType = org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.class,
methodType = org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
public static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getResetConfigMethod() {
org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getResetConfigMethod;
if ((getResetConfigMethod = JavaagentServiceGrpc.getResetConfigMethod) == null) {
synchronized (JavaagentServiceGrpc.class) {
if ((getResetConfigMethod = JavaagentServiceGrpc.getResetConfigMethod) == null) {
JavaagentServiceGrpc.getResetConfigMethod = getResetConfigMethod =
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_agent_it_harness.JavaagentService", "resetConfig"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()))
.setResponseMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()))
.setSchemaDescriptor(new JavaagentServiceMethodDescriptorSupplier("resetConfig"))
.build();
}
}
}
return getResetConfigMethod;
}
private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getShutdownMethod;
@org.glowroot.agent.it.harness.shaded.io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "shutdown",
requestType = org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.class,
responseType = org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.class,
methodType = org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
public static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getShutdownMethod() {
org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getShutdownMethod;
if ((getShutdownMethod = JavaagentServiceGrpc.getShutdownMethod) == null) {
synchronized (JavaagentServiceGrpc.class) {
if ((getShutdownMethod = JavaagentServiceGrpc.getShutdownMethod) == null) {
JavaagentServiceGrpc.getShutdownMethod = getShutdownMethod =
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_agent_it_harness.JavaagentService", "shutdown"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()))
.setResponseMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()))
.setSchemaDescriptor(new JavaagentServiceMethodDescriptorSupplier("shutdown"))
.build();
}
}
}
return getShutdownMethod;
}
private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getKillMethod;
@org.glowroot.agent.it.harness.shaded.io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "kill",
requestType = org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.class,
responseType = org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.class,
methodType = org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
public static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getKillMethod() {
org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getKillMethod;
if ((getKillMethod = JavaagentServiceGrpc.getKillMethod) == null) {
synchronized (JavaagentServiceGrpc.class) {
if ((getKillMethod = JavaagentServiceGrpc.getKillMethod) == null) {
JavaagentServiceGrpc.getKillMethod = getKillMethod =
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_agent_it_harness.JavaagentService", "kill"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()))
.setResponseMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()))
.setSchemaDescriptor(new JavaagentServiceMethodDescriptorSupplier("kill"))
.build();
}
}
}
return getKillMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static JavaagentServiceStub newStub(org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel) {
return new JavaagentServiceStub(channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static JavaagentServiceBlockingStub newBlockingStub(
org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel) {
return new JavaagentServiceBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static JavaagentServiceFutureStub newFutureStub(
org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel) {
return new JavaagentServiceFutureStub(channel);
}
/**
*/
public static abstract class JavaagentServiceImplBase implements org.glowroot.agent.it.harness.shaded.io.grpc.BindableService {
/**
*/
public void ping(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getPingMethod(), responseObserver);
}
/**
*/
public void executeApp(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.AppUnderTestClassName request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getExecuteAppMethod(), responseObserver);
}
/**
*/
public void interruptApp(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getInterruptAppMethod(), responseObserver);
}
/**
*/
public void setSlowThresholdToZero(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getSetSlowThresholdToZeroMethod(), responseObserver);
}
/**
*/
public void resetConfig(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getResetConfigMethod(), responseObserver);
}
/**
*/
public void shutdown(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getShutdownMethod(), responseObserver);
}
/**
*/
public void kill(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getKillMethod(), 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(
getPingMethod(),
asyncUnaryCall(
new MethodHandlers<
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void,
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void>(
this, METHODID_PING)))
.addMethod(
getExecuteAppMethod(),
asyncUnaryCall(
new MethodHandlers<
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.AppUnderTestClassName,
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void>(
this, METHODID_EXECUTE_APP)))
.addMethod(
getInterruptAppMethod(),
asyncUnaryCall(
new MethodHandlers<
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void,
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void>(
this, METHODID_INTERRUPT_APP)))
.addMethod(
getSetSlowThresholdToZeroMethod(),
asyncUnaryCall(
new MethodHandlers<
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void,
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void>(
this, METHODID_SET_SLOW_THRESHOLD_TO_ZERO)))
.addMethod(
getResetConfigMethod(),
asyncUnaryCall(
new MethodHandlers<
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void,
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void>(
this, METHODID_RESET_CONFIG)))
.addMethod(
getShutdownMethod(),
asyncUnaryCall(
new MethodHandlers<
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void,
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void>(
this, METHODID_SHUTDOWN)))
.addMethod(
getKillMethod(),
asyncUnaryCall(
new MethodHandlers<
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void,
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void>(
this, METHODID_KILL)))
.build();
}
}
/**
*/
public static final class JavaagentServiceStub extends org.glowroot.agent.it.harness.shaded.io.grpc.stub.AbstractStub {
private JavaagentServiceStub(org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel) {
super(channel);
}
private JavaagentServiceStub(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 JavaagentServiceStub build(org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel,
org.glowroot.agent.it.harness.shaded.io.grpc.CallOptions callOptions) {
return new JavaagentServiceStub(channel, callOptions);
}
/**
*/
public void ping(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getPingMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void executeApp(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.AppUnderTestClassName request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getExecuteAppMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void interruptApp(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getInterruptAppMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void setSlowThresholdToZero(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getSetSlowThresholdToZeroMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void resetConfig(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getResetConfigMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void shutdown(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getShutdownMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void kill(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request,
org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getKillMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class JavaagentServiceBlockingStub extends org.glowroot.agent.it.harness.shaded.io.grpc.stub.AbstractStub {
private JavaagentServiceBlockingStub(org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel) {
super(channel);
}
private JavaagentServiceBlockingStub(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 JavaagentServiceBlockingStub build(org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel,
org.glowroot.agent.it.harness.shaded.io.grpc.CallOptions callOptions) {
return new JavaagentServiceBlockingStub(channel, callOptions);
}
/**
*/
public org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void ping(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request) {
return blockingUnaryCall(
getChannel(), getPingMethod(), getCallOptions(), request);
}
/**
*/
public org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void executeApp(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.AppUnderTestClassName request) {
return blockingUnaryCall(
getChannel(), getExecuteAppMethod(), getCallOptions(), request);
}
/**
*/
public org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void interruptApp(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request) {
return blockingUnaryCall(
getChannel(), getInterruptAppMethod(), getCallOptions(), request);
}
/**
*/
public org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void setSlowThresholdToZero(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request) {
return blockingUnaryCall(
getChannel(), getSetSlowThresholdToZeroMethod(), getCallOptions(), request);
}
/**
*/
public org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void resetConfig(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request) {
return blockingUnaryCall(
getChannel(), getResetConfigMethod(), getCallOptions(), request);
}
/**
*/
public org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void shutdown(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request) {
return blockingUnaryCall(
getChannel(), getShutdownMethod(), getCallOptions(), request);
}
/**
*/
public org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void kill(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request) {
return blockingUnaryCall(
getChannel(), getKillMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class JavaagentServiceFutureStub extends org.glowroot.agent.it.harness.shaded.io.grpc.stub.AbstractStub {
private JavaagentServiceFutureStub(org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel) {
super(channel);
}
private JavaagentServiceFutureStub(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 JavaagentServiceFutureStub build(org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel,
org.glowroot.agent.it.harness.shaded.io.grpc.CallOptions callOptions) {
return new JavaagentServiceFutureStub(channel, callOptions);
}
/**
*/
public org.glowroot.agent.it.harness.shaded.com.google.common.util.concurrent.ListenableFuture ping(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request) {
return futureUnaryCall(
getChannel().newCall(getPingMethod(), getCallOptions()), request);
}
/**
*/
public org.glowroot.agent.it.harness.shaded.com.google.common.util.concurrent.ListenableFuture executeApp(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.AppUnderTestClassName request) {
return futureUnaryCall(
getChannel().newCall(getExecuteAppMethod(), getCallOptions()), request);
}
/**
*/
public org.glowroot.agent.it.harness.shaded.com.google.common.util.concurrent.ListenableFuture interruptApp(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request) {
return futureUnaryCall(
getChannel().newCall(getInterruptAppMethod(), getCallOptions()), request);
}
/**
*/
public org.glowroot.agent.it.harness.shaded.com.google.common.util.concurrent.ListenableFuture setSlowThresholdToZero(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request) {
return futureUnaryCall(
getChannel().newCall(getSetSlowThresholdToZeroMethod(), getCallOptions()), request);
}
/**
*/
public org.glowroot.agent.it.harness.shaded.com.google.common.util.concurrent.ListenableFuture resetConfig(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request) {
return futureUnaryCall(
getChannel().newCall(getResetConfigMethod(), getCallOptions()), request);
}
/**
*/
public org.glowroot.agent.it.harness.shaded.com.google.common.util.concurrent.ListenableFuture shutdown(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request) {
return futureUnaryCall(
getChannel().newCall(getShutdownMethod(), getCallOptions()), request);
}
/**
*/
public org.glowroot.agent.it.harness.shaded.com.google.common.util.concurrent.ListenableFuture kill(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request) {
return futureUnaryCall(
getChannel().newCall(getKillMethod(), getCallOptions()), request);
}
}
private static final int METHODID_PING = 0;
private static final int METHODID_EXECUTE_APP = 1;
private static final int METHODID_INTERRUPT_APP = 2;
private static final int METHODID_SET_SLOW_THRESHOLD_TO_ZERO = 3;
private static final int METHODID_RESET_CONFIG = 4;
private static final int METHODID_SHUTDOWN = 5;
private static final int METHODID_KILL = 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 JavaagentServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(JavaagentServiceImplBase 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_PING:
serviceImpl.ping((org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void) request,
(org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_EXECUTE_APP:
serviceImpl.executeApp((org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.AppUnderTestClassName) request,
(org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_INTERRUPT_APP:
serviceImpl.interruptApp((org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void) request,
(org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SET_SLOW_THRESHOLD_TO_ZERO:
serviceImpl.setSlowThresholdToZero((org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void) request,
(org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_RESET_CONFIG:
serviceImpl.resetConfig((org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void) request,
(org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SHUTDOWN:
serviceImpl.shutdown((org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void) request,
(org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_KILL:
serviceImpl.kill((org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void) 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) {
default:
throw new AssertionError();
}
}
}
private static abstract class JavaagentServiceBaseDescriptorSupplier
implements org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoFileDescriptorSupplier, org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoServiceDescriptorSupplier {
JavaagentServiceBaseDescriptorSupplier() {}
@java.lang.Override
public org.glowroot.agent.it.harness.shaded.com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.getDescriptor();
}
@java.lang.Override
public org.glowroot.agent.it.harness.shaded.com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("JavaagentService");
}
}
private static final class JavaagentServiceFileDescriptorSupplier
extends JavaagentServiceBaseDescriptorSupplier {
JavaagentServiceFileDescriptorSupplier() {}
}
private static final class JavaagentServiceMethodDescriptorSupplier
extends JavaagentServiceBaseDescriptorSupplier
implements org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
JavaagentServiceMethodDescriptorSupplier(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 (JavaagentServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = org.glowroot.agent.it.harness.shaded.io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new JavaagentServiceFileDescriptorSupplier())
.addMethod(getPingMethod())
.addMethod(getExecuteAppMethod())
.addMethod(getInterruptAppMethod())
.addMethod(getSetSlowThresholdToZeroMethod())
.addMethod(getResetConfigMethod())
.addMethod(getShutdownMethod())
.addMethod(getKillMethod())
.build();
}
}
}
return result;
}
}