ldas-tools-diskcacheAPI 2.7.7
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
diskCache::ScanMountPointsDaemon Class Reference

Continuous scanning of the mount point lists. More...

#include <ScanMountPointsDaemon.hh>

Inheritance diagram for diskCache::ScanMountPointsDaemon:
Inheritance graph
[legend]
Collaboration diagram for diskCache::ScanMountPointsDaemon:
Collaboration graph
[legend]

Public Types

typedef INT_4U interval_type
 

Public Member Functions

 ScanMountPointsDaemon (std::ostream *Stream)
 
 ~ScanMountPointsDaemon ()
 
virtual void operator() ()
 

Static Public Member Functions

static interval_type Interval ()
 
static void Interval (interval_type Value)
 

Private Member Functions

bool is_active () const
 

Private Attributes

bool active
 

Static Private Attributes

static LDASTools::AL::MutexLock::baton_type m_variable_baton
 Syncronize variable access. More...
 
static interval_type m_interval
 Delay between scans. More...
 

Detailed Description

Continuous scanning of the mount point lists.

Member Typedef Documentation

◆ interval_type

Constructor & Destructor Documentation

◆ ScanMountPointsDaemon()

diskCache::ScanMountPointsDaemon::ScanMountPointsDaemon ( std::ostream *  Stream)

◆ ~ScanMountPointsDaemon()

diskCache::ScanMountPointsDaemon::~ScanMountPointsDaemon ( )

Member Function Documentation

◆ Interval() [1/2]

ScanMountPointsDaemon::interval_type diskCache::ScanMountPointsDaemon::Interval ( )
inlinestatic

◆ Interval() [2/2]

void diskCache::ScanMountPointsDaemon::Interval ( interval_type  Value)
inlinestatic

◆ is_active()

bool diskCache::ScanMountPointsDaemon::is_active ( ) const
inlineprivate

◆ operator()()

void diskCache::ScanMountPointsDaemon::operator() ( )
virtual
Todo:
Need to format the results of scanning and then dump out either to the requested stream or use the logging mechanism.

Suspend scanning for a period of time

Member Data Documentation

◆ active

bool diskCache::ScanMountPointsDaemon::active
private

◆ m_interval

ScanMountPointsDaemon::interval_type diskCache::ScanMountPointsDaemon::m_interval
staticprivate
Initial value:
=
500

Delay between scans.

This variable specifies the number of milliseconds to delay between successive scans of the list of mount points.

The default value is 500 ( 0.5 sec. ).

◆ m_variable_baton

MutexLock::baton_type diskCache::ScanMountPointsDaemon::m_variable_baton
staticprivate

Syncronize variable access.


The documentation for this class was generated from the following files: