Package io.grpc.benchmarks.proto
Interface WorkerServiceGrpc.AsyncService
-
- All Known Implementing Classes:
WorkerServiceGrpc.WorkerServiceImplBase
- Enclosing class:
- WorkerServiceGrpc
public static interface WorkerServiceGrpc.AsyncService
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidcoreCount(Control.CoreRequest request, io.grpc.stub.StreamObserver<Control.CoreResponse> responseObserver)Just return the core count - unary calldefault voidquitWorker(Control.Void request, io.grpc.stub.StreamObserver<Control.Void> responseObserver)Quit this workerdefault io.grpc.stub.StreamObserver<Control.ClientArgs>runClient(io.grpc.stub.StreamObserver<Control.ClientStatus> responseObserver)Start client with specified workload.default io.grpc.stub.StreamObserver<Control.ServerArgs>runServer(io.grpc.stub.StreamObserver<Control.ServerStatus> responseObserver)Start server with specified workload.
-
-
-
Method Detail
-
runServer
default 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
default 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
default void coreCount(Control.CoreRequest request, io.grpc.stub.StreamObserver<Control.CoreResponse> responseObserver)
Just return the core count - unary call
-
quitWorker
default void quitWorker(Control.Void request, io.grpc.stub.StreamObserver<Control.Void> responseObserver)
Quit this worker
-
-