#include <DummyPool.h>
Inherits dmlite::PoolManager.
Public Member Functions | |
DummyPoolManager (PoolManager *decorated) | |
virtual | ~DummyPoolManager () |
virtual void | setStackInstance (StackInstance *) |
virtual void | setSecurityContext (const SecurityContext *) |
Set the security context. | |
virtual std::vector< Pool > | getPools (PoolAvailability availability) |
virtual Pool | getPool (const std::string &poolname) |
Get a specific pool. | |
virtual void | newPool (const Pool &pool) |
Create a new pool. | |
virtual void | updatePool (const Pool &pool) |
Update pool metadata. | |
virtual void | deletePool (const Pool &pool) |
Remove a pool. | |
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) |
Protected Attributes | |
PoolManager * | decorated_ |
dmlite::DummyPoolManager::DummyPoolManager | ( | PoolManager * | decorated | ) |
virtual dmlite::DummyPoolManager::~DummyPoolManager | ( | ) | [virtual] |
virtual void dmlite::DummyPoolManager::deletePool | ( | const Pool & | pool | ) | [virtual] |
Remove a pool.
Reimplemented from dmlite::PoolManager.
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
localdestpath | The logical name of the file to create | |
remotesrcurl | The URL to read the file from |
Reimplemented from dmlite::PoolManager.
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
localsrcpath | The path of the file | |
remotedesturl | The URL to write to |
Reimplemented from dmlite::PoolManager.
virtual Pool dmlite::DummyPoolManager::getPool | ( | const std::string & | poolname | ) | [virtual] |
Get a specific pool.
Reimplemented from dmlite::PoolManager.
virtual std::vector<Pool> dmlite::DummyPoolManager::getPools | ( | PoolAvailability | availability | ) | [virtual] |
Get the list of pools.
availability | Filter by availability. |
Reimplemented from dmlite::PoolManager.
virtual void dmlite::DummyPoolManager::newPool | ( | const Pool & | pool | ) | [virtual] |
Create a new pool.
Reimplemented from dmlite::PoolManager.
virtual void dmlite::DummyPoolManager::setSecurityContext | ( | const SecurityContext * | ctx | ) | [virtual] |
Set the security context.
Reimplemented from dmlite::BaseInterface.
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.
virtual void dmlite::DummyPoolManager::updatePool | ( | const Pool & | pool | ) | [virtual] |
Update pool metadata.
Reimplemented from dmlite::PoolManager.
virtual Location dmlite::DummyPoolManager::whereToRead | ( | const std::string & | path | ) | [virtual] |
Get a location for a logical name.
path | The path to get. |
Reimplemented from dmlite::PoolManager.
virtual Location dmlite::DummyPoolManager::whereToRead | ( | ino_t | inode | ) | [virtual] |
Get a location for an inode
inode | The file inode. |
Reimplemented from dmlite::PoolManager.
virtual Location dmlite::DummyPoolManager::whereToWrite | ( | const std::string & | path | ) | [virtual] |
Start the PUT of a file.
path | The path of the file to create. |
Reimplemented from dmlite::PoolManager.
PoolManager* dmlite::DummyPoolManager::decorated_ [protected] |