Handler for a pool. Works similary to a file handler. More...
#include <pooldriver.h>
Public Member Functions | |
virtual | ~PoolHandler () |
Destructor. | |
virtual std::string | getPoolType (void) |
Get the pool type of this pool. | |
virtual std::string | getPoolName (void) |
Get the pool name of this pool. | |
virtual uint64_t | getTotalSpace (void) |
Get the total space of this pool. | |
virtual uint64_t | getFreeSpace (void) |
Get the free space of this pool. | |
virtual bool | poolIsAvailable (bool write=true) |
Check if the pool is actually available. | |
virtual bool | replicaIsAvailable (const Replica &replica) |
Check if a replica is available. | |
virtual Location | whereToRead (const Replica &replica) |
Get the actual location of the file replica. This is pool-specific. | |
virtual void | removeReplica (const Replica &replica) |
Remove a replica from the pool. | |
virtual Location | whereToWrite (const std::string &path) |
Get where to put a file. | |
virtual void | cancelWrite (const Location &loc) |
Cancel a write. |
Handler for a pool. Works similary to a file handler.
virtual dmlite::PoolHandler::~PoolHandler | ( | ) | [virtual] |
Destructor.
virtual void dmlite::PoolHandler::cancelWrite | ( | const Location & | loc | ) | [virtual] |
Cancel a write.
virtual uint64_t dmlite::PoolHandler::getFreeSpace | ( | void | ) | [virtual] |
Get the free space of this pool.
virtual std::string dmlite::PoolHandler::getPoolName | ( | void | ) | [virtual] |
Get the pool name of this pool.
virtual std::string dmlite::PoolHandler::getPoolType | ( | void | ) | [virtual] |
Get the pool type of this pool.
virtual uint64_t dmlite::PoolHandler::getTotalSpace | ( | void | ) | [virtual] |
Get the total space of this pool.
virtual bool dmlite::PoolHandler::poolIsAvailable | ( | bool | write = true |
) | [virtual] |
Check if the pool is actually available.
virtual void dmlite::PoolHandler::removeReplica | ( | const Replica & | replica | ) | [virtual] |
Remove a replica from the pool.
virtual bool dmlite::PoolHandler::replicaIsAvailable | ( | const Replica & | replica | ) | [virtual] |
Check if a replica is available.
Get the actual location of the file replica. This is pool-specific.
virtual Location dmlite::PoolHandler::whereToWrite | ( | const std::string & | path | ) | [virtual] |
Get where to put a file.