dmlite 0.6
Public Member Functions | List of all members
dmlite::PoolHandler Class Reference

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.
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ~PoolHandler()

virtual dmlite::PoolHandler::~PoolHandler ( )
virtual

Destructor.

Member Function Documentation

◆ cancelWrite()

virtual void dmlite::PoolHandler::cancelWrite ( const Location & loc)
virtual

Cancel a write.

◆ getFreeSpace()

virtual uint64_t dmlite::PoolHandler::getFreeSpace ( void )
virtual

Get the free space of this pool.

◆ getPoolName()

virtual std::string dmlite::PoolHandler::getPoolName ( void )
virtual

Get the pool name of this pool.

◆ getPoolType()

virtual std::string dmlite::PoolHandler::getPoolType ( void )
virtual

Get the pool type of this pool.

◆ getTotalSpace()

virtual uint64_t dmlite::PoolHandler::getTotalSpace ( void )
virtual

Get the total space of this pool.

◆ poolIsAvailable()

virtual bool dmlite::PoolHandler::poolIsAvailable ( bool write = true)
virtual

Check if the pool is actually available.

◆ removeReplica()

virtual void dmlite::PoolHandler::removeReplica ( const Replica & replica)
virtual

Remove a replica from the pool.

◆ replicaIsAvailable()

virtual bool dmlite::PoolHandler::replicaIsAvailable ( const Replica & replica)
virtual

Check if a replica is available.

◆ whereToRead()

virtual Location dmlite::PoolHandler::whereToRead ( const Replica & replica)
virtual

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

◆ whereToWrite()

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

Get where to put a file.


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