5 : m_storageClass (storageClass),
6 m_baseStorage (baseStorage),
10 m_statsWriteV (
StorageAccount::counter (m_storageClass,
"writev")),
11 m_statsPosition (
StorageAccount::counter (m_storageClass,
"position")),
12 m_statsPrefetch (
StorageAccount::counter (m_storageClass,
"prefetch"))
139 total += what[
i].
size();
virtual IOSize writev(const IOBuffer *from, IOSize n)
virtual IOSize readv(IOPosBuffer *into, IOSize buffers)
StorageAccountProxy(const std::string &storageClass, Storage *baseStorage)
virtual IOSize read(void *into, IOSize n, IOOffset pos)
virtual bool prefetch(const IOPosBuffer *what, IOSize n)
StorageAccount::Counter & m_statsWrite
~StorageAccountProxy(void)
StorageAccount::Counter & m_statsPosition
virtual void resize(IOOffset size)=0
std::string m_storageClass
StorageAccount::Counter & m_statsRead
virtual IOSize write(const void *from, IOSize n, IOOffset pos)
virtual IOSize readv(IOBuffer *into, IOSize n)
StorageAccount::Counter & m_statsWriteV
StorageAccount::Counter & m_statsPrefetch
virtual IOOffset position(void) const
virtual IOSize write(const void *from, IOSize n)
unsigned int offset(bool)
virtual void resize(IOOffset size)
void tick(double amount=0.) const
virtual bool prefetch(const IOPosBuffer *what, IOSize n)
static std::string from(" from ")
static Counter & counter(const std::string &storageClass, const std::string &operation)
virtual IOOffset size(void) const
StorageAccount::Counter & m_statsReadV
tuple size
Write out results.
virtual IOSize writev(const IOPosBuffer *from, IOSize buffers)