#include <MountPointScanner.hh>
◆ concurrency_type
◆ controller_type
◆ mount_point_container_type
◆ scanner_sync_ro_type
◆ scanner_sync_rw_type
◆ scanner_sync_type
◆ MountPointScanner()
diskCache::MountPointScanner::MountPointScanner |
( |
const std::string & |
MountPoint, |
|
|
ScanResults & |
Answer, |
|
|
controller_type * |
Controller |
|
) |
| |
|
inline |
◆ ~MountPointScanner()
diskCache::MountPointScanner::~MountPointScanner |
( |
| ) |
|
|
inline |
◆ Active()
static INT_4U diskCache::MountPointScanner::Active |
( |
| ) |
|
|
inlinestatic |
◆ CancellationRequest()
bool diskCache::MountPointScanner::CancellationRequest |
( |
std::string & |
Reason | ) |
|
|
static |
Check the cancellation state.
- Parameters
-
[out] | Reason | If the MountPointScanner is requesting that scanning threads cancel themselves, this string will have a meassage explaining why. |
- Returns
- If the MountPointScanner is requesting that scanning threads cancel themselves, the value true is returned; false otherwise.
This method allows for cooperative thread cancellation. Threads that may block the scanning of the mount points, should periodicly check if a request to terminate the current scan has been made. This allows threads to cancel themselves when it may be easier to perform any cleanup that needs to occur.
◆ Concurrency() [1/2]
◆ Concurrency() [2/2]
◆ CriticalSection()
static void diskCache::MountPointScanner::CriticalSection |
( |
bool |
Value | ) |
|
|
inlinestatic |
◆ decrement()
static void diskCache::MountPointScanner::decrement |
( |
| ) |
|
|
inlinestaticprivate |
◆ FirstScanComplete()
bool diskCache::MountPointScanner::FirstScanComplete |
( |
| ) |
|
|
inlinestatic |
Reports the status of having completed the first scan.
- Returns
- If the first scan through all entries in the mount point list has completed, the value true is returned; otherwise false
This method simply returns true once the scanner is in update mode. If this method returns false, then the scanner is working on its first pass through the mount point list.
◆ FirstScanSet()
void diskCache::MountPointScanner::FirstScanSet |
( |
bool |
Value | ) |
|
|
inlinestatic |
Sets the status of having completed the first scan.
Some actions need to reset the status concearning the first scan.
- Parameters
-
[in] | Value | New value for the status of having completed the first scan. |
◆ increment()
static void diskCache::MountPointScanner::increment |
( |
| ) |
|
|
inlinestaticprivate |
◆ mount_point_reset() [1/2]
static bool diskCache::MountPointScanner::mount_point_reset |
( |
| ) |
|
|
inlinestaticprivate |
Obtain the state indicating the need to rebuild the cache.
◆ mount_point_reset() [2/2]
static bool diskCache::MountPointScanner::mount_point_reset |
( |
bool |
Value | ) |
|
|
inlinestaticprivate |
Set the state indicating the need to rebuild the cache.
◆ on_exit()
void diskCache::MountPointScanner::on_exit |
( |
| ) |
|
|
staticprivate |
◆ OnCompletion()
void diskCache::MountPointScanner::OnCompletion |
( |
int |
TaskThreadState | ) |
|
|
virtual |
- Todo:
- Report scanning results
◆ operator()()
void diskCache::MountPointScanner::operator() |
( |
| ) |
|
|
virtual |
◆ Rebuild()
void diskCache::MountPointScanner::Rebuild |
( |
| ) |
|
|
inlinestatic |
Rebuild of the cache.
Set up the scanner to do a full rebuild of the cache.
◆ Results()
const std::string& diskCache::MountPointScanner::Results |
( |
| ) |
const |
|
inline |
◆ Scan()
◆ ScanIteration()
INT_4U diskCache::MountPointScanner::ScanIteration |
( |
| ) |
|
|
inlinestatic |
Reports the status of having completed the first scan.
- Returns
- If the first scan through all entries in the mount point list has completed, the value true is returned; otherwise false
◆ start()
void diskCache::MountPointScanner::start |
( |
const std::string & |
MountPoint, |
|
|
ScanResults & |
Answer |
|
) |
| |
|
inlinestaticprivate |
◆ Sync()
◆ SyncRO()
◆ Wait()
static void diskCache::MountPointScanner::Wait |
( |
| ) |
|
|
inlinestatic |
◆ m_active_count
◆ m_active_count_baton
MutexLock::baton_type diskCache::MountPointScanner::m_active_count_baton |
|
staticprivate |
◆ m_concurrency
◆ m_controller
◆ m_first_scan_completed
INT_4U diskCache::MountPointScanner::m_first_scan_completed = 0 |
|
staticprivate |
◆ m_first_scan_completed_baton
MutexLock::baton_type diskCache::MountPointScanner::m_first_scan_completed_baton |
|
staticprivate |
◆ m_mount_point
std::string diskCache::MountPointScanner::m_mount_point |
|
private |
◆ m_mount_point_cache_reset
bool diskCache::MountPointScanner::m_mount_point_cache_reset = false |
|
staticprivate |
◆ m_mount_point_cache_reset_baton
MutexLock::baton_type diskCache::MountPointScanner::m_mount_point_cache_reset_baton |
|
staticprivate |
◆ m_results
std::string diskCache::MountPointScanner::m_results |
|
private |
◆ m_scan_completed
ConditionalVariable diskCache::MountPointScanner::m_scan_completed |
|
staticprivate |
◆ m_scan_results
ScanResults& diskCache::MountPointScanner::m_scan_results |
|
private |
◆ m_variable_baton
MutexLock::baton_type diskCache::MountPointScanner::m_variable_baton |
|
staticprivate |
Protect static variables in a threaded environment.
◆ p_scanner_sync
Initial value:
Variable needed to syncronize access to scanner.
◆ p_scanner_sync_baton
MountPointScanner::scanner_sync_rw_type::baton_type diskCache::MountPointScanner::p_scanner_sync_baton |
|
staticprivate |
Syncronize access to scanner.
The documentation for this class was generated from the following files: