dmlite 0.6
|
#include <DummyPool.h>
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) |
![]() | |
virtual | ~PoolManager () |
Destructor. | |
virtual std::vector< Pool > | getPools (PoolAvailability availability=kAny) |
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 (const std::string &path) |
virtual Location | whereToRead (ino_t inode) |
virtual Location | whereToWrite (const std::string &path) |
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 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 | ~BaseInterface () |
Virtual destructor. | |
virtual std::string | getImplId (void) const =0 throw () |
String ID of the implementation. | |
Protected Attributes | |
PoolManager * | decorated_ |
Additional Inherited Members | |
![]() | |
enum | PoolAvailability { kAny , kNone , kForRead , kForWrite , kForBoth } |
virtual void | setStackInstance (StackInstance *si) |
virtual void | setSecurityContext (const SecurityContext *ctx) |
Set the security context. | |
![]() | |
static void | setStackInstance (BaseInterface *i, StackInstance *si) |
These method allows plugins to call other plugins setStackInstance and setSecurityContext. | |
static void | setSecurityContext (BaseInterface *i, const SecurityContext *ctx) |
dmlite::DummyPoolManager::DummyPoolManager | ( | PoolManager * | decorated | ) |
|
virtual |
|
virtual |
Remove a pool.
Reimplemented from dmlite::PoolManager.
|
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 |
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 |
Get a specific pool.
Reimplemented from dmlite::PoolManager.
|
virtual |
Get the list of pools.
availability | Filter by availability. |
Reimplemented from dmlite::PoolManager.
|
virtual |
Create a new pool.
Reimplemented from dmlite::PoolManager.
|
virtual |
Set the security context.
Reimplemented from dmlite::BaseInterface.
|
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 |
Update pool metadata.
Reimplemented from dmlite::PoolManager.
|
virtual |
Get a location for a logical name.
path | The path to get. |
Reimplemented from dmlite::PoolManager.
|
virtual |
|
virtual |
Start the PUT of a file.
path | The path of the file to create. |
Reimplemented from dmlite::PoolManager.
|
protected |