
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.shaded.grpc.stub.ClientCalls.asyncUnaryCall;
import static org.glowroot.agent.shaded.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static org.glowroot.agent.shaded.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static org.glowroot.agent.shaded.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static org.glowroot.agent.shaded.grpc.stub.ClientCalls.blockingUnaryCall;
import static org.glowroot.agent.shaded.grpc.stub.ClientCalls.blockingServerStreamingCall;
import static org.glowroot.agent.shaded.grpc.stub.ClientCalls.futureUnaryCall;
import static org.glowroot.agent.shaded.grpc.MethodDescriptor.generateFullMethodName;
import static org.glowroot.agent.shaded.grpc.stub.ServerCalls.asyncUnaryCall;
import static org.glowroot.agent.shaded.grpc.stub.ServerCalls.asyncServerStreamingCall;
import static org.glowroot.agent.shaded.grpc.stub.ServerCalls.asyncClientStreamingCall;
import static org.glowroot.agent.shaded.grpc.stub.ServerCalls.asyncBidiStreamingCall;
@javax.annotation.Generated("by gRPC proto compiler")
public class JavaagentServiceGrpc {
private JavaagentServiceGrpc() {}
public static final String SERVICE_NAME = "org_glowroot_agent_it_harness.JavaagentService";
// Static method descriptors that strictly reflect the proto.
@org.glowroot.agent.shaded.grpc.ExperimentalApi
public static final org.glowroot.agent.shaded.grpc.MethodDescriptor METHOD_PING =
org.glowroot.agent.shaded.grpc.MethodDescriptor.create(
org.glowroot.agent.shaded.grpc.MethodDescriptor.MethodType.UNARY,
generateFullMethodName(
"org_glowroot_agent_it_harness.JavaagentService", "ping"),
org.glowroot.agent.shaded.grpc.protobuf.ProtoUtils.marshaller(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()),
org.glowroot.agent.shaded.grpc.protobuf.ProtoUtils.marshaller(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()));
@org.glowroot.agent.shaded.grpc.ExperimentalApi
public static final org.glowroot.agent.shaded.grpc.MethodDescriptor METHOD_EXECUTE_APP =
org.glowroot.agent.shaded.grpc.MethodDescriptor.create(
org.glowroot.agent.shaded.grpc.MethodDescriptor.MethodType.UNARY,
generateFullMethodName(
"org_glowroot_agent_it_harness.JavaagentService", "executeApp"),
org.glowroot.agent.shaded.grpc.protobuf.ProtoUtils.marshaller(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.AppUnderTestClassName.getDefaultInstance()),
org.glowroot.agent.shaded.grpc.protobuf.ProtoUtils.marshaller(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()));
@org.glowroot.agent.shaded.grpc.ExperimentalApi
public static final org.glowroot.agent.shaded.grpc.MethodDescriptor METHOD_INTERRUPT_APP =
org.glowroot.agent.shaded.grpc.MethodDescriptor.create(
org.glowroot.agent.shaded.grpc.MethodDescriptor.MethodType.UNARY,
generateFullMethodName(
"org_glowroot_agent_it_harness.JavaagentService", "interruptApp"),
org.glowroot.agent.shaded.grpc.protobuf.ProtoUtils.marshaller(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()),
org.glowroot.agent.shaded.grpc.protobuf.ProtoUtils.marshaller(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()));
@org.glowroot.agent.shaded.grpc.ExperimentalApi
public static final org.glowroot.agent.shaded.grpc.MethodDescriptor METHOD_RESET_CONFIG =
org.glowroot.agent.shaded.grpc.MethodDescriptor.create(
org.glowroot.agent.shaded.grpc.MethodDescriptor.MethodType.UNARY,
generateFullMethodName(
"org_glowroot_agent_it_harness.JavaagentService", "resetConfig"),
org.glowroot.agent.shaded.grpc.protobuf.ProtoUtils.marshaller(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()),
org.glowroot.agent.shaded.grpc.protobuf.ProtoUtils.marshaller(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()));
@org.glowroot.agent.shaded.grpc.ExperimentalApi
public static final org.glowroot.agent.shaded.grpc.MethodDescriptor METHOD_SHUTDOWN =
org.glowroot.agent.shaded.grpc.MethodDescriptor.create(
org.glowroot.agent.shaded.grpc.MethodDescriptor.MethodType.UNARY,
generateFullMethodName(
"org_glowroot_agent_it_harness.JavaagentService", "shutdown"),
org.glowroot.agent.shaded.grpc.protobuf.ProtoUtils.marshaller(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()),
org.glowroot.agent.shaded.grpc.protobuf.ProtoUtils.marshaller(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()));
@org.glowroot.agent.shaded.grpc.ExperimentalApi
public static final org.glowroot.agent.shaded.grpc.MethodDescriptor METHOD_KILL =
org.glowroot.agent.shaded.grpc.MethodDescriptor.create(
org.glowroot.agent.shaded.grpc.MethodDescriptor.MethodType.UNARY,
generateFullMethodName(
"org_glowroot_agent_it_harness.JavaagentService", "kill"),
org.glowroot.agent.shaded.grpc.protobuf.ProtoUtils.marshaller(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()),
org.glowroot.agent.shaded.grpc.protobuf.ProtoUtils.marshaller(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void.getDefaultInstance()));
public static JavaagentServiceStub newStub(org.glowroot.agent.shaded.grpc.Channel channel) {
return new JavaagentServiceStub(channel);
}
public static JavaagentServiceBlockingStub newBlockingStub(
org.glowroot.agent.shaded.grpc.Channel channel) {
return new JavaagentServiceBlockingStub(channel);
}
public static JavaagentServiceFutureStub newFutureStub(
org.glowroot.agent.shaded.grpc.Channel channel) {
return new JavaagentServiceFutureStub(channel);
}
public static interface JavaagentService {
public void ping(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request,
org.glowroot.agent.shaded.grpc.stub.StreamObserver responseObserver);
public void executeApp(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.AppUnderTestClassName request,
org.glowroot.agent.shaded.grpc.stub.StreamObserver responseObserver);
public void interruptApp(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request,
org.glowroot.agent.shaded.grpc.stub.StreamObserver responseObserver);
public void resetConfig(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request,
org.glowroot.agent.shaded.grpc.stub.StreamObserver responseObserver);
public void shutdown(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request,
org.glowroot.agent.shaded.grpc.stub.StreamObserver responseObserver);
public void kill(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request,
org.glowroot.agent.shaded.grpc.stub.StreamObserver responseObserver);
}
public static interface JavaagentServiceBlockingClient {
public org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void ping(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request);
public org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void executeApp(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.AppUnderTestClassName request);
public org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void interruptApp(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request);
public org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void resetConfig(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request);
public org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void shutdown(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request);
public org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void kill(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request);
}
public static interface JavaagentServiceFutureClient {
public com.google.common.util.concurrent.ListenableFuture ping(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request);
public com.google.common.util.concurrent.ListenableFuture executeApp(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.AppUnderTestClassName request);
public com.google.common.util.concurrent.ListenableFuture interruptApp(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request);
public com.google.common.util.concurrent.ListenableFuture resetConfig(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request);
public com.google.common.util.concurrent.ListenableFuture shutdown(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request);
public com.google.common.util.concurrent.ListenableFuture kill(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request);
}
public static class JavaagentServiceStub extends org.glowroot.agent.shaded.grpc.stub.AbstractStub
implements JavaagentService {
private JavaagentServiceStub(org.glowroot.agent.shaded.grpc.Channel channel) {
super(channel);
}
private JavaagentServiceStub(org.glowroot.agent.shaded.grpc.Channel channel,
org.glowroot.agent.shaded.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected JavaagentServiceStub build(org.glowroot.agent.shaded.grpc.Channel channel,
org.glowroot.agent.shaded.grpc.CallOptions callOptions) {
return new JavaagentServiceStub(channel, callOptions);
}
@java.lang.Override
public void ping(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request,
org.glowroot.agent.shaded.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(METHOD_PING, getCallOptions()), request, responseObserver);
}
@java.lang.Override
public void executeApp(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.AppUnderTestClassName request,
org.glowroot.agent.shaded.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(METHOD_EXECUTE_APP, getCallOptions()), request, responseObserver);
}
@java.lang.Override
public void interruptApp(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request,
org.glowroot.agent.shaded.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(METHOD_INTERRUPT_APP, getCallOptions()), request, responseObserver);
}
@java.lang.Override
public void resetConfig(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request,
org.glowroot.agent.shaded.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(METHOD_RESET_CONFIG, getCallOptions()), request, responseObserver);
}
@java.lang.Override
public void shutdown(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request,
org.glowroot.agent.shaded.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(METHOD_SHUTDOWN, getCallOptions()), request, responseObserver);
}
@java.lang.Override
public void kill(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request,
org.glowroot.agent.shaded.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(METHOD_KILL, getCallOptions()), request, responseObserver);
}
}
public static class JavaagentServiceBlockingStub extends org.glowroot.agent.shaded.grpc.stub.AbstractStub
implements JavaagentServiceBlockingClient {
private JavaagentServiceBlockingStub(org.glowroot.agent.shaded.grpc.Channel channel) {
super(channel);
}
private JavaagentServiceBlockingStub(org.glowroot.agent.shaded.grpc.Channel channel,
org.glowroot.agent.shaded.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected JavaagentServiceBlockingStub build(org.glowroot.agent.shaded.grpc.Channel channel,
org.glowroot.agent.shaded.grpc.CallOptions callOptions) {
return new JavaagentServiceBlockingStub(channel, callOptions);
}
@java.lang.Override
public org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void ping(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request) {
return blockingUnaryCall(
getChannel(), METHOD_PING, getCallOptions(), request);
}
@java.lang.Override
public org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void executeApp(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.AppUnderTestClassName request) {
return blockingUnaryCall(
getChannel(), METHOD_EXECUTE_APP, getCallOptions(), request);
}
@java.lang.Override
public org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void interruptApp(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request) {
return blockingUnaryCall(
getChannel(), METHOD_INTERRUPT_APP, getCallOptions(), request);
}
@java.lang.Override
public org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void resetConfig(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request) {
return blockingUnaryCall(
getChannel(), METHOD_RESET_CONFIG, getCallOptions(), request);
}
@java.lang.Override
public org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void shutdown(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request) {
return blockingUnaryCall(
getChannel(), METHOD_SHUTDOWN, getCallOptions(), request);
}
@java.lang.Override
public org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void kill(org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request) {
return blockingUnaryCall(
getChannel(), METHOD_KILL, getCallOptions(), request);
}
}
public static class JavaagentServiceFutureStub extends org.glowroot.agent.shaded.grpc.stub.AbstractStub
implements JavaagentServiceFutureClient {
private JavaagentServiceFutureStub(org.glowroot.agent.shaded.grpc.Channel channel) {
super(channel);
}
private JavaagentServiceFutureStub(org.glowroot.agent.shaded.grpc.Channel channel,
org.glowroot.agent.shaded.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected JavaagentServiceFutureStub build(org.glowroot.agent.shaded.grpc.Channel channel,
org.glowroot.agent.shaded.grpc.CallOptions callOptions) {
return new JavaagentServiceFutureStub(channel, callOptions);
}
@java.lang.Override
public com.google.common.util.concurrent.ListenableFuture ping(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request) {
return futureUnaryCall(
getChannel().newCall(METHOD_PING, getCallOptions()), request);
}
@java.lang.Override
public com.google.common.util.concurrent.ListenableFuture executeApp(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.AppUnderTestClassName request) {
return futureUnaryCall(
getChannel().newCall(METHOD_EXECUTE_APP, getCallOptions()), request);
}
@java.lang.Override
public com.google.common.util.concurrent.ListenableFuture interruptApp(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request) {
return futureUnaryCall(
getChannel().newCall(METHOD_INTERRUPT_APP, getCallOptions()), request);
}
@java.lang.Override
public com.google.common.util.concurrent.ListenableFuture resetConfig(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request) {
return futureUnaryCall(
getChannel().newCall(METHOD_RESET_CONFIG, getCallOptions()), request);
}
@java.lang.Override
public com.google.common.util.concurrent.ListenableFuture shutdown(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request) {
return futureUnaryCall(
getChannel().newCall(METHOD_SHUTDOWN, getCallOptions()), request);
}
@java.lang.Override
public com.google.common.util.concurrent.ListenableFuture kill(
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void request) {
return futureUnaryCall(
getChannel().newCall(METHOD_KILL, 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_RESET_CONFIG = 3;
private static final int METHODID_SHUTDOWN = 4;
private static final int METHODID_KILL = 5;
private static class MethodHandlers implements
org.glowroot.agent.shaded.grpc.stub.ServerCalls.UnaryMethod,
org.glowroot.agent.shaded.grpc.stub.ServerCalls.ServerStreamingMethod,
org.glowroot.agent.shaded.grpc.stub.ServerCalls.ClientStreamingMethod,
org.glowroot.agent.shaded.grpc.stub.ServerCalls.BidiStreamingMethod {
private final JavaagentService serviceImpl;
private final int methodId;
public MethodHandlers(JavaagentService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, org.glowroot.agent.shaded.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_PING:
serviceImpl.ping((org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void) request,
(org.glowroot.agent.shaded.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_EXECUTE_APP:
serviceImpl.executeApp((org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.AppUnderTestClassName) request,
(org.glowroot.agent.shaded.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_INTERRUPT_APP:
serviceImpl.interruptApp((org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void) request,
(org.glowroot.agent.shaded.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_RESET_CONFIG:
serviceImpl.resetConfig((org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void) request,
(org.glowroot.agent.shaded.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SHUTDOWN:
serviceImpl.shutdown((org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void) request,
(org.glowroot.agent.shaded.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_KILL:
serviceImpl.kill((org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void) request,
(org.glowroot.agent.shaded.grpc.stub.StreamObserver) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.SuppressWarnings("unchecked")
public org.glowroot.agent.shaded.grpc.stub.StreamObserver invoke(
org.glowroot.agent.shaded.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
public static org.glowroot.agent.shaded.grpc.ServerServiceDefinition bindService(
final JavaagentService serviceImpl) {
return org.glowroot.agent.shaded.grpc.ServerServiceDefinition.builder(SERVICE_NAME)
.addMethod(
METHOD_PING,
asyncUnaryCall(
new MethodHandlers<
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void,
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void>(
serviceImpl, METHODID_PING)))
.addMethod(
METHOD_EXECUTE_APP,
asyncUnaryCall(
new MethodHandlers<
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.AppUnderTestClassName,
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void>(
serviceImpl, METHODID_EXECUTE_APP)))
.addMethod(
METHOD_INTERRUPT_APP,
asyncUnaryCall(
new MethodHandlers<
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void,
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void>(
serviceImpl, METHODID_INTERRUPT_APP)))
.addMethod(
METHOD_RESET_CONFIG,
asyncUnaryCall(
new MethodHandlers<
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void,
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void>(
serviceImpl, METHODID_RESET_CONFIG)))
.addMethod(
METHOD_SHUTDOWN,
asyncUnaryCall(
new MethodHandlers<
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void,
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void>(
serviceImpl, METHODID_SHUTDOWN)))
.addMethod(
METHOD_KILL,
asyncUnaryCall(
new MethodHandlers<
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void,
org.glowroot.agent.it.harness.grpc.JavaagentServiceOuterClass.Void>(
serviceImpl, METHODID_KILL)))
.build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy