Package io.grpc.benchmarks.proto
Class WorkerServiceGrpc.WorkerServiceStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<WorkerServiceGrpc.WorkerServiceStub>
-
- io.grpc.benchmarks.proto.WorkerServiceGrpc.WorkerServiceStub
-
- Enclosing class:
- WorkerServiceGrpc
public static final class WorkerServiceGrpc.WorkerServiceStub extends io.grpc.stub.AbstractAsyncStub<WorkerServiceGrpc.WorkerServiceStub>
A stub to allow clients to do asynchronous rpc calls to service WorkerService.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WorkerServiceGrpc.WorkerServiceStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)voidcoreCount(Control.CoreRequest request, io.grpc.stub.StreamObserver<Control.CoreResponse> responseObserver)Just return the core count - unary callvoidquitWorker(Control.Void request, io.grpc.stub.StreamObserver<Control.Void> responseObserver)Quit this workerio.grpc.stub.StreamObserver<Control.ClientArgs>runClient(io.grpc.stub.StreamObserver<Control.ClientStatus> responseObserver)Start client with specified workload.io.grpc.stub.StreamObserver<Control.ServerArgs>runServer(io.grpc.stub.StreamObserver<Control.ServerStatus> responseObserver)Start server with specified workload.
-
-
-
Method Detail
-
build
protected WorkerServiceGrpc.WorkerServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<WorkerServiceGrpc.WorkerServiceStub>
-
runServer
public io.grpc.stub.StreamObserver<Control.ServerArgs> runServer(io.grpc.stub.StreamObserver<Control.ServerStatus> responseObserver)
Start server with specified workload. First request sent specifies the ServerConfig followed by ServerStatus response. After that, a "Mark" can be sent anytime to request the latest stats. Closing the stream will initiate shutdown of the test server and once the shutdown has finished, the OK status is sent to terminate this RPC.
-
runClient
public io.grpc.stub.StreamObserver<Control.ClientArgs> runClient(io.grpc.stub.StreamObserver<Control.ClientStatus> responseObserver)
Start client with specified workload. First request sent specifies the ClientConfig followed by ClientStatus response. After that, a "Mark" can be sent anytime to request the latest stats. Closing the stream will initiate shutdown of the test client and once the shutdown has finished, the OK status is sent to terminate this RPC.
-
coreCount
public void coreCount(Control.CoreRequest request, io.grpc.stub.StreamObserver<Control.CoreResponse> responseObserver)
Just return the core count - unary call
-
quitWorker
public void quitWorker(Control.Void request, io.grpc.stub.StreamObserver<Control.Void> responseObserver)
Quit this worker
-
-