worker_service.proto 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // Copyright 2015 gRPC authors.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // An integration test service that covers all the method signature permutations
  15. // of unary/streaming requests/responses.
  16. syntax = "proto3";
  17. import "grpc/testing/control.proto";
  18. package grpc.testing;
  19. option java_multiple_files = true;
  20. option java_package = "io.grpc.testing";
  21. option java_outer_classname = "WorkerServiceProto";
  22. service WorkerService {
  23. // Start server with specified workload.
  24. // First request sent specifies the ServerConfig followed by ServerStatus
  25. // response. After that, a "Mark" can be sent anytime to request the latest
  26. // stats. Closing the stream will initiate shutdown of the test server
  27. // and once the shutdown has finished, the OK status is sent to terminate
  28. // this RPC.
  29. rpc RunServer(stream ServerArgs) returns (stream ServerStatus);
  30. // Start client with specified workload.
  31. // First request sent specifies the ClientConfig followed by ClientStatus
  32. // response. After that, a "Mark" can be sent anytime to request the latest
  33. // stats. Closing the stream will initiate shutdown of the test client
  34. // and once the shutdown has finished, the OK status is sent to terminate
  35. // this RPC.
  36. rpc RunClient(stream ClientArgs) returns (stream ClientStatus);
  37. // Just return the core count - unary call
  38. rpc CoreCount(CoreRequest) returns (CoreResponse);
  39. // Quit this worker
  40. rpc QuitWorker(Void) returns (Void);
  41. }