initial code repo
[stor4nfv.git] / src / ceph / src / test / bench / backend.h
diff --git a/src/ceph/src/test/bench/backend.h b/src/ceph/src/test/bench/backend.h
new file mode 100644 (file)
index 0000000..740e098
--- /dev/null
@@ -0,0 +1,26 @@
+// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
+
+#ifndef BACKENDH
+#define BACKENDH
+
+#include "include/Context.h"
+
+class Backend {
+public:
+  virtual void write(
+    const string &oid,
+    uint64_t offset,
+    const bufferlist &bl,
+    Context *on_applied,
+    Context *on_commit) = 0;
+
+  virtual void read(
+    const string &oid,
+    uint64_t offset,
+    uint64_t length,
+    bufferlist *bl,
+    Context *on_complete) = 0;
+  virtual ~Backend() {}
+};
+
+#endif