#include <DummyPool.h>
|
| DummyPoolManager (PoolManager *decorated) |
|
virtual | ~DummyPoolManager () |
|
virtual void | setStackInstance (StackInstance *) |
|
virtual void | setSecurityContext (const SecurityContext *) |
| Set the security context. More...
|
|
virtual std::vector< Pool > | getPools (PoolAvailability availability) |
|
virtual Pool | getPool (const std::string &poolname) |
| Get a specific pool. More...
|
|
virtual void | newPool (const Pool &pool) |
| Create a new pool. More...
|
|
virtual void | updatePool (const Pool &pool) |
| Update pool metadata. More...
|
|
virtual void | deletePool (const Pool &pool) |
| Remove a pool. More...
|
|
virtual Location | whereToRead (ino_t inode) |
|
virtual Location | whereToRead (const std::string &path) |
|
virtual Location | whereToWrite (const std::string &path) |
|
virtual DmStatus | fileCopyPush (const std::string &localsrcpath, const std::string &remotedesturl, int cksumcheck, char *cksumtype, dmlite_xferinfo *progressdata) |
|
virtual DmStatus | fileCopyPull (const std::string &localdestpath, const std::string &remotesrcurl, int cksumcheck, char *cksumtype, dmlite_xferinfo *progressdata) |
|
virtual | ~PoolManager () |
| Destructor. More...
|
|
virtual Location | chooseServer (const std::string &path) |
|
virtual void | cancelWrite (const Location &loc) |
|
virtual void | getDirSpaces (const std::string &path, int64_t &totalfree, int64_t &used) |
|
virtual | ~BaseInterface () |
| Virtual destructor. More...
|
|
virtual std::string | getImplId (void) const =0 throw () |
| String ID of the implementation. More...
|
|
◆ DummyPoolManager()
dmlite::DummyPoolManager::DummyPoolManager |
( |
PoolManager * |
decorated | ) |
|
◆ ~DummyPoolManager()
virtual dmlite::DummyPoolManager::~DummyPoolManager |
( |
| ) |
|
|
virtual |
◆ deletePool()
virtual void dmlite::DummyPoolManager::deletePool |
( |
const Pool & |
pool | ) |
|
|
virtual |
◆ fileCopyPull()
virtual DmStatus dmlite::DummyPoolManager::fileCopyPull |
( |
const std::string & |
localdestpath, |
|
|
const std::string & |
remotesrcurl, |
|
|
int |
cksumcheck, |
|
|
char * |
cksumtype, |
|
|
dmlite_xferinfo * |
progressdata |
|
) |
| |
|
virtual |
Fetch a file from a given URL
- Parameters
-
localdestpath | The logical name of the file to create |
remotesrcurl | The URL to read the file from |
- Returns
- 0 on success, error code otherwise. EAGAIN means performance marker
Reimplemented from dmlite::PoolManager.
◆ fileCopyPush()
virtual DmStatus dmlite::DummyPoolManager::fileCopyPush |
( |
const std::string & |
localsrcpath, |
|
|
const std::string & |
remotedesturl, |
|
|
int |
cksumcheck, |
|
|
char * |
cksumtype, |
|
|
dmlite_xferinfo * |
progressdata |
|
) |
| |
|
virtual |
Write a logical file towards a given URL
- Parameters
-
localsrcpath | The path of the file |
remotedesturl | The URL to write to |
- Returns
- 0 on success, error code otherwise. EAGAIN means performance marker
Reimplemented from dmlite::PoolManager.
◆ getPool()
virtual Pool dmlite::DummyPoolManager::getPool |
( |
const std::string & |
poolname | ) |
|
|
virtual |
◆ getPools()
Get the list of pools.
- Parameters
-
availability | Filter by availability. |
Reimplemented from dmlite::PoolManager.
◆ newPool()
virtual void dmlite::DummyPoolManager::newPool |
( |
const Pool & |
pool | ) |
|
|
virtual |
◆ setSecurityContext()
virtual void dmlite::DummyPoolManager::setSecurityContext |
( |
const SecurityContext * |
ctx | ) |
|
|
virtual |
◆ setStackInstance()
virtual void dmlite::DummyPoolManager::setStackInstance |
( |
StackInstance * |
si | ) |
|
|
virtual |
Set the StackInstance. Some plugins may need to access other stacks (i.e. the pool may need the catalog) However, at construction time not all the stacks have been populated, so this will be called once all are instantiated.
Reimplemented from dmlite::BaseInterface.
◆ updatePool()
virtual void dmlite::DummyPoolManager::updatePool |
( |
const Pool & |
pool | ) |
|
|
virtual |
◆ whereToRead() [1/2]
virtual Location dmlite::DummyPoolManager::whereToRead |
( |
ino_t |
inode | ) |
|
|
virtual |
◆ whereToRead() [2/2]
virtual Location dmlite::DummyPoolManager::whereToRead |
( |
const std::string & |
path | ) |
|
|
virtual |
◆ whereToWrite()
virtual Location dmlite::DummyPoolManager::whereToWrite |
( |
const std::string & |
path | ) |
|
|
virtual |
Start the PUT of a file.
- Parameters
-
path | The path of the file to create. |
- Returns
- The physical location where to write.
Reimplemented from dmlite::PoolManager.
◆ decorated_
The documentation for this class was generated from the following file: