|
dmlite
0.6
|
Interface for pool types. More...
#include <poolmanager.h>


Public Types | |
| enum | PoolAvailability { kAny, kNone, kForRead, kForWrite, kForBoth } |
Public Member Functions | |
| virtual | ~PoolManager () |
| Destructor. More... | |
| virtual std::vector< Pool > | getPools (PoolAvailability availability=kAny) throw (DmException) |
| virtual Pool | getPool (const std::string &poolname) throw (DmException) |
| Get a specific pool. More... | |
| virtual void | newPool (const Pool &pool) throw (DmException) |
| Create a new pool. More... | |
| virtual void | updatePool (const Pool &pool) throw (DmException) |
| Update pool metadata. More... | |
| virtual void | deletePool (const Pool &pool) throw (DmException) |
| Remove a pool. More... | |
| virtual Location | whereToRead (const std::string &path) throw (DmException) |
| virtual Location | whereToRead (ino_t inode) throw (DmException) |
| virtual Location | whereToWrite (const std::string &path) throw (DmException) |
| virtual void | cancelWrite (const Location &loc) throw (DmException) |
| virtual void | getDirSpaces (const std::string &path, int64_t &totalfree, int64_t &used) throw (DmException) |
Public Member Functions inherited from dmlite::BaseInterface | |
| virtual | ~BaseInterface () |
| Virtual destructor. More... | |
| virtual std::string | getImplId (void) const =0 throw () |
| String ID of the implementation. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from dmlite::BaseInterface | |
| virtual void | setStackInstance (StackInstance *si) throw (DmException) |
| virtual void | setSecurityContext (const SecurityContext *ctx) throw (DmException) |
| Set the security context. More... | |
Static Protected Member Functions inherited from dmlite::BaseInterface | |
| static void | setStackInstance (BaseInterface *i, StackInstance *si) throw (DmException) |
| These method allows plugins to call other plugins setStackInstance and setSecurityContext. More... | |
| static void | setSecurityContext (BaseInterface *i, const SecurityContext *ctx) throw (DmException) |
Interface for pool types.
|
virtual |
Destructor.
|
virtual | ||||||||||||||
Cancel a write.
| path | The logical file name. |
| loc | As returned by whereToWrite |
|
virtual | ||||||||||||||
Remove a pool.
Reimplemented in dmlite::DummyPoolManager.
|
virtual | ||||||||||||||||||||||||
Get the estimation of the free/used space for writing into a directory
| path | The path of the directory to query |
| totalfree | The total number of free bytes (may not be contiguous) |
| used | The total number of used bytes |
|
virtual | ||||||||||||||
Get a specific pool.
Reimplemented in dmlite::DummyPoolManager.
|
virtual | ||||||||||||||
Get the list of pools.
| availability | Filter by availability. |
Reimplemented in dmlite::DummyPoolManager.
|
virtual | ||||||||||||||
Create a new pool.
Reimplemented in dmlite::DummyPoolManager.
|
virtual | ||||||||||||||
Update pool metadata.
Reimplemented in dmlite::DummyPoolManager.
|
virtual | ||||||||||||||
Get a location for a logical name.
| path | The path to get. |
Reimplemented in dmlite::DummyPoolManager.
|
virtual | ||||||||||||||
Get a location for an inode
| inode | The file inode. |
Reimplemented in dmlite::DummyPoolManager.
|
virtual | ||||||||||||||
Start the PUT of a file.
| path | The path of the file to create. |
Reimplemented in dmlite::DummyPoolManager.
1.8.5