ldas-tools-diskcacheAPI
2.7.0
|
Manages a collection of mount points. More...
#include <MountPointManagerSingleton.hh>
Public Member Functions | |
DECLARE_READ_WRITE_SINGLETON (MountPointManagerSingleton) | |
DECLARE_READ_WRITE_SINGLETON (MountPointManagerSingleton) | |
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... | |
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... | |
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 |
typedef Cache::DirectoryManager | directory_cache_type |
typedef Cache::DirectoryManager | directory_cache_type |
Private Member Functions | |
void | DirectoryCache (directory_cache_type *Cache) |
Establish the cache of directories. More... | |
void | DirectoryCache (directory_cache_type *Cache) |
Establish the cache of directories. More... | |
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.
|
inherited |
|
inherited |
|
inherited |
typedef MountPointManager::mount_point_name_container_type diskCache::MountPointManagerSingleton::mount_point_name_container_type |
typedef MountPointManager::mount_point_name_container_type diskCache::MountPointManagerSingleton::mount_point_name_container_type |
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 |
typedef MountPointManager::mount_point_names_ro_type diskCache::MountPointManagerSingleton::mount_point_names_ro_type |
typedef MountPointManager::mount_point_names_ro_type diskCache::MountPointManagerSingleton::mount_point_names_ro_type |
diskCache::MountPointManagerSingleton::DECLARE_READ_WRITE_SINGLETON | ( | MountPointManagerSingleton | ) |
diskCache::MountPointManagerSingleton::DECLARE_READ_WRITE_SINGLETON | ( | MountPointManagerSingleton | ) |
diskCache::MountPointManagerSingleton::DECLARE_READ_WRITE_SINGLETON | ( | MountPointManagerSingleton | ) |
|
inlineinherited |
Establish the cache of directories.
|
inherited |
Establish the cache of directories.
|
inherited |
Establish the cache of directories.
|
inlinestatic |
Locate files contained within the collection.
|
static |
Locate files contained within the collection.
|
static |
Locate files contained within the collection.
|
inherited |
Locate files contained within the collection.
|
static |
Retrieve list of registered mount points.
|
static |
Retrieve list of registered mount points.
|
inlinestatic |
Retrieve list of registered mount points.
|
inlineinherited |
Retrieve the names of the mount points.
|
inherited |
Handles writing of a single collection of mount points to a binary stream.
|
static |
Dump information to the stream.
[in] | Stream | Sink for the information. |
|
static |
Dump information to the stream.
[in] | Stream | Sink for the information. |
|
inlinestatic |
Dump information to the stream.
[in] | Stream | Sink for the information. |
|
inherited |
Retrieve information from the stream.
[in] | Stream | Source of the new 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 |
|
static |
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 |
|
static |
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. |
|
static |
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. |
|
static |
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. |
|
static |
Update the collection of managed mount points.
[in] | MountPoints | Ordered collection of mount points to be managed. |
[out] | Results | Results. |
|
inlinestatic |
Update the collection of managed mount points.
[in] | MountPoints | Ordered collection of mount points to be managed. |
[out] | Results | Results. |
|
static |
Update the collection of managed mount points.
[in] | MountPoints | Ordered collection of mount points to be managed. |
[out] | Results | Results. |
|
inherited |
Handles writing of a single collection of mount points to a binary stream.
|
inherited |
Handles writing of a single collection of mount points to a binary stream.
|
inlinestatic |
Dump information to the stream.
[in] | Stream | Sink for the information. |
|
static |
Dump information to the stream.
[in] | Stream | Sink for the information. |
|
static |
Dump information to the stream.
[in] | Stream | Sink for the information. |
|
inherited |
Dump information to the stream.
[in] | Stream | Sink for the information. |
|
staticinherited |
Reset the cached information.
|
staticinherited |
Reset the lists of managed directories.