26 #ifndef _bes_store_result_cache_h
27 #define _bes_store_result_cache_h
40 class ConstraintEvaluator;
41 class BaseTypeFactory;
60 bool is_valid(
const std::string &cache_file_name,
const std::string &dataset);
61 void read_data_from_cache(
const string &cache_file_name, libdap::DDS *fdds);
62 libdap::DDS *get_cached_data_ddx(
const std::string &cache_file_name, libdap::BaseTypeFactory *factory,
const std::string &dataset);
66 static void delete_instance();
68 string build_stored_result_file_name(
const string &dataset,
const string &ce);
88 libdap::ConstraintEvaluator *eval, std::string &cache_token);
102 #endif // _bes_store_result_cache_h
virtual libdap::DDS * cache_dataset(libdap::DDS &dds, const std::string &constraint, BESDapResponseBuilder *rb, libdap::ConstraintEvaluator *eval, std::string &cache_token)
Get the cached DDS object.
static string getResultPrefixFromConfig()
virtual string get_cache_file_name(const string &src, bool mangle=false)
Build the name of file that will holds the uncompressed data from 'src' in the cache.
static const string SIZE_KEY
static string getStoredResultsDirFromConfig()
Implementation of a caching mechanism for compressed data.
static string getSubDirFromConfig()
virtual ~BESStoredDapResultCache()
static BESStoredDapResultCache * get_instance()
Get the default instance of the BESStoreResultCache object.
friend class StoredResultTest
static const string SUBDIR_KEY
static const string PREFIX_KEY
static unsigned long getCacheSizeFromConfig()
This class is used to build responses for/by the BES.
This class is used to cache DAP2 response objects.