X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fmon%2FMonmapMonitor.h;fp=src%2Fceph%2Fsrc%2Fmon%2FMonmapMonitor.h;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=99a2d913060f5f7df6c069d45f0a39effcbc0bff;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/mon/MonmapMonitor.h b/src/ceph/src/mon/MonmapMonitor.h deleted file mode 100644 index 99a2d91..0000000 --- a/src/ceph/src/mon/MonmapMonitor.h +++ /dev/null @@ -1,93 +0,0 @@ -// -*- 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) 2009 Sage Weil - * - * 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. - * - */ - -/* - * The Monmap Monitor is used to track the monitors in the cluster. - */ - -#ifndef CEPH_MONMAPMONITOR_H -#define CEPH_MONMAPMONITOR_H - -#include -#include - -using namespace std; - -#include "include/types.h" -#include "msg/Messenger.h" - -#include "PaxosService.h" -#include "MonMap.h" -#include "MonitorDBStore.h" - -class MMonGetMap; -class MMonMap; -class MMonCommand; -class MMonJoin; - -class MonmapMonitor : public PaxosService { - public: - MonmapMonitor(Monitor *mn, Paxos *p, const string& service_name) - : PaxosService(mn, p, service_name) - { - } - MonMap pending_map; //the pending map awaiting passage - - void create_initial() override; - - void update_from_paxos(bool *need_bootstrap) override; - - void create_pending() override; - - void encode_pending(MonitorDBStore::TransactionRef t) override; - // we always encode the full map; we have no use for full versions - void encode_full(MonitorDBStore::TransactionRef t) override { } - - void on_active() override; - void apply_mon_features(const mon_feature_t& features); - - void dump_info(Formatter *f); - - bool preprocess_query(MonOpRequestRef op) override; - bool prepare_update(MonOpRequestRef op) override; - - bool preprocess_join(MonOpRequestRef op); - bool prepare_join(MonOpRequestRef op); - - bool preprocess_command(MonOpRequestRef op); - bool prepare_command(MonOpRequestRef op); - - void get_health(list >& summary, - list > *detail, - CephContext *cct) const override; - - int get_monmap(bufferlist &bl); - - /* - * Since monitors are pretty - * important, this implementation will just write 0.0. - */ - bool should_propose(double& delay) override; - - void check_sub(Subscription *sub); - -private: - void check_subs(); - -private: - bufferlist monmap_bl; -}; - - -#endif