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. 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...
 

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: