17 #ifndef PAGESPEED_CONTROLLER_EXPENSIVE_OPERATION_RPC_HANDLER_H_
18 #define PAGESPEED_CONTROLLER_EXPENSIVE_OPERATION_RPC_HANDLER_H_
20 #include "pagespeed/controller/controller.pb.h"
21 #include "pagespeed/controller/controller.grpc.pb.h"
29 namespace net_instaweb {
49 ExpensiveOperationRpcHandler, ExpensiveOperationController,
50 grpc::CentralControllerRpcService::AsyncService,
51 ScheduleExpensiveOperationRequest,
52 ScheduleExpensiveOperationResponse> {
55 grpc::CentralControllerRpcService::AsyncService* service,
56 ::grpc::ServerCompletionQueue* cq,
61 const ScheduleExpensiveOperationRequest& req,
Function* cb)
override;
62 void HandleClientResult(
63 const ScheduleExpensiveOperationRequest& req)
override;
66 void InitResponder(grpc::CentralControllerRpcService::AsyncService* service,
67 ::grpc::ServerContext* ctx, ReaderWriterT* responder,
68 ::grpc::ServerCompletionQueue* cq,
69 void* callback)
override;
74 friend class ExpensiveOperationRpcHandlerTest;
Definition: expensive_operation_controller.h:28
void HandleClientRequest(const ScheduleExpensiveOperationRequest &req, Function *cb) override
RequestResultRpcHandler implementation.
void InitResponder(grpc::CentralControllerRpcService::AsyncService *service,::grpc::ServerContext *ctx, ReaderWriterT *responder,::grpc::ServerCompletionQueue *cq, void *callback) override
void HandleOperationFailed() override
Definition: function.h:47
Definition: expensive_operation_rpc_handler.h:47
Definition: request_result_rpc_handler.h:46