Interface for a pool driver. More...
#include <pooldriver.h>
Inherits dmlite::BaseInterface.
Public Member Functions | |
virtual | ~PoolDriver () |
Destructor. | |
virtual PoolHandler * | createPoolHandler (const std::string &poolName)=0 throw (DmException) |
Create a handler. | |
virtual void | toBeCreated (const Pool &pool)=0 throw (DmException) |
virtual void | justCreated (const Pool &pool)=0 throw (DmException) |
Called just after a pool is added to the database. | |
virtual void | update (const Pool &pool)=0 throw (DmException) |
Called when updating a pool. | |
virtual void | toBeDeleted (const Pool &pool)=0 throw (DmException) |
Interface for a pool driver.
PoolDriver::~PoolDriver | ( | ) | [virtual] |
Destructor.
virtual PoolHandler* dmlite::PoolDriver::createPoolHandler | ( | const std::string & | poolName | ) | throw (DmException) [pure virtual] |
Create a handler.
virtual void dmlite::PoolDriver::justCreated | ( | const Pool & | pool | ) | throw (DmException) [pure virtual] |
Called just after a pool is added to the database.
virtual void dmlite::PoolDriver::toBeCreated | ( | const Pool & | pool | ) | throw (DmException) [pure virtual] |
Called just before adding the pool to the database. To be used by a plugin, in case it needs to do some previous preparations. (i.e. legacy filesystem will actually create the pool here)
virtual void dmlite::PoolDriver::toBeDeleted | ( | const Pool & | pool | ) | throw (DmException) [pure virtual] |
Called just before a pool of this type is removed.
virtual void dmlite::PoolDriver::update | ( | const Pool & | pool | ) | throw (DmException) [pure virtual] |
Called when updating a pool.