Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
expensive_operation_rpc_handler.h
Go to the documentation of this file.
1 // Copyright 2016 Google Inc.
16 
17 #ifndef PAGESPEED_CONTROLLER_EXPENSIVE_OPERATION_RPC_HANDLER_H_
18 #define PAGESPEED_CONTROLLER_EXPENSIVE_OPERATION_RPC_HANDLER_H_
19 
20 #include "pagespeed/controller/controller.pb.h"
21 #include "pagespeed/controller/controller.grpc.pb.h"
28 
29 namespace net_instaweb {
30 
46 
48  : public RequestResultRpcHandler<
49  ExpensiveOperationRpcHandler, ExpensiveOperationController,
50  grpc::CentralControllerRpcService::AsyncService,
51  ScheduleExpensiveOperationRequest,
52  ScheduleExpensiveOperationResponse> {
53  protected:
55  grpc::CentralControllerRpcService::AsyncService* service,
56  ::grpc::ServerCompletionQueue* cq,
57  ExpensiveOperationController* controller);
58 
61  const ScheduleExpensiveOperationRequest& req, Function* cb) override;
62  void HandleClientResult(
63  const ScheduleExpensiveOperationRequest& req) override;
64  void HandleOperationFailed() override;
65 
66  void InitResponder(grpc::CentralControllerRpcService::AsyncService* service,
67  ::grpc::ServerContext* ctx, ReaderWriterT* responder,
68  ::grpc::ServerCompletionQueue* cq,
69  void* callback) override;
70 
71  private:
74  friend class ExpensiveOperationRpcHandlerTest;
75 
76 
77 };
78 
79 }
80 
81 #endif
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
Definition: function.h:47
Definition: expensive_operation_rpc_handler.h:47
Definition: request_result_rpc_handler.h:46