dmlite
0.4
|
Interface for pool types. More...
#include <poolmanager.h>
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) |
![]() | |
virtual | ~BaseInterface () |
Virtual destructor. | |
virtual std::string | getImplId (void) const =0 throw () |
String ID of the implementation. |
Additional Inherited Members | |
![]() | |
virtual void | setStackInstance (StackInstance *si)=0 throw (DmException) |
virtual void | setSecurityContext (const SecurityContext *ctx)=0 throw (DmException) |
Set the security context. | |
![]() | |
static void | setStackInstance (BaseInterface *i, StackInstance *si) throw (DmException) |
These method allows plugins to call other plugins setStackInstance and setSecurityContext. | |
static void | setSecurityContext (BaseInterface *i, const SecurityContext *ctx) throw (DmException) |
Interface for pool types.
|
virtual |
Destructor.
|
pure virtual |
Remove a pool.
|
pure virtual |
Get a specific pool.
Implemented in dmlite::DummyPoolManager.
|
pure virtual |
Get the list of pools.
availability | Filter by availability. |
Implemented in dmlite::DummyPoolManager.
|
pure virtual |
Create a new pool.
|
pure virtual |
Update pool metadata.
|
pure virtual |
Get a location for a logical name.
path | The path to get. |
Implemented in dmlite::DummyPoolManager.
|
pure virtual |
Get a location for an inode
inode | The file inode. |
|
pure virtual |
Start the PUT of a file.
path | The path of the file to create. |
Implemented in dmlite::DummyPoolManager.