#include <MountPointScanner.hh>
diskCache::MountPointScanner::MountPointScanner |
( |
const std::string & |
MountPoint, |
|
|
ScanResults & |
Answer, |
|
|
controller_type * |
Controller |
|
) |
| |
|
inline |
diskCache::MountPointScanner::~MountPointScanner |
( |
| ) |
|
|
inline |
static INT_4U diskCache::MountPointScanner::Active |
( |
| ) |
|
|
inlinestatic |
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.
static void diskCache::MountPointScanner::CriticalSection |
( |
bool |
Value | ) |
|
|
inlinestatic |
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.
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. |
void diskCache::MountPointScanner::OnCompletion |
( |
int |
TaskThreadState | ) |
|
|
virtual |
- Todo:
- Report scanning results
void diskCache::MountPointScanner::operator() |
( |
| ) |
|
|
virtual |
void diskCache::MountPointScanner::Rebuild |
( |
| ) |
|
|
inlinestatic |
Rebuild of the cache.
Set up the scanner to do a full rebuild of the cache.
const std::string& diskCache::MountPointScanner::Results |
( |
| ) |
const |
|
inline |
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
static void diskCache::MountPointScanner::Wait |
( |
| ) |
|
|
inlinestatic |
The documentation for this class was generated from the following files: