1 #ifndef PAGESPEED_CONTROLLER_CENTRAL_CONTROLLER_RPC_SERVER_H_
2 #define PAGESPEED_CONTROLLER_CENTRAL_CONTROLLER_RPC_SERVER_H_
22 #include "base/macros.h"
23 #include "pagespeed/controller/controller.grpc.pb.h"
31 namespace net_instaweb {
55 static void MainLoop(::grpc::CompletionQueue* queue);
59 std::unique_ptr<::grpc::Server> server_;
60 std::unique_ptr<::grpc::ServerCompletionQueue> queue_;
61 grpc::CentralControllerRpcService::AsyncService service_;
63 std::unique_ptr<ExpensiveOperationController> expensive_operation_controller_;
64 std::unique_ptr<ScheduleRewriteController> rewrite_controller_;
int Setup() override
ControllerProcess implementation.
Definition: expensive_operation_controller.h:28
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
static void MainLoop(::grpc::CompletionQueue *queue)
Pulled out into a static function so it can also be used in tests.
Definition: controller_process.h:39
Definition: message_handler.h:39
CentralControllerRpcServer(const GoogleString &listen_address, ExpensiveOperationController *expensive_operation_controller, ScheduleRewriteController *rewrite_controller, MessageHandler *handler)
Definition: schedule_rewrite_controller.h:30
Definition: central_controller_rpc_server.h:36