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

Continuous dump the cache to media. More...

#include <DumpCacheDaemon.hh>

Inheritance diagram for diskCache::DumpCacheDaemon:

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
 

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() ()
 

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 Public Attributes

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

Detailed Description

Continuous dump the cache to media.

Member Typedef Documentation

◆ interval_type

◆ io_lock_type

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

◆ thread_type

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

◆ version_type

Constructor & Destructor Documentation

◆ DumpCacheDaemon()

diskCache::DumpCacheDaemon::DumpCacheDaemon ( )

Member Function Documentation

◆ ASCIIVersion() [1/2]

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

◆ ASCIIVersion() [2/2]

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

◆ BinaryVersion() [1/2]

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

◆ BinaryVersion() [2/2]

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

◆ FilenameAscii() [1/2]

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

◆ FilenameAscii() [2/2]

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

◆ FilenameBinary() [1/2]

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

◆ FilenameBinary() [2/2]

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

◆ Interval() [1/2]

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

◆ Interval() [2/2]

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

◆ IOLock()

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

◆ operator()()

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

Suspend for a period of time

◆ Start()

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.

◆ SYMBOL_CLASS_DECL() [1/2]

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

◆ SYMBOL_CLASS_DECL() [2/2]

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

◆ SYMBOL_CLASS_DECL_BY_VALUE()

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

Member Data Documentation

◆ RESYNC_EXTENSION

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.


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