aether::blob_store< Backend > Class Template Reference

blob_store is used to fetch a blob object asynchronously from a server. More...

#include <blob_store.hh>

Static Public Member Functions

static std::future< blobget_blob (backend_type store, const std::string &blob_name)
 gets a blob More...
 

Detailed Description

template<typename Backend>
class aether::blob_store< Backend >

blob_store is used to fetch a blob object asynchronously from a server.

The data is retrieved by only one process on each machine and the data in the binary blob is memory shared between all the workers of the same machine. Thus avoiding many workers fetching the same data.

The connection to the server is managed by a backend object that implements a fetch method

Member Function Documentation

template<typename Backend >
std::future< blob > aether::blob_store< Backend >::get_blob ( backend_type  store,
const std::string &  blob_name 
)
static

gets a blob

Parameters
[in]storebackend type object that implements a fetch method to retrieve blobs from a server
[in]blob_namename of the blob that want to be accessed
Returns
:future that when finished contains a blob object. The blob object may be invalid if it could not be open