Interface for pool types. More...
#include <poolmanager.h>
Inherits dmlite::BaseInterface.
Inherited by dmlite::DummyPoolManager.

Public Types | |
| enum | PoolAvailability { kAny, kNone, kForRead, kForWrite, kForBoth } |
Public Member Functions | |
| virtual | ~PoolManager () |
| Destructor. | |
| virtual std::vector< Pool > | getPools (PoolAvailability availability=kAny)=0 throw (DmException) |
| virtual Pool | getPool (const std::string &poolname)=0 throw (DmException) |
| Get a specific pool. | |
| virtual void | newPool (const Pool &pool)=0 throw (DmException) |
| Create a new pool. | |
| virtual void | updatePool (const Pool &pool)=0 throw (DmException) |
| Update pool metadata. | |
| virtual void | deletePool (const Pool &pool)=0 throw (DmException) |
| Remove a pool. | |
| virtual Location | whereToRead (const std::string &path)=0 throw (DmException) |
| virtual Location | whereToRead (ino_t inode)=0 throw (DmException) |
| virtual Location | whereToWrite (const std::string &path)=0 throw (DmException) |
Interface for pool types.
| PoolManager::~PoolManager | ( | ) | [virtual] |
Destructor.
| virtual void dmlite::PoolManager::deletePool | ( | const Pool & | pool | ) | throw (DmException) [pure virtual] |
Remove a pool.
| virtual Pool dmlite::PoolManager::getPool | ( | const std::string & | poolname | ) | throw (DmException) [pure virtual] |
Get a specific pool.
Implemented in dmlite::DummyPoolManager.
| virtual std::vector<Pool> dmlite::PoolManager::getPools | ( | PoolAvailability | availability = kAny |
) | throw (DmException) [pure virtual] |
Get the list of pools.
| availability | Filter by availability. |
Implemented in dmlite::DummyPoolManager.
| virtual void dmlite::PoolManager::newPool | ( | const Pool & | pool | ) | throw (DmException) [pure virtual] |
Create a new pool.
| virtual void dmlite::PoolManager::updatePool | ( | const Pool & | pool | ) | throw (DmException) [pure virtual] |
Update pool metadata.
| virtual Location dmlite::PoolManager::whereToRead | ( | ino_t | inode | ) | throw (DmException) [pure virtual] |
Get a location for an inode
| inode | The file inode. |
| virtual Location dmlite::PoolManager::whereToRead | ( | const std::string & | path | ) | throw (DmException) [pure virtual] |
Get a location for a logical name.
| path | The path to get. |
Implemented in dmlite::DummyPoolManager.
| virtual Location dmlite::PoolManager::whereToWrite | ( | const std::string & | path | ) | throw (DmException) [pure virtual] |
Start the PUT of a file.
| path | The path of the file to create. |
Implemented in dmlite::DummyPoolManager.
1.6.1