1 #ifndef OBJECTSTORE_HPP 2 #define OBJECTSTORE_HPP 15 static std::shared_ptr<IObjectStoreService>
singleton;
41 virtual std::tuple<version_t,uint64_t>
bio_put(
const Object&
object,
const bool &force_client =
false) = 0;
46 virtual std::tuple<version_t,uint64_t>
bio_remove(
const OID& oid,
const bool &force_client =
false) = 0;
69 virtual void leave(
bool group_shutdown =
false) = 0;
77 #endif //OBJECTSTORE_HPP virtual const ObjectWatcher & getObjectWatcher()=0
The Deserialization Interface to be implemented by user applications.
virtual derecho::rpc::QueryResults< std::tuple< version_t, uint64_t > > aio_remove(const OID &oid, const bool &force_client=false)=0
static IObjectStoreService & getObjectStoreService(int argc, char **argv, const ObjectWatcher &ow={})
virtual const bool isReplica()=0
persistent::version_t version_t
virtual derecho::rpc::QueryResults< std::tuple< version_t, uint64_t > > aio_put(const Object &object, const bool &force_client=false)=0
virtual std::tuple< version_t, uint64_t > bio_put(const Object &object, const bool &force_client=false)=0
virtual std::tuple< version_t, uint64_t > bio_remove(const OID &oid, const bool &force_client=false)=0
std::function< void(const OID &, const Object &)> ObjectWatcher
virtual derecho::rpc::QueryResults< const Object > aio_get(const OID &oid, const version_t &ver=INVALID_VERSION, const bool &force_client=false)=0
static std::shared_ptr< IObjectStoreService > singleton
Data structure that (indirectly) holds a set of futures for a single RPC function call; there is one ...
virtual Object bio_get(const OID &oid, const version_t &ver=INVALID_VERSION, const bool &force_client=false)=0
virtual void leave(bool group_shutdown=false)=0