ldas-tools-diskcacheAPI  2.7.0
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
diskCache Namespace Reference

Maintains a list of commands that are supported. More...

Namespaces

 Cache
 
 Commands
 
 Common
 
 Daemon
 
 MetaCommand
 
 Streams
 
 Symbols
 

Classes

class  AtomicFile
 
class  DirectoryManagerSingleton
 Manages a collection of mount points. More...
 
class  DumpCacheDaemon
 Continuous dump the cache to media. More...
 
class  MountPointManager
 Manages a collection of mount points. More...
 
class  MountPointManagerSingleton
 Manages a collection of mount points. More...
 
class  MountPointScanner
 
class  ScanMountPointsDaemon
 Continuous scanning of the mount point lists. More...
 
class  ServerInterface
 Simple interface to a standalone diskcache server. More...
 
class  ThreadCounter
 

Typedefs

typedef INT_4S mtime_type
 
typedef INT_8U total_file_count_type
 

Enumerations

enum  dump_format_type { DUMP_FORMAT_TCL = 1 }
 

Functions

template<typename StreamT >
StreamT & Read (StreamT &Stream)
 
template<typename StreamT >
StreamT & Write (StreamT &Stream)
 
Streams::IBinaryoperator>> (Streams::IBinary &Stream, Cache::Directory::dirref_type &Data)
 
total_file_count_type ScannedFiles ()
 
void ScannedFiles (total_file_count_type IncrementValue)
 
void SetFilenameExtensions (const std::list< std::string > &Extensions)
 
void Initialize ()
 Runtime initialization of the core libary. More...
 
 SYMBOL_CLASS_INIT (DumpCacheDaemon::HASH_FILENAME_ASCII, "frame_cache_dump")
 
 SYMBOL_CLASS_INIT (DumpCacheDaemon::HASH_FILENAME_BINARY, ".frame.cache")
 
 SYMBOL_CLASS_INIT (DumpCacheDaemon::INTERVAL, 120000)
 
Streams::IBinaryoperator>> (Streams::IBinary &Stream, MountPointManager &Data)
 

Variables

int RWLOCK_TIMEOUT = 0
 
const total_file_count_type SCANNED_FILES_RESET
 
INT_4U ScanInterval = 500
 
static MutexLock::baton_type p_scanned_files_baton
 
static total_file_count_type p_scanned_files = 0
 

Detailed Description

Maintains a list of commands that are supported.

Typedef Documentation

◆ mtime_type

typedef INT_4S diskCache::mtime_type

◆ total_file_count_type

Enumeration Type Documentation

◆ dump_format_type

Enumerator
DUMP_FORMAT_TCL 

Function Documentation

◆ Initialize()

void diskCache::Initialize ( )

Runtime initialization of the core libary.

The runtime initialization of the core ensures that many of the callback tables for various classes are properly initialized

◆ operator>>() [1/2]

Streams::IBinary& diskCache::operator>> ( Streams::IBinary Stream,
MountPointManager Data 
)

◆ operator>>() [2/2]

Streams::IBinary& diskCache::operator>> ( Streams::IBinary Stream,
Cache::Directory::dirref_type Data 
)

◆ Read()

template<typename StreamT >
StreamT & diskCache::Read ( StreamT &  Stream)
inline

◆ ScannedFiles() [1/2]

total_file_count_type diskCache::ScannedFiles ( )

◆ ScannedFiles() [2/2]

void diskCache::ScannedFiles ( total_file_count_type  IncrementValue)

◆ SetFilenameExtensions()

void diskCache::SetFilenameExtensions ( const std::list< std::string > &  Extensions)

◆ SYMBOL_CLASS_INIT() [1/3]

diskCache::SYMBOL_CLASS_INIT ( DumpCacheDaemon::HASH_FILENAME_ASCII  ,
"frame_cache_dump"   
)

This is the name of the ascii version of the in memory hash.

This file only contains entries of searchable data.

◆ SYMBOL_CLASS_INIT() [2/3]

diskCache::SYMBOL_CLASS_INIT ( DumpCacheDaemon::HASH_FILENAME_BINARY  ,
".frame.cache"   
)

This is the name of the binary version of the in memory hash.

This file contains an entry for each directory that has been searched. It will include directories that contain no searchable data as well as directories that contain searchable data.

◆ SYMBOL_CLASS_INIT() [3/3]

diskCache::SYMBOL_CLASS_INIT ( DumpCacheDaemon::INTERVAL  ,
120000   
)

This variable specifies the number of milliseconds of delay between writes of the memory cache to the storage media.

The default value is 120000 ( 2 min. ).

◆ Write()

template<typename StreamT >
StreamT & diskCache::Write ( StreamT &  Stream)
inline

Variable Documentation

◆ p_scanned_files

total_file_count_type diskCache::p_scanned_files = 0
static

◆ p_scanned_files_baton

MutexLock::baton_type diskCache::p_scanned_files_baton
static

◆ RWLOCK_TIMEOUT

int diskCache::RWLOCK_TIMEOUT = 0

◆ ScanInterval

INT_4U diskCache::ScanInterval = 500

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

◆ SCANNED_FILES_RESET

const total_file_count_type diskCache::SCANNED_FILES_RESET
Initial value:
=
std::numeric_limits< total_file_count_type >::max( )