dmlite
0.4
|
#include <DummyPool.h>
Public Member Functions | |
DummyPoolManager (PoolManager *decorated) throw (DmException) | |
virtual | ~DummyPoolManager () |
virtual void | setStackInstance (StackInstance *) throw (DmException) |
virtual void | setSecurityContext (const SecurityContext *) throw (DmException) |
Set the security context. | |
virtual std::vector< Pool > | getPools (PoolAvailability availability) throw (DmException) |
virtual Pool | getPool (const std::string &poolname) throw (DmException) |
Get a specific pool. | |
virtual Location | whereToRead (const std::string &path) throw (DmException) |
virtual Location | whereToWrite (const std::string &path) throw (DmException) |
![]() | |
virtual | ~PoolManager () |
Destructor. | |
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 (ino_t inode)=0 throw (DmException) |
![]() | |
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 } |
![]() | |
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) |
DummyPoolManager::DummyPoolManager | ( | PoolManager * | decorated | ) | throw (DmException) |
|
virtual |
|
virtual |
Get a specific pool.
Implements dmlite::PoolManager.
|
virtual |
Get the list of pools.
availability | Filter by availability. |
Implements dmlite::PoolManager.
|
virtual |
Set the security context.
Implements 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.
Implements dmlite::BaseInterface.
|
virtual |
|
virtual |
Start the PUT of a file.
path | The path of the file to create. |
Implements dmlite::PoolManager.
|
protected |