Go to the documentation of this file.
4 #ifndef DMLITE_CPP_POOLMANAGER_H
5 #define DMLITE_CPP_POOLMANAGER_H
7 #include "dmlite/common/config.h"
90 virtual void getDirSpaces(
const std::string& path, int64_t &totalfree, int64_t &used) ;
127 #endif // DMLITE_CPP_POOLMANAGER_H
std::string type
Definition: poolmanager.h:24
Exceptions used by the API.
@ kForRead
Definition: poolmanager.h:42
virtual PoolManager * createPoolManager(PluginManager *pm)
Instantiate a implementation of Pool.
Base class for factories.
Definition: base.h:48
virtual void newPool(const Pool &pool)
Create a new pool.
Extensible types (hold metadata).
PoolAvailability
Definition: poolmanager.h:42
virtual ~PoolManagerFactory()
Virtual destructor.
virtual Location whereToRead(ino_t inode)
Helpful typedef for KeyValue containers.
Definition: extensible.h:20
virtual DmStatus fileCopyPull(const std::string &localdestpath, const std::string &remotesrcurl, int cksumcheck, char *cksumtype, dmlite_xferinfo *progressdata)
Progress markers for file copies. FTS jargon calls these "FTS performance markers".
Definition: pool.h:73
bool operator==(const Pool &) const
int64_t xferred
Definition: poolmanager.h:35
virtual std::vector< Pool > getPools(PoolAvailability availability=kAny)
static PoolManager * createPoolManager(PoolManagerFactory *factory, PluginManager *pm)
Children of PoolManagerFactory are allowed to instantiate too (decorator)
Plug-ins must implement a concrete factory to be instantiated.
Definition: poolmanager.h:108
bool operator<(const Pool &) const
C wrapper for DMLite Pool API.
virtual DmStatus fileCopyPush(const std::string &localsrcpath, const std::string &remotedesturl, int cksumcheck, char *cksumtype, dmlite_xferinfo *progressdata)
Represent the complete location of a file.
Definition: pooldriver.h:49
virtual void getDirSpaces(const std::string &path, int64_t &totalfree, int64_t &used)
CatalogInterface can only be instantiated through this class.
Definition: dmlite.h:42
virtual ~PoolManager()
Destructor.
std::string name
Definition: poolmanager.h:23
virtual void updatePool(const Pool &pool)
Update pool metadata.
@ kAny
Definition: poolmanager.h:42
@ kNone
Definition: poolmanager.h:42
virtual void deletePool(const Pool &pool)
Remove a pool.
virtual Location whereToWrite(const std::string &path)
Base class for interfaces.
Definition: base.h:18
Interface for pool types.
Definition: poolmanager.h:40
struct dmlite::xferprogmarker xferprogmarker
Progress markers for file copies. FTS jargon calls these "FTS performance markers" beware,...
Namespace for the dmlite C++ API.
Definition: authn.h:15
virtual Pool getPool(const std::string &poolname)
Get a specific pool.
virtual void cancelWrite(const Location &loc)
@ kForWrite
Definition: poolmanager.h:42
Internal interface for handling pool metadata.
Definition: poolmanager.h:22
virtual Location chooseServer(const std::string &path)
@ kForBoth
Definition: poolmanager.h:42
bool operator>(const Pool &) const
virtual Location whereToRead(const std::string &path)
bool operator!=(const Pool &) const
Progress markers for file copies. FTS jargon calls these "FTS performance markers" beware,...
Definition: poolmanager.h:34