]> git.proxmox.com Git - ceph.git/blob - ceph/src/mon/HealthService.h
update sources to v12.1.0
[ceph.git] / ceph / src / mon / HealthService.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3 /*
4 * Ceph - scalable distributed file system
5 *
6 * Copyright (C) 2013 Inktank, Inc
7 *
8 * This is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License version 2.1, as published by the Free Software
11 * Foundation. See file COPYING.
12 *
13 */
14 #ifndef CEPH_MON_HEALTH_SERVICE_H
15 #define CEPH_MON_HEALTH_SERVICE_H
16
17 #include "mon/Monitor.h"
18 #include "mon/QuorumService.h"
19
20 #include "messages/MMonHealth.h"
21
22 #include "common/config.h"
23
24 struct HealthService : public QuorumService
25 {
26 enum {
27 SERVICE_HEALTH_DATA = 0x01
28 };
29
30 HealthService(Monitor *m) : QuorumService(m) { }
31 ~HealthService() override { }
32
33 bool service_dispatch(MonOpRequestRef op) override {
34 return service_dispatch_op(op);
35 }
36
37 virtual bool service_dispatch_op(MonOpRequestRef op) = 0;
38 };
39
40 #endif // CEPH_MON_HEALTH_SERVICE_H