]> git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/services/svc_sync_modules.h
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / rgw / services / svc_sync_modules.h
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 "rgw/rgw_service.h"
7 #include "rgw/rgw_sync_module.h"
8
9 class RGWSI_Zone;
10
11 class RGWSyncModulesManager;
12
13 class RGWSI_SyncModules : public RGWServiceInstance
14 {
15 RGWSyncModulesManager *sync_modules_manager{nullptr};
16 RGWSyncModuleInstanceRef sync_module;
17
18 struct Svc {
19 RGWSI_Zone *zone{nullptr};
20 } svc;
21
22 public:
23 RGWSI_SyncModules(CephContext *cct): RGWServiceInstance(cct) {}
24 ~RGWSI_SyncModules();
25
26 RGWSyncModulesManager *get_manager() {
27 return sync_modules_manager;
28 }
29
30 void init(RGWSI_Zone *zone_svc);
31 int do_start(optional_yield) override;
32
33 RGWSyncModuleInstanceRef& get_sync_module() { return sync_module; }
34 };