ldas-tools-diskcacheAPI  2.6.3
Public Types | Public Member Functions | Static Public Member Functions | Private Types | 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:
diskCache::MountPointManager

Public Types

typedef MountPointManager::mount_point_name_container_type mount_point_name_container_type
 
typedef MountPointManager::UpdateResults UpdateResults
 
typedef MountPointManager::ScanResults ScanResults
 
typedef MountPointManager::mount_point_names_ro_type mount_point_names_ro_type
 

Public Member Functions

 DECLARE_READ_WRITE_SINGLETON (MountPointManagerSingleton)
 

Static Public Member Functions

static void Find (Cache::QueryAnswer &Answer)
 Locate files contained within the collection. More...
 
static const mount_point_names_ro_type MountPoints ()
 Retrieve list of registered mount points. More...
 
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 Types

typedef Cache::DirectoryManager directory_cache_type
 

Private Member Functions

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

Static Private Attributes

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

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 Typedef Documentation

◆ mount_point_name_container_type

◆ mount_point_names_ro_type

◆ ScanResults

◆ UpdateResults

Member Function Documentation

◆ DECLARE_READ_WRITE_SINGLETON()

diskCache::MountPointManagerSingleton::DECLARE_READ_WRITE_SINGLETON ( MountPointManagerSingleton  )

◆ Find()

void diskCache::MountPointManagerSingleton::Find ( Cache::QueryAnswer Answer)
inlinestatic

Locate files contained within the collection.

◆ MountPoints()

const MountPointManagerSingleton::mount_point_names_ro_type diskCache::MountPointManagerSingleton::MountPoints ( )
inlinestatic

Retrieve list of registered mount points.

◆ Read()

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

Dump information to the stream.

Parameters
[in]StreamSink for the information.

◆ Reset()

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

◆ Scan()

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.

◆ Update()

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.

◆ Write()

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: