ldas-tools-diskcacheAPI  2.7.2
Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
diskCache::MountPointManagerSingleton Class Reference

Manages a collection of mount points. More...

#include <MountPointManagerSingleton.hh>

Inheritance diagram for diskCache::MountPointManagerSingleton:
Inheritance graph
[legend]
Collaboration diagram for diskCache::MountPointManagerSingleton:
Collaboration graph
[legend]

Static Public Member Functions

static void Find (Cache::QueryAnswer &Answer)
 Locate files contained within the collection.
 
static const mount_point_names_ro_type MountPoints ()
 Retrieve list of registered mount points.
 
static void Reset (int Flag)
 Reset the requested information. More...
 
static void Scan (const std::string &MountPoint, ScanResults &Results)
 Request the scanning of a single mount point. More...
 
static void Update (const mount_point_name_container_type &MountPoints, UpdateResults &Results)
 Update the collection of managed mount points. More...
 
template<typename StreamT >
static StreamT & Read (StreamT &Stream)
 Dump information to the stream. More...
 
template<typename StreamT >
static StreamT & Write (StreamT &Stream)
 Dump information to the stream. More...
 
static void Find (Cache::QueryAnswer &Answer)
 Locate files contained within the collection.
 
static const mount_point_names_ro_type MountPoints ()
 Retrieve list of registered mount points.
 
static void Reset (int Flag)
 Reset the requested information. More...
 
static void Scan (const std::string &MountPoint, ScanResults &Results)
 Request the scanning of a single mount point. More...
 
static void Update (const mount_point_name_container_type &MountPoints, UpdateResults &Results)
 Update the collection of managed mount points. More...
 
template<typename StreamT >
static StreamT & Read (StreamT &Stream)
 Dump information to the stream. More...
 
template<typename StreamT >
static StreamT & Write (StreamT &Stream)
 Dump information to the stream. More...
 
static void Find (Cache::QueryAnswer &Answer)
 Locate files contained within the collection.
 
static const mount_point_names_ro_type MountPoints ()
 Retrieve list of registered mount points.
 
static void Reset (int Flag)
 Reset the requested information. More...
 
static void Scan (const std::string &MountPoint, ScanResults &Results)
 Request the scanning of a single mount point. More...
 
static void Update (const mount_point_name_container_type &MountPoints, UpdateResults &Results)
 Update the collection of managed mount points. More...
 
template<typename StreamT >
static StreamT & Read (StreamT &Stream)
 Dump information to the stream. More...
 
template<typename StreamT >
static StreamT & Write (StreamT &Stream)
 Dump information to the stream. More...
 

Private Member Functions

void DirectoryCache (directory_cache_type *Cache)
 Establish the cache of directories.
 
void DirectoryCache (directory_cache_type *Cache)
 Establish the cache of directories.
 
void DirectoryCache (directory_cache_type *Cache)
 Establish the cache of directories.
 
void Find (Cache::QueryAnswer &Answer) const
 Locate files contained within the collection.
 
const mount_point_names_ro_type MountPoints () const
 Retrieve the names of the mount points.
 
Streams::IInterfaceRead (Streams::IInterface &Stream)
 Retrieve information from the stream. More...
 
template<>
Streams::IBinary & Read (Streams::IBinary &Stream)
 
template<typename OStreamT >
OStreamT & Write (OStreamT &Stream)
 Dump information to the stream. More...
 
template<>
Streams::OASCII & Write (Streams::OASCII &Stream)
 
template<>
Streams::OBinary & Write (Streams::OBinary &Stream)
 

Static Private Attributes

static const int RESET_CACHE = 0x0001
 Reset the cached information.
 
static const int RESET_MANAGED_DIRECTORIES = 0x0002
 Reset the lists of managed directories.
 

Detailed Description

Manages a collection of mount points.

A collection of mount points is managed by this singleton class. Each mount point represents a starting point for data searches. The collection of mount points is order sensative in that directories that appear higher in the list will be prioritised when searching for data.

Member Function Documentation

◆ Read() [1/3]

template<typename StreamT >
static StreamT& diskCache::MountPointManagerSingleton::Read ( StreamT &  Stream)
static

Dump information to the stream.

Parameters
[in]StreamSink for the information.

◆ Read() [2/3]

template<typename StreamT >
StreamT & diskCache::MountPointManagerSingleton::Read ( StreamT &  Stream)
inlinestatic

Dump information to the stream.

Parameters
[in]StreamSink for the information.

◆ Read() [3/3]

template<typename StreamT >
static StreamT& diskCache::MountPointManagerSingleton::Read ( StreamT &  Stream)
static

Dump information to the stream.

Parameters
[in]StreamSink for the information.

◆ Reset() [1/3]

void diskCache::MountPointManagerSingleton::Reset ( int  Flag)
inlinestatic

Reset the requested information.

This allows for the purging of certain information so as to force a refreshing of the information.

Parameters
[in]FlagThis is an ORed flag indicating what should be cleaned

◆ Reset() [2/3]

static void diskCache::MountPointManagerSingleton::Reset ( int  Flag)
static

Reset the requested information.

This allows for the purging of certain information so as to force a refreshing of the information.

Parameters
[in]FlagThis is an ORed flag indicating what should be cleaned

◆ Reset() [3/3]

static void diskCache::MountPointManagerSingleton::Reset ( int  Flag)
static

Reset the requested information.

This allows for the purging of certain information so as to force a refreshing of the information.

Parameters
[in]FlagThis is an ORed flag indicating what should be cleaned

◆ Scan() [1/3]

void diskCache::MountPointManagerSingleton::Scan ( const std::string &  MountPoint,
ScanResults Results 
)
inlinestatic

Request the scanning of a single mount point.

Parameters
[in]MountPointThe name of the mount point to scan.
[out]ResultsInformation gathered during the scan.

◆ Scan() [2/3]

static void diskCache::MountPointManagerSingleton::Scan ( const std::string &  MountPoint,
ScanResults Results 
)
static

Request the scanning of a single mount point.

Parameters
[in]MountPointThe name of the mount point to scan.
[out]ResultsInformation gathered during the scan.

◆ Scan() [3/3]

static void diskCache::MountPointManagerSingleton::Scan ( const std::string &  MountPoint,
ScanResults Results 
)
static

Request the scanning of a single mount point.

Parameters
[in]MountPointThe name of the mount point to scan.
[out]ResultsInformation gathered during the scan.

◆ Update() [1/3]

void diskCache::MountPointManagerSingleton::Update ( const mount_point_name_container_type MountPoints,
UpdateResults Results 
)
inlinestatic

Update the collection of managed mount points.

Parameters
[in]MountPointsOrdered collection of mount points to be managed.
[out]ResultsResults.

◆ Update() [2/3]

static void diskCache::MountPointManagerSingleton::Update ( const mount_point_name_container_type MountPoints,
UpdateResults Results 
)
static

Update the collection of managed mount points.

Parameters
[in]MountPointsOrdered collection of mount points to be managed.
[out]ResultsResults.

◆ Update() [3/3]

static void diskCache::MountPointManagerSingleton::Update ( const mount_point_name_container_type MountPoints,
UpdateResults Results 
)
static

Update the collection of managed mount points.

Parameters
[in]MountPointsOrdered collection of mount points to be managed.
[out]ResultsResults.

◆ Write() [1/3]

template<typename StreamT >
static StreamT& diskCache::MountPointManagerSingleton::Write ( StreamT &  Stream)
static

Dump information to the stream.

Parameters
[in]StreamSink for the information.

◆ Write() [2/3]

template<typename StreamT >
static StreamT& diskCache::MountPointManagerSingleton::Write ( StreamT &  Stream)
static

Dump information to the stream.

Parameters
[in]StreamSink for the information.

◆ Write() [3/3]

template<typename StreamT >
StreamT & diskCache::MountPointManagerSingleton::Write ( StreamT &  Stream)
inlinestatic

Dump information to the stream.

Parameters
[in]StreamSink for the information.

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