29 const std::string
vault(
void)
const;
31 void usage(uint16 &a_blocks, uint16 &a_inodes)
const;
32 const bool overflow(
bool a_report =
false);
34 void prepare(
bool a_assume_overflow =
false);
void clear(void)
Clear the vault manager.
void init(void)
Initialize the vault manager.
void usage(uint16 &a_blocks, uint16 &a_inodes) const
Return the percent of used blocks and used inodes in the selected vault.
const bool initialized(void) const
Return the initialized status of the vault manager.
const bool err_deleted_archives(void) const
Return whether or not there was an error deleting archives.
const std::vector< std::string > & deleted_archives(void) const
Return a list of deleted archives.
vault_manager_selection_type
Select, monitor, and prepare vaults.
std::vector< std::string > m_deleted_archives
std::string m_selected_vault
void select(void)
Select a vault.
const subdirectory get_archive_list(void)
Return a list of archive directories in the selected vault.
A simple locking mechanism.
vault_manager_overflow_type
const std::string vault(void) const
Return the path to the selected vault.
void prepare(bool a_assume_overflow=false)
Prepare the selected vault.
void delete_oldest_archive(void)
Find the oldest archive in the vault and delete it.
const bool overflow(bool a_report=false)
Test to see if a vault has exceeded it's overflow threshold.
vault_manager vaulter
The global vault manager.
Retrieve a list of files in a subdirectory that match a given wildcard filename.
const bool selected(void) const
Return whether or not a vault has been selected yet.