rgw: add skeleton for boost::asio frontend

Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
This commit is contained in:
Casey Bodley 2016-06-17 22:58:05 -04:00 committed by Radoslaw Zarzynski
parent 273e5407a4
commit c5543a4951
3 changed files with 62 additions and 0 deletions

View File

@ -103,6 +103,7 @@ target_link_libraries(rgw_a librados cls_lock_client cls_rgw_client cls_refcount
${OPENLDAP_LIBRARIES} ${CRYPTO_LIBS})
set(radosgw_srcs
rgw_asio_frontend.cc
rgw_fcgi_process.cc
rgw_loadgen_process.cc
rgw_civetweb.cc

View File

@ -0,0 +1,38 @@
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include "rgw_asio_frontend.h"
RGWAsioFrontend::RGWAsioFrontend(const RGWProcessEnv& env)
{
}
RGWAsioFrontend::~RGWAsioFrontend()
{
}
int RGWAsioFrontend::init()
{
return 0;
}
int RGWAsioFrontend::run()
{
return 0;
}
void RGWAsioFrontend::stop()
{
}
void RGWAsioFrontend::join()
{
}
void RGWAsioFrontend::pause_for_new_config()
{
}
void RGWAsioFrontend::unpause_with_new_config(RGWRados *store)
{
}

View File

@ -0,0 +1,23 @@
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#ifndef RGW_ASIO_FRONTEND_H
#define RGW_ASIO_FRONTEND_H
#include "rgw_frontend.h"
class RGWAsioFrontend : public RGWFrontend {
public:
RGWAsioFrontend(const RGWProcessEnv& env);
~RGWAsioFrontend();
int init() override;
int run() override;
void stop() override;
void join() override;
void pause_for_new_config() override;
void unpause_with_new_config(RGWRados *store) override;
};
#endif // RGW_ASIO_FRONTEND_H