1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 * Ceph - scalable distributed file system
6 * Copyright (C) 2013 Inktank, Inc
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.
14 #ifndef CEPH_MON_HEALTH_SERVICE_H
15 #define CEPH_MON_HEALTH_SERVICE_H
17 #include "mon/Monitor.h"
18 #include "mon/QuorumService.h"
20 #include "messages/MMonHealth.h"
22 #include "common/config.h"
24 struct HealthService : public QuorumService
27 SERVICE_HEALTH_DATA = 0x01
30 HealthService(Monitor *m) : QuorumService(m) { }
31 ~HealthService() override { }
33 bool service_dispatch(MonOpRequestRef op) override {
34 return service_dispatch_op(op);
37 virtual bool service_dispatch_op(MonOpRequestRef op) = 0;
40 #endif // CEPH_MON_HEALTH_SERVICE_H