]> git.proxmox.com Git - ceph.git/blame - ceph/src/msg/DispatchStrategy.h
buildsys: fix parallel builds
[ceph.git] / ceph / src / msg / DispatchStrategy.h
CommitLineData
7c673cae
FG
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) 2014 CohortFS, LLC
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
15#ifndef DISPATCH_STRATEGY_H
16#define DISPATCH_STRATEGY_H
17
18#include "msg/Message.h"
19
20class Messenger;
21
22class DispatchStrategy
23{
24protected:
25 Messenger *msgr;
26public:
27 DispatchStrategy() {}
28 Messenger *get_messenger() { return msgr; }
29 void set_messenger(Messenger *_msgr) { msgr = _msgr; }
30 virtual void ds_dispatch(Message *m) = 0;
31 virtual void shutdown() = 0;
32 virtual void start() = 0;
33 virtual void wait() = 0;
34 virtual ~DispatchStrategy() {}
35};
36
37#endif /* DISPATCH_STRATEGY_H */