]>
Commit | Line | Data |
---|---|---|
1 | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- | |
2 | // vim: ts=8 sw=2 smarttab ft=cpp | |
3 | ||
4 | #pragma once | |
5 | ||
6 | #include <memory> | |
7 | ||
8 | #include <boost/asio/io_context.hpp> | |
9 | ||
10 | #include "rgw_frontend.h" | |
11 | #define REQUEST_TIMEOUT 65000 | |
12 | ||
13 | class RGWAsioFrontend : public RGWFrontend { | |
14 | class Impl; | |
15 | std::unique_ptr<Impl> impl; | |
16 | public: | |
17 | RGWAsioFrontend(RGWProcessEnv& env, RGWFrontendConfig* conf, | |
18 | rgw::dmclock::SchedulerCtx& sched_ctx, | |
19 | boost::asio::io_context& io_context); | |
20 | ~RGWAsioFrontend() override; | |
21 | ||
22 | int init() override; | |
23 | int run() override; | |
24 | void stop() override; | |
25 | void join() override; | |
26 | ||
27 | void pause_for_new_config() override; | |
28 | void unpause_with_new_config() override; | |
29 | }; |