Apache Mesos
Classes | Public Member Functions | List of all members
mesos::internal::slave::FetcherProcess::Cache Class Reference

#include <fetcher_process.hpp>

Classes

class  Entry
 

Public Member Functions

 Cache (Bytes _space)
 
virtual ~Cache ()
 
void claimSpace (const Bytes &bytes)
 
void releaseSpace (const Bytes &bytes)
 
Bytes totalSpace () const
 
Bytes usedSpace () const
 
Bytes availableSpace () const
 
std::string nextFilename (const CommandInfo::URI &uri)
 
std::shared_ptr< Entrycreate (const std::string &cacheDirectory, const Option< std::string > &user, const CommandInfo::URI &uri)
 
Option< std::shared_ptr< Entry > > get (const Option< std::string > &user, const std::string &uri)
 
bool contains (const Option< std::string > &user, const std::string &uri) const
 
bool contains (const std::shared_ptr< Cache::Entry > &entry) const
 
virtual Try< Nothingremove (const std::shared_ptr< Entry > &entry)
 
Try< std::list
< std::shared_ptr
< Cache::Entry > > > 
selectVictims (const Bytes &requiredSpace)
 
Try< Nothingreserve (const Bytes &requestedSpace)
 
Try< Nothingadjust (const std::shared_ptr< Cache::Entry > &entry)
 
size_t size () const
 

Constructor & Destructor Documentation

mesos::internal::slave::FetcherProcess::Cache::Cache ( Bytes  _space)
inlineexplicit
virtual mesos::internal::slave::FetcherProcess::Cache::~Cache ( )
inlinevirtual

Member Function Documentation

Try<Nothing> mesos::internal::slave::FetcherProcess::Cache::adjust ( const std::shared_ptr< Cache::Entry > &  entry)
Bytes mesos::internal::slave::FetcherProcess::Cache::availableSpace ( ) const
void mesos::internal::slave::FetcherProcess::Cache::claimSpace ( const Bytes bytes)
bool mesos::internal::slave::FetcherProcess::Cache::contains ( const Option< std::string > &  user,
const std::string &  uri 
) const
bool mesos::internal::slave::FetcherProcess::Cache::contains ( const std::shared_ptr< Cache::Entry > &  entry) const
std::shared_ptr<Entry> mesos::internal::slave::FetcherProcess::Cache::create ( const std::string &  cacheDirectory,
const Option< std::string > &  user,
const CommandInfo::URI &  uri 
)
Option<std::shared_ptr<Entry> > mesos::internal::slave::FetcherProcess::Cache::get ( const Option< std::string > &  user,
const std::string &  uri 
)
std::string mesos::internal::slave::FetcherProcess::Cache::nextFilename ( const CommandInfo::URI &  uri)
void mesos::internal::slave::FetcherProcess::Cache::releaseSpace ( const Bytes bytes)
virtual Try<Nothing> mesos::internal::slave::FetcherProcess::Cache::remove ( const std::shared_ptr< Entry > &  entry)
virtual
Try<Nothing> mesos::internal::slave::FetcherProcess::Cache::reserve ( const Bytes requestedSpace)
Try<std::list<std::shared_ptr<Cache::Entry> > > mesos::internal::slave::FetcherProcess::Cache::selectVictims ( const Bytes requiredSpace)
size_t mesos::internal::slave::FetcherProcess::Cache::size ( ) const
Bytes mesos::internal::slave::FetcherProcess::Cache::totalSpace ( ) const
Bytes mesos::internal::slave::FetcherProcess::Cache::usedSpace ( ) const

The documentation for this class was generated from the following file: