|
15 | 15 | import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; |
16 | 16 | import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; |
17 | 17 |
|
| 18 | +/** |
| 19 | + */ |
18 | 20 | @javax.annotation.Generated( |
19 | 21 | value = "by gRPC proto compiler (version 0.14.0-SNAPSHOT)", |
20 | 22 | comments = "Source: services.proto") |
@@ -62,31 +64,72 @@ private WorkerServiceGrpc() {} |
62 | 64 | io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.benchmarks.proto.Control.Void.getDefaultInstance()), |
63 | 65 | io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.benchmarks.proto.Control.Void.getDefaultInstance())); |
64 | 66 |
|
| 67 | + /** |
| 68 | + * Creates a new async stub that supports all call types for the service |
| 69 | + */ |
65 | 70 | public static WorkerServiceStub newStub(io.grpc.Channel channel) { |
66 | 71 | return new WorkerServiceStub(channel); |
67 | 72 | } |
68 | 73 |
|
| 74 | + /** |
| 75 | + * Creates a new blocking-style stub that supports unary and streaming output calls on the service |
| 76 | + */ |
69 | 77 | public static WorkerServiceBlockingStub newBlockingStub( |
70 | 78 | io.grpc.Channel channel) { |
71 | 79 | return new WorkerServiceBlockingStub(channel); |
72 | 80 | } |
73 | 81 |
|
| 82 | + /** |
| 83 | + * Creates a new ListenableFuture-style stub that supports unary and streaming output calls on the service |
| 84 | + */ |
74 | 85 | public static WorkerServiceFutureStub newFutureStub( |
75 | 86 | io.grpc.Channel channel) { |
76 | 87 | return new WorkerServiceFutureStub(channel); |
77 | 88 | } |
78 | 89 |
|
| 90 | + /** |
| 91 | + */ |
79 | 92 | public static interface WorkerService { |
80 | 93 |
|
| 94 | + /** |
| 95 | + * <pre> |
| 96 | + * Start server with specified workload. |
| 97 | + * First request sent specifies the ServerConfig followed by ServerStatus |
| 98 | + * response. After that, a "Mark" can be sent anytime to request the latest |
| 99 | + * stats. Closing the stream will initiate shutdown of the test server |
| 100 | + * and once the shutdown has finished, the OK status is sent to terminate |
| 101 | + * this RPC. |
| 102 | + * </pre> |
| 103 | + */ |
81 | 104 | public io.grpc.stub.StreamObserver<io.grpc.benchmarks.proto.Control.ServerArgs> runServer( |
82 | 105 | io.grpc.stub.StreamObserver<io.grpc.benchmarks.proto.Control.ServerStatus> responseObserver); |
83 | 106 |
|
| 107 | + /** |
| 108 | + * <pre> |
| 109 | + * Start client with specified workload. |
| 110 | + * First request sent specifies the ClientConfig followed by ClientStatus |
| 111 | + * response. After that, a "Mark" can be sent anytime to request the latest |
| 112 | + * stats. Closing the stream will initiate shutdown of the test client |
| 113 | + * and once the shutdown has finished, the OK status is sent to terminate |
| 114 | + * this RPC. |
| 115 | + * </pre> |
| 116 | + */ |
84 | 117 | public io.grpc.stub.StreamObserver<io.grpc.benchmarks.proto.Control.ClientArgs> runClient( |
85 | 118 | io.grpc.stub.StreamObserver<io.grpc.benchmarks.proto.Control.ClientStatus> responseObserver); |
86 | 119 |
|
| 120 | + /** |
| 121 | + * <pre> |
| 122 | + * Just return the core count - unary call |
| 123 | + * </pre> |
| 124 | + */ |
87 | 125 | public void coreCount(io.grpc.benchmarks.proto.Control.CoreRequest request, |
88 | 126 | io.grpc.stub.StreamObserver<io.grpc.benchmarks.proto.Control.CoreResponse> responseObserver); |
89 | 127 |
|
| 128 | + /** |
| 129 | + * <pre> |
| 130 | + * Quit this worker |
| 131 | + * </pre> |
| 132 | + */ |
90 | 133 | public void quitWorker(io.grpc.benchmarks.proto.Control.Void request, |
91 | 134 | io.grpc.stub.StreamObserver<io.grpc.benchmarks.proto.Control.Void> responseObserver); |
92 | 135 | } |
@@ -123,18 +166,42 @@ public void quitWorker(io.grpc.benchmarks.proto.Control.Void request, |
123 | 166 | } |
124 | 167 | } |
125 | 168 |
|
| 169 | + /** |
| 170 | + */ |
126 | 171 | public static interface WorkerServiceBlockingClient { |
127 | 172 |
|
| 173 | + /** |
| 174 | + * <pre> |
| 175 | + * Just return the core count - unary call |
| 176 | + * </pre> |
| 177 | + */ |
128 | 178 | public io.grpc.benchmarks.proto.Control.CoreResponse coreCount(io.grpc.benchmarks.proto.Control.CoreRequest request); |
129 | 179 |
|
| 180 | + /** |
| 181 | + * <pre> |
| 182 | + * Quit this worker |
| 183 | + * </pre> |
| 184 | + */ |
130 | 185 | public io.grpc.benchmarks.proto.Control.Void quitWorker(io.grpc.benchmarks.proto.Control.Void request); |
131 | 186 | } |
132 | 187 |
|
| 188 | + /** |
| 189 | + */ |
133 | 190 | public static interface WorkerServiceFutureClient { |
134 | 191 |
|
| 192 | + /** |
| 193 | + * <pre> |
| 194 | + * Just return the core count - unary call |
| 195 | + * </pre> |
| 196 | + */ |
135 | 197 | public com.google.common.util.concurrent.ListenableFuture<io.grpc.benchmarks.proto.Control.CoreResponse> coreCount( |
136 | 198 | io.grpc.benchmarks.proto.Control.CoreRequest request); |
137 | 199 |
|
| 200 | + /** |
| 201 | + * <pre> |
| 202 | + * Quit this worker |
| 203 | + * </pre> |
| 204 | + */ |
138 | 205 | public com.google.common.util.concurrent.ListenableFuture<io.grpc.benchmarks.proto.Control.Void> quitWorker( |
139 | 206 | io.grpc.benchmarks.proto.Control.Void request); |
140 | 207 | } |
|
0 commit comments