ldas-tools-diskcacheAPI
2.7.2
|
Manages a collection of mount points. More...
#include <DirectoryManagerSingleton.hh>
Public Member Functions | |
DECLARE_READ_WRITE_SINGLETON (DirectoryManagerSingleton) | |
DECLARE_READ_WRITE_SINGLETON (DirectoryManagerSingleton) | |
DECLARE_READ_WRITE_SINGLETON (DirectoryManagerSingleton) | |
Static Public Member Functions | |
static bool | AddDirectory (directory_ref_type Directory) |
static void | Find (const std::string &Root, Cache::QueryAnswer &Answer) |
static void | RemoveDirectoryRecursively (const std::string &Name) |
Remove a directory from the collection. More... | |
static void | Scan (const std::string &Root, ScanResults &Results) |
Recursively scan a managed directory. More... | |
template<typename StreamT > | |
static StreamT & | Read (StreamT &Stream) |
Initialize information from the stream. More... | |
template<typename OStreamT > | |
static OStreamT & | Write (OStreamT &Stream) |
Dump information to the stream. More... | |
static bool | AddDirectory (directory_ref_type Directory) |
static void | Find (const std::string &Root, Cache::QueryAnswer &Answer) |
static void | RemoveDirectoryRecursively (const std::string &Name) |
Remove a directory from the collection. More... | |
static void | Scan (const std::string &Root, ScanResults &Results) |
Recursively scan a managed directory. More... | |
template<typename StreamT > | |
static StreamT & | Read (StreamT &Stream) |
Initialize information from the stream. More... | |
template<typename OStreamT > | |
static OStreamT & | Write (OStreamT &Stream) |
Dump information to the stream. More... | |
static bool | AddDirectory (directory_ref_type Directory) |
static void | Find (const std::string &Root, Cache::QueryAnswer &Answer) |
static void | RemoveDirectoryRecursively (const std::string &Name) |
Remove a directory from the collection. More... | |
static void | Scan (const std::string &Root, ScanResults &Results) |
Recursively scan a managed directory. More... | |
template<typename StreamT > | |
static StreamT & | Read (StreamT &Stream) |
Initialize information from the stream. More... | |
template<typename OStreamT > | |
static OStreamT & | Write (OStreamT &Stream) |
Dump information to the stream. More... | |
Private Types | |
typedef Directory::ScanResults | ScanResults |
typedef Directory::ScanResults | ScanResults |
typedef Directory::ScanResults | ScanResults |
typedef LDASTools::AL::unordered_map< std::string, directory_ref_type > | directory_container_type |
Collection of directories. More... | |
typedef LDASTools::AL::unordered_map< std::string, directory_ref_type > | directory_container_type |
Collection of directories. More... | |
typedef LDASTools::AL::unordered_map< std::string, directory_ref_type > | directory_container_type |
Collection of directories. More... | |
typedef LDASTools::AL::ReadWriteLockVariable< LDASTools::AL::ReadWriteLock::READ, directory_container_type > | directory_container_ro_type |
Thread safe read access of the collection of directories. More... | |
typedef LDASTools::AL::ReadWriteLockVariable< LDASTools::AL::ReadWriteLock::READ, directory_container_type > | directory_container_ro_type |
Thread safe read access of the collection of directories. More... | |
typedef LDASTools::AL::ReadWriteLockVariable< LDASTools::AL::ReadWriteLock::READ, directory_container_type > | directory_container_ro_type |
Thread safe read access of the collection of directories. More... | |
typedef LDASTools::AL::ReadWriteLockVariable< LDASTools::AL::ReadWriteLock::WRITE, directory_container_type > | directory_container_rw_type |
Thread safe write access of the collection of directories. More... | |
typedef LDASTools::AL::ReadWriteLockVariable< LDASTools::AL::ReadWriteLock::WRITE, directory_container_type > | directory_container_rw_type |
Thread safe write access of the collection of directories. More... | |
typedef LDASTools::AL::ReadWriteLockVariable< LDASTools::AL::ReadWriteLock::WRITE, directory_container_type > | directory_container_rw_type |
Thread safe write access of the collection of directories. More... | |
Private Member Functions | |
void | CreateDirectory (const std::string &Name, const std::string &Root) |
Create a new directory to be added to the collection. More... | |
void | CreateDirectory (const std::string &Name, const std::string &Root) |
Create a new directory to be added to the collection. More... | |
void | CreateDirectory (const std::string &Name, const std::string &Root) |
Create a new directory to be added to the collection. More... | |
void | Find (const std::string &Root, QueryAnswer &Answer) const |
Locate files. More... | |
void | OnUpdate (directory_ref_type Dir, ScanResults &Results) |
Update information concearning a single directory. More... | |
void | OnUpdate (directory_ref_type Dir, ScanResults &Results) |
Update information concearning a single directory. More... | |
void | OnUpdate (directory_ref_type Dir, ScanResults &Results) |
Update information concearning a single directory. More... | |
directory_ref_type | ReferenceDirectory (const std::string &Name) const |
Locate a directory in the collection. More... | |
directory_ref_type | ReferenceDirectory (const std::string &Name) const |
Locate a directory in the collection. More... | |
directory_ref_type | ReferenceDirectory (const std::string &Name) const |
Locate a directory in the collection. More... | |
void | RemoveDirectory (const std::string &Name) |
Remove a directory from the collection. More... | |
void | RemoveDirectory (const std::string &Name) |
Remove a directory from the collection. More... | |
void | RemoveDirectory (const std::string &Name) |
Remove a directory from the collection. More... | |
template<> | |
IBinary & | Read (IBinary &Stream) |
void | Scan (directory_ref_type Dir, ScanResults &Results) |
Scan the directory for changes. More... | |
template<typename StreamT > | |
StreamT & | Write (StreamT &Stream) |
template<> | |
OStream & | Write (OStream &Stream) |
template<> | |
OBinary & | Write (OBinary &Stream) |
template<class Op > | |
void | Walk (Op Operation, const std::string &Root, bool IncludeOffline=false) |
Walk the tree performing the requested operation. More... | |
template<class Op > | |
void | Walk (const Op Operation, const std::string &Root, bool IncludeOffline=false) const |
Walk the tree performing the requested operation. More... | |
template<class Op > | |
void | Walk (Op Operation, const std::string &Root, bool IncludeOffline=false) |
Walk the tree performing the requested operation. More... | |
template<class Op > | |
void | Walk (const Op Operation, const std::string &Root, bool IncludeOffline=false) const |
Walk the tree performing the requested operation. More... | |
template<class Op > | |
void | Walk (Op Operation, const std::string &Root, bool IncludeOffline=false) |
Walk the tree performing the requested operation. More... | |
template<class Op > | |
void | Walk (const Op Operation, const std::string &Root, bool IncludeOffline=false) const |
Walk the tree performing the requested operation. More... | |
template<class Op > | |
void | WalkDepthFirst (Op Operation, const std::string &Root) |
Walk the tree depth first performing the requested operation. More... | |
template<class Op > | |
void | WalkDepthFirst (Op Operation, const std::string &Root) |
Walk the tree depth first performing the requested operation. More... | |
template<class Op > | |
void | WalkDepthFirst (Op Operation, const std::string &Root) |
Walk the tree depth first performing the requested operation. More... | |
const directory_container_ro_type | directory_container_ro () const |
Read access to the collection of directories. More... | |
const directory_container_ro_type | directory_container_ro () const |
Read access to the collection of directories. More... | |
const directory_container_ro_type | directory_container_ro () const |
Read access to the collection of directories. More... | |
directory_container_rw_type | directory_container_rw () |
Write access for the collection of directories. More... | |
directory_container_rw_type | directory_container_rw () |
Write access for the collection of directories. More... | |
directory_container_rw_type | directory_container_rw () |
Write access for the collection of directories. More... | |
Private Attributes | |
directory_container_rw_type::baton_type | p_directory_container_baton |
Lock for the collection of directories. More... | |
directory_container_type | p_directory_container |
Container to hold the collection of directories. More... | |
Friends | |
class | MountPointManagerSingleton |
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.
|
privateinherited |
Thread safe read access of the collection of directories.
|
privateinherited |
Thread safe read access of the collection of directories.
|
privateinherited |
Thread safe read access of the collection of directories.
|
privateinherited |
Thread safe write access of the collection of directories.
|
privateinherited |
Thread safe write access of the collection of directories.
|
privateinherited |
Thread safe write access of the collection of directories.
|
privateinherited |
Collection of directories.
|
privateinherited |
Collection of directories.
|
privateinherited |
Collection of directories.
typedef Cache::DirectoryManager::directory_ref_type diskCache::DirectoryManagerSingleton::directory_ref_type |
typedef Cache::DirectoryManager::directory_ref_type diskCache::DirectoryManagerSingleton::directory_ref_type |
typedef Cache::DirectoryManager::directory_ref_type diskCache::DirectoryManagerSingleton::directory_ref_type |
|
inherited |
|
inherited |
|
inherited |
|
inlinestatic |
|
static |
|
static |
|
inlineinherited |
Create a new directory to be added to the collection.
[in] | Name | The name of the directory. |
[in] | Root | The root of the above directory. |
|
inherited |
Create a new directory to be added to the collection.
[in] | Name | The name of the directory. |
[in] | Root | The root of the above directory. |
|
inherited |
Create a new directory to be added to the collection.
[in] | Name | The name of the directory. |
[in] | Root | The root of the above directory. |
diskCache::DirectoryManagerSingleton::DECLARE_READ_WRITE_SINGLETON | ( | DirectoryManagerSingleton | ) |
diskCache::DirectoryManagerSingleton::DECLARE_READ_WRITE_SINGLETON | ( | DirectoryManagerSingleton | ) |
diskCache::DirectoryManagerSingleton::DECLARE_READ_WRITE_SINGLETON | ( | DirectoryManagerSingleton | ) |
|
inlineprivateinherited |
Read access to the collection of directories.
|
privateinherited |
Read access to the collection of directories.
|
privateinherited |
Read access to the collection of directories.
|
inlineprivateinherited |
Write access for the collection of directories.
|
privateinherited |
Write access for the collection of directories.
|
privateinherited |
Write access for the collection of directories.
|
inlinestatic |
|
static |
|
static |
|
inherited |
Locate files.
|
inherited |
Update information concearning a single directory.
[in] | Dir | The updated directory information. |
[out] | Results | Storage for logging the results. |
|
inherited |
Update information concearning a single directory.
[in] | Dir | The updated directory information. |
[out] | Results | Storage for logging the results. |
|
inherited |
Update information concearning a single directory.
[in] | Dir | The updated directory information. |
[out] | Results | Storage for logging the results. |
|
inherited |
|
inlinestatic |
Initialize information from the stream.
[in] | Stream | Source of the information. |
|
static |
Initialize information from the stream.
[in] | Stream | Source of the information. |
|
static |
Initialize information from the stream.
[in] | Stream | Source of the information. |
|
inlineinherited |
Locate a directory in the collection.
|
inherited |
Locate a directory in the collection.
|
inherited |
Locate a directory in the collection.
|
inlineinherited |
Remove a directory from the collection.
|
inherited |
Remove a directory from the collection.
|
inherited |
Remove a directory from the collection.
|
inlinestatic |
Remove a directory from the collection.
|
static |
Remove a directory from the collection.
|
static |
Remove a directory from the collection.
|
inlinestatic |
Recursively scan a managed directory.
|
static |
Recursively scan a managed directory.
|
static |
Recursively scan a managed directory.
|
inherited |
Scan the directory for changes.
|
inherited |
Walk the tree performing the requested operation.
[in] | Operation | A function which is to be performed on each node found while walking the tree. |
[in] | Root | Directory from where to start. |
|
inherited |
Walk the tree performing the requested operation.
[in] | Operation | A function which is to be performed on each node found while walking the tree. |
[in] | Root | Directory from where to start. |
|
inherited |
Walk the tree performing the requested operation.
[in] | Operation | A function which is to be performed on each node found while walking the tree. |
[in] | Root | Directory from where to start. |
|
inherited |
Walk the tree performing the requested operation.
[in] | Operation | A function which is to be performed on each node found while walking the tree. |
[in] | Root | Directory from where to start. |
|
inherited |
Walk the tree performing the requested operation.
[in] | Operation | A function which is to be performed on each node found while walking the tree. |
[in] | Root | Directory from where to start. |
|
inherited |
Walk the tree performing the requested operation.
[in] | Operation | A function which is to be performed on each node found while walking the tree. |
[in] | Root | Directory from where to start. |
|
inherited |
Walk the tree depth first performing the requested operation.
[in] | Operation | A function which is to be performed on each node found while walking the tree. |
[in] | Root | Directory from where to start. |
|
inherited |
Walk the tree depth first performing the requested operation.
[in] | Operation | A function which is to be performed on each node found while walking the tree. |
[in] | Root | Directory from where to start. |
|
inherited |
Walk the tree depth first performing the requested operation.
[in] | Operation | A function which is to be performed on each node found while walking the tree. |
[in] | Root | Directory from where to start. |
|
inherited |
|
inherited |
|
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 |
|
friend |
|
mutableprivateinherited |
Container to hold the collection of directories.
|
mutableprivateinherited |
Lock for the collection of directories.