4 #ifndef DMLITE_CPP_POOLDRIVER_H 5 #define DMLITE_CPP_POOLDRIVER_H 27 explicit Chunk(
const std::string& str);
49 explicit Location(
const std::string& str);
61 virtual std::string getPoolType(
void)
throw (
DmException);
64 virtual std::string getPoolName(
void)
throw (
DmException);
67 virtual uint64_t getTotalSpace(
void)
throw (
DmException);
70 virtual uint64_t getFreeSpace(
void)
throw (
DmException);
73 virtual bool poolIsAvailable(
bool write =
true)
throw (
DmException);
123 virtual std::string implementedPool()
throw ();
134 #endif // DMLITE_CPP_POOLDRIVER_H bool operator>(const Chunk &) const
Base class for interfaces.
Definition: base.h:18
Common methods and functions for URL and path.
Handler for a pool. Works similary to a file handler.
Definition: pooldriver.h:55
Url url
Definition: pooldriver.h:31
Header generated by CMake with the build configuration used.
Represent the complete location of a file.
Definition: pooldriver.h:42
Base exception class.
Definition: exceptions.h:17
Location(int nitems, const Chunk &proto)
Definition: pooldriver.h:44
File replica metadata.
Definition: inode.h:87
std::string toString(void) const
bool operator!=(const Chunk &) const
Exceptions used by the API.
Represents a chunk of a file.
Definition: pooldriver.h:23
Base class for factories.
Definition: base.h:48
bool operator==(const Chunk &) const
PoolDriver factory.
Definition: pooldriver.h:117
uint64_t offset
Definition: pooldriver.h:29
uint64_t size
Definition: pooldriver.h:30
Internal interface for handling pool metadata.
Definition: poolmanager.h:22
bool operator<(const Chunk &) const
Location(const Location &l)
Definition: pooldriver.h:46
Interface for a pool driver.
Definition: pooldriver.h:92
Namespace for the dmlite C++ API.
Definition: authn.h:15
Location()
Definition: pooldriver.h:43