]> git.proxmox.com Git - ceph.git/blob - ceph/src/test/bench/backend.h
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / test / bench / backend.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2
3 #ifndef BACKENDH
4 #define BACKENDH
5
6 #include "include/Context.h"
7
8 class Backend {
9 public:
10 virtual void write(
11 const string &oid,
12 uint64_t offset,
13 const bufferlist &bl,
14 Context *on_applied,
15 Context *on_commit) = 0;
16
17 virtual void read(
18 const string &oid,
19 uint64_t offset,
20 uint64_t length,
21 bufferlist *bl,
22 Context *on_complete) = 0;
23 virtual ~Backend() {}
24 };
25
26 #endif