dmlite  0.4
Public Member Functions
dmlite::PoolHandler Class Reference

Handler for a pool. Works similary to a file handler. More...

#include <pooldriver.h>

List of all members.

Public Member Functions

virtual ~PoolHandler ()
 Destructor.
virtual std::string getPoolType (void)=0 throw (DmException)
 Get the pool type of this pool.
virtual std::string getPoolName (void)=0 throw (DmException)
 Get the pool name of this pool.
virtual uint64_t getTotalSpace (void)=0 throw (DmException)
 Get the total space of this pool.
virtual uint64_t getFreeSpace (void)=0 throw (DmException)
 Get the free space of this pool.
virtual bool poolIsAvailable (bool write=true)=0 throw (DmException)
 Check if the pool is actually available.
virtual bool replicaIsAvailable (const Replica &replica)=0 throw (DmException)
 Check if a replica is available.
virtual Location whereToRead (const Replica &replica)=0 throw (DmException)
 Get the actual location of the file replica. This is pool-specific.
virtual void removeReplica (const Replica &replica)=0 throw (DmException)
 Remove a replica from the pool.
virtual Location whereToWrite (const std::string &path)=0 throw (DmException)
 Get where to put a file.

Detailed Description

Handler for a pool. Works similary to a file handler.


Constructor & Destructor Documentation

PoolHandler::~PoolHandler ( )
virtual

Destructor.


Member Function Documentation

virtual uint64_t dmlite::PoolHandler::getFreeSpace ( void  ) throw (DmException)
pure virtual

Get the free space of this pool.

virtual std::string dmlite::PoolHandler::getPoolName ( void  ) throw (DmException)
pure virtual

Get the pool name of this pool.

virtual std::string dmlite::PoolHandler::getPoolType ( void  ) throw (DmException)
pure virtual

Get the pool type of this pool.

virtual uint64_t dmlite::PoolHandler::getTotalSpace ( void  ) throw (DmException)
pure virtual

Get the total space of this pool.

virtual bool dmlite::PoolHandler::poolIsAvailable ( bool  write = true) throw (DmException)
pure virtual

Check if the pool is actually available.

virtual void dmlite::PoolHandler::removeReplica ( const Replica replica) throw (DmException)
pure virtual

Remove a replica from the pool.

virtual bool dmlite::PoolHandler::replicaIsAvailable ( const Replica replica) throw (DmException)
pure virtual

Check if a replica is available.

virtual Location dmlite::PoolHandler::whereToRead ( const Replica replica) throw (DmException)
pure virtual

Get the actual location of the file replica. This is pool-specific.

virtual Location dmlite::PoolHandler::whereToWrite ( const std::string &  path) throw (DmException)
pure virtual

Get where to put a file.


The documentation for this class was generated from the following files: