ldas-tools-diskcacheAPI
2.5.6
|
Manages a collection of mount points. More...
#include <MountPointManagerSingleton.hh>
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::IInterface & | Read (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. More... | |
static const int | RESET_MANAGED_DIRECTORIES = 0x0002 |
Reset the lists of managed directories. More... | |
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.
typedef MountPointManager::mount_point_name_container_type diskCache::MountPointManagerSingleton::mount_point_name_container_type |
typedef MountPointManager::mount_point_names_ro_type diskCache::MountPointManagerSingleton::mount_point_names_ro_type |
diskCache::MountPointManagerSingleton::DECLARE_READ_WRITE_SINGLETON | ( | MountPointManagerSingleton | ) |
|
inlinestatic |
Locate files contained within the collection.
|
inlinestatic |
Retrieve list of registered mount points.
|
inlinestatic |
Dump information to the stream.
[in] | Stream | Sink for the information. |
|
inlinestatic |
Reset the requested information.
This allows for the purging of certain information so as to force a refreshing of the information.
[in] | Flag | This is an ORed flag indicating what should be cleaned |
|
inlinestatic |
Request the scanning of a single mount point.
[in] | MountPoint | The name of the mount point to scan. |
[out] | Results | Information gathered during the scan. |
|
inlinestatic |
Update the collection of managed mount points.
[in] | MountPoints | Ordered collection of mount points to be managed. |
[out] | Results | Results. |
|
inlinestatic |
Dump information to the stream.
[in] | Stream | Sink for the information. |