X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fmon%2FHealthService.h;fp=src%2Fceph%2Fsrc%2Fmon%2FHealthService.h;h=29ff57dcb46b41ed861aeb9953fda30088acde98;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/mon/HealthService.h b/src/ceph/src/mon/HealthService.h new file mode 100644 index 0000000..29ff57d --- /dev/null +++ b/src/ceph/src/mon/HealthService.h @@ -0,0 +1,40 @@ +// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- +// vim: ts=8 sw=2 smarttab +/* + * Ceph - scalable distributed file system + * + * Copyright (C) 2013 Inktank, Inc + * + * This is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software + * Foundation. See file COPYING. + * + */ +#ifndef CEPH_MON_HEALTH_SERVICE_H +#define CEPH_MON_HEALTH_SERVICE_H + +#include "mon/Monitor.h" +#include "mon/QuorumService.h" + +#include "messages/MMonHealth.h" + +#include "common/config.h" + +struct HealthService : public QuorumService +{ + enum { + SERVICE_HEALTH_DATA = 0x01 + }; + + HealthService(Monitor *m) : QuorumService(m) { } + ~HealthService() override { } + + bool service_dispatch(MonOpRequestRef op) override { + return service_dispatch_op(op); + } + + virtual bool service_dispatch_op(MonOpRequestRef op) = 0; +}; + +#endif // CEPH_MON_HEALTH_SERVICE_H