Sirikata
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes
Sirikata::Transfer::SharedChunkCache Class Reference

#include <TransferHandlers.hpp>

Collaboration diagram for Sirikata::Transfer::SharedChunkCache:

List of all members.

Public Member Functions

 SharedChunkCache ()
 ~SharedChunkCache ()
CacheLayergetCache ()

Static Public Member Functions

static SharedChunkCachegetSingleton ()
static void destroy ()

Private Attributes

CachePolicymDiskCachePolicy
CachePolicymMemoryCachePolicy
std::vector< CacheLayer * > mCacheLayers
CacheLayermCache

Static Private Attributes

static const unsigned int DISK_LRU_CACHE_SIZE = 1024 * 1024 * 1024
static const unsigned int MEMORY_LRU_CACHE_SIZE = 1024 * 1024 * 50

Constructor & Destructor Documentation

Sirikata::Transfer::SharedChunkCache::SharedChunkCache ( )
Sirikata::Transfer::SharedChunkCache::~SharedChunkCache ( )

Member Function Documentation

void Sirikata::Transfer::SharedChunkCache::destroy ( ) [static]
CacheLayer * Sirikata::Transfer::SharedChunkCache::getCache ( )

References mCache.

SharedChunkCache & Sirikata::Transfer::SharedChunkCache::getSingleton ( ) [static]

Member Data Documentation

const unsigned int Sirikata::Transfer::SharedChunkCache::DISK_LRU_CACHE_SIZE = 1024 * 1024 * 1024 [static, private]

Referenced by SharedChunkCache().

Referenced by getCache(), and SharedChunkCache().

const unsigned int Sirikata::Transfer::SharedChunkCache::MEMORY_LRU_CACHE_SIZE = 1024 * 1024 * 50 [static, private]

Referenced by SharedChunkCache().


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