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