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) 2014 CohortFS, LLC
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.
15 #ifndef DISPATCH_STRATEGY_H
16 #define DISPATCH_STRATEGY_H
18 #include "msg/Message.h"
22 class 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() {}
37 #endif /* DISPATCH_STRATEGY_H */