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

Continuous dump the cache to media. More...

#include <DumpCacheDaemon.hh>

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

Public Types

typedef INT_4U interval_type
 
typedef LDASTools::AL::MutexLockVariable< bool > io_lock_type
 
typedef diskCache::Streams::Interface::version_type version_type
 
typedef LDASTools::AL::TaskThread thread_type
 
typedef INT_4U interval_type
 
typedef LDASTools::AL::MutexLockVariable< bool > io_lock_type
 
typedef diskCache::Streams::Interface::version_type version_type
 
typedef LDASTools::AL::TaskThread thread_type
 
typedef INT_4U interval_type
 
typedef LDASTools::AL::MutexLockVariable< bool > io_lock_type
 
typedef diskCache::Streams::Interface::version_type version_type
 
typedef LDASTools::AL::TaskThread thread_type
 

Public Member Functions

 SYMBOL_CLASS_DECL (HASH_FILENAME_ASCII, std::string)
 
 SYMBOL_CLASS_DECL (HASH_FILENAME_BINARY, std::string)
 
 SYMBOL_CLASS_DECL_BY_VALUE (INTERVAL, INT_4U)
 
 DumpCacheDaemon ()
 
virtual void operator() ()
 
 SYMBOL_CLASS_DECL (HASH_FILENAME_ASCII, std::string)
 
 SYMBOL_CLASS_DECL (HASH_FILENAME_BINARY, std::string)
 
 SYMBOL_CLASS_DECL_BY_VALUE (INTERVAL, INT_4U)
 
 DumpCacheDaemon ()
 
virtual void operator() ()
 
 SYMBOL_CLASS_DECL (HASH_FILENAME_ASCII, std::string)
 
 SYMBOL_CLASS_DECL (HASH_FILENAME_BINARY, std::string)
 
 SYMBOL_CLASS_DECL_BY_VALUE (INTERVAL, INT_4U)
 
 DumpCacheDaemon ()
 
virtual void operator() ()
 

Static Public Member Functions

static version_type ASCIIVersion ()
 
static void ASCIIVersion (version_type Value)
 
static version_type BinaryVersion ()
 
static void BinaryVersion (version_type Value)
 
static std::string FilenameAscii ()
 
static void FilenameAscii (const std::string &Value)
 
static std::string FilenameBinary ()
 
static void FilenameBinary (const std::string &Value)
 
static io_lock_typeIOLock ()
 
static interval_type Interval ()
 
static void Interval (interval_type Value)
 
static void Start ()
 
static version_type ASCIIVersion ()
 
static void ASCIIVersion (version_type Value)
 
static version_type BinaryVersion ()
 
static void BinaryVersion (version_type Value)
 
static std::string FilenameAscii ()
 
static void FilenameAscii (const std::string &Value)
 
static std::string FilenameBinary ()
 
static void FilenameBinary (const std::string &Value)
 
static io_lock_typeIOLock ()
 
static interval_type Interval ()
 
static void Interval (interval_type Value)
 
static void Start ()
 
static version_type ASCIIVersion ()
 
static void ASCIIVersion (version_type Value)
 
static version_type BinaryVersion ()
 
static void BinaryVersion (version_type Value)
 
static std::string FilenameAscii ()
 
static void FilenameAscii (const std::string &Value)
 
static std::string FilenameBinary ()
 
static void FilenameBinary (const std::string &Value)
 
static io_lock_typeIOLock ()
 
static interval_type Interval ()
 
static void Interval (interval_type Value)
 
static void Start ()
 

Static Public Attributes

static const char *const RESYNC_EXTENSION = "#Resync#"
 Extension to use when a cache syncronization request is made. More...
 

Private Member Functions

bool is_active () const
 
bool is_active () const
 
bool is_active () const
 

Private Attributes

bool active
 Keep track if the daemon is still active. More...
 

Static Private Attributes

static version_type version_ascii
 
static version_type version_binary
 
static LDASTools::AL::ReadWriteLock::baton_type variable_baton
 
static LDASTools::AL::MutexLock::baton_type m_io_baton
 syncronize between the reading and writing of the cache files More...
 
static bool m_io_dummy_var = false
 

Detailed Description

Continuous dump the cache to media.

Member Typedef Documentation

◆ interval_type [1/3]

◆ interval_type [2/3]

◆ interval_type [3/3]

◆ io_lock_type [1/3]

typedef LDASTools::AL::MutexLockVariable< bool > diskCache::DumpCacheDaemon::io_lock_type

◆ io_lock_type [2/3]

typedef LDASTools::AL::MutexLockVariable< bool > diskCache::DumpCacheDaemon::io_lock_type

◆ io_lock_type [3/3]

typedef LDASTools::AL::MutexLockVariable< bool > diskCache::DumpCacheDaemon::io_lock_type

◆ thread_type [1/3]

typedef LDASTools::AL::TaskThread diskCache::DumpCacheDaemon::thread_type

◆ thread_type [2/3]

typedef LDASTools::AL::TaskThread diskCache::DumpCacheDaemon::thread_type

◆ thread_type [3/3]

typedef LDASTools::AL::TaskThread diskCache::DumpCacheDaemon::thread_type

◆ version_type [1/3]

◆ version_type [2/3]

◆ version_type [3/3]

Constructor & Destructor Documentation

◆ DumpCacheDaemon() [1/3]

diskCache::DumpCacheDaemon::DumpCacheDaemon ( )

◆ DumpCacheDaemon() [2/3]

diskCache::DumpCacheDaemon::DumpCacheDaemon ( )

◆ DumpCacheDaemon() [3/3]

diskCache::DumpCacheDaemon::DumpCacheDaemon ( )

Member Function Documentation

◆ ASCIIVersion() [1/6]

DumpCacheDaemon::version_type diskCache::DumpCacheDaemon::ASCIIVersion ( )
inlinestatic

◆ ASCIIVersion() [2/6]

static version_type diskCache::DumpCacheDaemon::ASCIIVersion ( )
static

◆ ASCIIVersion() [3/6]

static version_type diskCache::DumpCacheDaemon::ASCIIVersion ( )
static

◆ ASCIIVersion() [4/6]

static void diskCache::DumpCacheDaemon::ASCIIVersion ( version_type  Value)
static

◆ ASCIIVersion() [5/6]

void diskCache::DumpCacheDaemon::ASCIIVersion ( version_type  Value)
inlinestatic

◆ ASCIIVersion() [6/6]

static void diskCache::DumpCacheDaemon::ASCIIVersion ( version_type  Value)
static

◆ BinaryVersion() [1/6]

static version_type diskCache::DumpCacheDaemon::BinaryVersion ( )
static

◆ BinaryVersion() [2/6]

static version_type diskCache::DumpCacheDaemon::BinaryVersion ( )
static

◆ BinaryVersion() [3/6]

DumpCacheDaemon::version_type diskCache::DumpCacheDaemon::BinaryVersion ( )
inlinestatic

◆ BinaryVersion() [4/6]

static void diskCache::DumpCacheDaemon::BinaryVersion ( version_type  Value)
static

◆ BinaryVersion() [5/6]

static void diskCache::DumpCacheDaemon::BinaryVersion ( version_type  Value)
static

◆ BinaryVersion() [6/6]

void diskCache::DumpCacheDaemon::BinaryVersion ( version_type  Value)
inlinestatic

◆ FilenameAscii() [1/6]

std::string diskCache::DumpCacheDaemon::FilenameAscii ( )
inlinestatic

◆ FilenameAscii() [2/6]

static std::string diskCache::DumpCacheDaemon::FilenameAscii ( )
static

◆ FilenameAscii() [3/6]

static std::string diskCache::DumpCacheDaemon::FilenameAscii ( )
static

◆ FilenameAscii() [4/6]

void diskCache::DumpCacheDaemon::FilenameAscii ( const std::string &  Value)
inlinestatic

◆ FilenameAscii() [5/6]

static void diskCache::DumpCacheDaemon::FilenameAscii ( const std::string &  Value)
static

◆ FilenameAscii() [6/6]

static void diskCache::DumpCacheDaemon::FilenameAscii ( const std::string &  Value)
static

◆ FilenameBinary() [1/6]

std::string diskCache::DumpCacheDaemon::FilenameBinary ( )
inlinestatic

◆ FilenameBinary() [2/6]

static std::string diskCache::DumpCacheDaemon::FilenameBinary ( )
static

◆ FilenameBinary() [3/6]

static std::string diskCache::DumpCacheDaemon::FilenameBinary ( )
static

◆ FilenameBinary() [4/6]

static void diskCache::DumpCacheDaemon::FilenameBinary ( const std::string &  Value)
static

◆ FilenameBinary() [5/6]

void diskCache::DumpCacheDaemon::FilenameBinary ( const std::string &  Value)
inlinestatic

◆ FilenameBinary() [6/6]

static void diskCache::DumpCacheDaemon::FilenameBinary ( const std::string &  Value)
static

◆ Interval() [1/6]

static interval_type diskCache::DumpCacheDaemon::Interval ( )
static

◆ Interval() [2/6]

DumpCacheDaemon::interval_type diskCache::DumpCacheDaemon::Interval ( )
inlinestatic

◆ Interval() [3/6]

static interval_type diskCache::DumpCacheDaemon::Interval ( )
static

◆ Interval() [4/6]

static void diskCache::DumpCacheDaemon::Interval ( interval_type  Value)
static

◆ Interval() [5/6]

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

◆ Interval() [6/6]

static void diskCache::DumpCacheDaemon::Interval ( interval_type  Value)
static

◆ IOLock() [1/3]

static io_lock_type& diskCache::DumpCacheDaemon::IOLock ( )
static

◆ IOLock() [2/3]

static io_lock_type& diskCache::DumpCacheDaemon::IOLock ( )
static

◆ IOLock() [3/3]

DumpCacheDaemon::io_lock_type & diskCache::DumpCacheDaemon::IOLock ( )
inlinestatic

◆ is_active() [1/3]

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

◆ is_active() [2/3]

bool diskCache::DumpCacheDaemon::is_active ( ) const
private

◆ is_active() [3/3]

bool diskCache::DumpCacheDaemon::is_active ( ) const
private

◆ operator()() [1/3]

virtual void diskCache::DumpCacheDaemon::operator() ( )
virtual

◆ operator()() [2/3]

virtual void diskCache::DumpCacheDaemon::operator() ( )
virtual

◆ operator()() [3/3]

void diskCache::DumpCacheDaemon::operator() ( )
virtual
Todo:
Need to keep track of this information within the MountPointScanner??

Suspend for a period of time

◆ Start() [1/3]

void diskCache::DumpCacheDaemon::Start ( )
inlinestatic
Todo:
Protect from multiple scanner daemons from running.
Todo:
Need to setup the task thread to be returned to the pool once the task is complete.
Todo:
Protect from multiple scanner daemons from running.
Todo:
Need to setup the task thread to be returned to the pool once the task is complete.
Todo:
Protect from multiple scanner daemons from running.
Todo:
Need to setup the task thread to be returned to the pool once the task is complete.

◆ Start() [2/3]

static void diskCache::DumpCacheDaemon::Start ( )
static

◆ Start() [3/3]

static void diskCache::DumpCacheDaemon::Start ( )
static

◆ SYMBOL_CLASS_DECL() [1/6]

diskCache::DumpCacheDaemon::SYMBOL_CLASS_DECL ( HASH_FILENAME_ASCII  ,
std::string   
)

◆ SYMBOL_CLASS_DECL() [2/6]

diskCache::DumpCacheDaemon::SYMBOL_CLASS_DECL ( HASH_FILENAME_ASCII  ,
std::string   
)

◆ SYMBOL_CLASS_DECL() [3/6]

diskCache::DumpCacheDaemon::SYMBOL_CLASS_DECL ( HASH_FILENAME_ASCII  ,
std::string   
)

◆ SYMBOL_CLASS_DECL() [4/6]

diskCache::DumpCacheDaemon::SYMBOL_CLASS_DECL ( HASH_FILENAME_BINARY  ,
std::string   
)

◆ SYMBOL_CLASS_DECL() [5/6]

diskCache::DumpCacheDaemon::SYMBOL_CLASS_DECL ( HASH_FILENAME_BINARY  ,
std::string   
)

◆ SYMBOL_CLASS_DECL() [6/6]

diskCache::DumpCacheDaemon::SYMBOL_CLASS_DECL ( HASH_FILENAME_BINARY  ,
std::string   
)

◆ SYMBOL_CLASS_DECL_BY_VALUE() [1/3]

diskCache::DumpCacheDaemon::SYMBOL_CLASS_DECL_BY_VALUE ( INTERVAL  ,
INT_4U   
)

◆ SYMBOL_CLASS_DECL_BY_VALUE() [2/3]

diskCache::DumpCacheDaemon::SYMBOL_CLASS_DECL_BY_VALUE ( INTERVAL  ,
INT_4U   
)

◆ SYMBOL_CLASS_DECL_BY_VALUE() [3/3]

diskCache::DumpCacheDaemon::SYMBOL_CLASS_DECL_BY_VALUE ( INTERVAL  ,
INT_4U   
)

Member Data Documentation

◆ active

bool diskCache::DumpCacheDaemon::active
private

Keep track if the daemon is still active.

◆ m_io_baton

static LDASTools::AL::MutexLock::baton_type diskCache::DumpCacheDaemon::m_io_baton
staticprivate

syncronize between the reading and writing of the cache files

◆ m_io_dummy_var

static bool diskCache::DumpCacheDaemon::m_io_dummy_var = false
staticprivate

◆ RESYNC_EXTENSION

static const char *const diskCache::DumpCacheDaemon::RESYNC_EXTENSION = "#Resync#"
static

Extension to use when a cache syncronization request is made.

The extension that is appended to the filename to generate dump files that reflect a system that is in the process of resyncing the in memory cache with information located by the list of mount points.

◆ variable_baton

static LDASTools::AL::ReadWriteLock::baton_type diskCache::DumpCacheDaemon::variable_baton
staticprivate

◆ version_ascii

static version_type diskCache::DumpCacheDaemon::version_ascii
staticprivate

◆ version_binary

static version_type diskCache::DumpCacheDaemon::version_binary
staticprivate

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