An application can setup and initialize DSS report caching mechanism using the properties and methods on IDSSReportCacheAdmin. An application can get detailed information on each cache item and control the secondary caches.
IDSSSession) to the Intelligence Server. From the session the IDSSSession::ServerAdmin property returns the server administrator object (IDSSServerAdmin) for the session.
Public Member Functions | |
| HRESULT | BackupAllCaches () |
| Back up all the dirty caches in the memory into files. | |
| HRESULT | BackupCache ([in] BSTR ID,[in] EnumDSSCachingIDType IDType) |
| Backup a specific cache or caches for a specific report if it is dirty. | |
| HRESULT | BackupCachePool () |
| Backup the cache pool into a file. | |
| HRESULT | BackupLKUPTable () |
| Backup the cache lookup table into a file. | |
| HRESULT | CacheLifeTime ([out, retval] Int32 *pVal) |
| Read Only. | |
| HRESULT | CacheTableBucketCount ([out, retval] Int32 *pVal) |
| The number of buckets in the cache lookup and cache pool hash table.. | |
| HRESULT | CacheTableBucketPerLock ([out, retval] Int32 *pVal) |
| The number of buckets a lock locks. | |
| HRESULT | CleanUpInvalidCaches ([in, optional, defaultvalue(3)] Int32 CacheDeleteOption) |
| Delete all the caches with status expired and/or invalid and no inbox references from the cache lookup table. | |
| HRESULT | CreateCache ([in] BSTR ReportID) |
| Create cache for a specific report. | |
| HRESULT | DeleteAllCaches ([in, optional, defaultvalue(3)] Int32 CacheTypeOption) |
| Delete all the caches of the specified type from cache pool in memory. | |
| HRESULT | DeleteCache ([in] BSTR ID,[in] EnumDSSCachingIDType IDType) |
| Delete a specific cache or caches for a specific report from the cache pool. | |
| HRESULT | ExpireAllCaches ([in, optional, defaultvalue(3)] Int32 CacheTypeOption) |
| Mark all the caches in the cache lkuptable as expired/invalid and reset the lkuptable. | |
| HRESULT | ExpireCache ([in] BSTR ID,[in] EnumDSSCachingIDType IDType) |
| Mark a specific cache or caches for a specific report as expired. | |
| HRESULT | FileCachePath ([out, retval] BSTR *pVal) |
| The path where the cache files is stored. | |
| HRESULT | GetAllCacheInfos ([in] EnumDSSReportCacheInfoOptions CacheInfoOption,[in, optional, defaultvalue(3)] Int32 CacheTypeOption,[in, optional, defaultvalue(1)] Int32 FromCacheNo,[in, optional, defaultvalue(-1)] Int32 ToCacheNo,[out, retval] IDSSReportCacheInfos ppCacheInfos) |
| Get the report cache information for all the caches. | |
| HRESULT | GetCacheInfo ([in] BSTR CacheID,[in] EnumDSSReportCacheInfoOptions CacheInfoOption,[in, optional] BSTR Version,[out, retval] IDSSReportCacheInfo ppCacheInfo) |
| Get the report cache information for a specific cache. | |
| HRESULT | GetCacheInfos ([in] BSTR ReportID,[in] EnumDSSReportCacheInfoOptions CacheInfoOption,[out, retval] IDSSReportCacheInfos ppCacheInfos) |
| Get the report cache information for the caches of a specific report. | |
| HRESULT | GetClusterCacheHitCounts ([in] BSTR iServerName,[out] Int32 *opSize,[out] SAFEARRAY(BSTR)*oppReportNames,[out] SAFEARRAY(BSTR)*oppCacheIDs,[out] SAFEARRAY(Int32)*oppHitCounts) |
| Get a list of reportid, cacheid and non-zero hitcount for all caches in one cluster server. | |
| HRESULT | GetGeneralCacheInfo ([out, retval] IDSSGeneralCacheInfo ppInfo) |
| Get general monitoring information of caches. | |
| HRESULT | InvalidateAllCaches ([in, optional, defaultvalue(3)] Int32 CacheTypeOption) |
| Mark all the caches in the LKUPTable as Invalid and reset the LKUPTable. | |
| HRESULT | InvalidateCache ([in] BSTR ID,[in] EnumDSSCachingIDType IDType) |
| Mark a specific cache or caches for a specific report as Invalid. | |
| HRESULT | LoadAllCaches () |
| Load all the caches into memory from files. | |
| HRESULT | LoadCache ([in] BSTR ID,[in] EnumDSSCachingIDType IDType) |
| Load a specific cache or caches for a specific report into memory. | |
| HRESULT | MaxCacheCount ([out, retval] Int32 *pVal) |
| The maximum number of caches allowed (in memory or on disk) in the cache pool hash table. | |
| HRESULT | MaxMemoryConsumption ([out, retval] Int32 *pVal) |
| The maximum size of memory can be allocated for in-memory caches. | |
| HRESULT | SwapPolicy ([out, retval] EnumDSSCacheSwapPolicy *pVal) |
| When the total size of in-memory caches reaches the MaxMemoryConsumption limit, and a new cache needs to be added or a cache needs to be loaded into memory from disk, we use the policy to decide which existing caches to be swapped out of memory in the case of report caching.. | |
| HRESULT | UnloadAllCaches () |
| Back up all the dirty caches in the memory into files. | |
| HRESULT | UnloadCache ([in] BSTR ID,[in] EnumDSSCachingIDType IDType) |
| Backup a specific cache or caches for a specific report if it is dirty and remove it from memory. | |
| HRESULT | UpdateAllCaches ([in, optional, defaultvalue(3)] Int32 CacheTypeOption) |
| Re-execute and update all the caches of specified type. | |
| HRESULT | UpdateCache ([in] BSTR ID,[in] EnumDSSCachingIDType IDType) |
| Re-execute and update a specified cache or caches for a specific report. | |
|
|
Back up all the dirty caches in the memory into files. (Dirty means that the cache has been updated/created, or the cacheinfo has been changed since last back up.) The Dirty flags are cleared but the caches are still kept in memory.. Back up all the dirty caches in the memory into files. (Dirty means that the cache has been updated/created, or the cacheinfo has been changed since last back up.) The Dirty flags are cleared but the caches are still kept in memory.
|
|
||||||||||||
|
Backup a specific cache or caches for a specific report if it is dirty. (Dirty means that the cache has been updated/created, or the cacheinfo has been changed since last back up.) The Dirty flags are cleared but the cache is still kept in memory.. Backup a specific cache or caches for a specific report if it is dirty. (Dirty means that the cache has been updated/created, or the cacheinfo has been changed since last back up.) The Dirty flags are cleared but the cache is still kept in memory.
|
|
|
Backup the cache pool into a file.
|
|
|
Backup the cache lookup table into a file.
|
|
|
Read Only. The lifetime of caches. Caches are marked as Expired and cannot be hit by later executions.. Get the cache life time.
|
|
|
The number of buckets in the cache lookup and cache pool hash table.. The number of buckets in the cache lookup and cache pool hash table. This is a read-only property.
|
|
|
The number of buckets a lock locks. (Not implemented yet.). This is a read-only property.
|
|
|
Delete all the caches with status expired and/or invalid and no inbox references from the cache lookup table. Delete all the related cache files. The option parameter is used as a flag to decide if caches with non-matching versioned objects are to be deleted also.. Delete all the caches with status expired and/or invalid and no inbox references from the cache lookup table. Delete all the related cache files. The option parameter is used as a flag to decide if caches with non-matching versioned objects are to be deleted also.
|
|
|
Create cache for a specific report. Not implemented yet.
|
|
|
Delete all the caches of the specified type from cache pool in memory. And delete all the related cache files. Reset LKUPTable if the type option is for all matching caches.. Delete all the caches of the specified type from cache pool in memory. And delete all the related cache files. Reset LKUPTable if the type option is for all matching caches.
|
|
||||||||||||
|
Delete a specific cache or caches for a specific report from the cache pool. Delete the cache files if exit.. Delete a specific cache or caches for a specific report from the cache pool. Delete the cache files if exit.
|
|
|
Mark all the caches in the cache lkuptable as expired/invalid and reset the lkuptable. Delete those caches with no inbox references.. Mark all the caches in the cache lkuptable as expired/invalid and reset the lkuptable. Delete those caches with no inbox references.
|
|
||||||||||||
|
Mark a specific cache or caches for a specific report as expired. Delete it if it has no inbox references.. Mark a specific cache or caches for a specific report as expired. Delete it if it has no inbox references.
|
|
|
The path where the cache files is stored. If the user did not specify it (leave empty), the default is the working directory of the DSSServer.. The path where cache files are stored. User can specify this path in Project Reference. This setting then comes to Data Source for ReportCacheManager to pickup. If it is not specified, the path of the parent data source is used. /Caches is used if there is not any still. This is a read-only property.
|
|
||||||||||||||||||||||||
|
Get the report cache information for all the caches. Take two options for CacheInfoOption (Detail/Browse) and CacheTypeOption (Matching cache or Result set or both). It also takes 2 other parameters specifying the start and end caches to enable incremental fetch.
|
|
||||||||||||||||||||
|
Get the report cache information for a specific cache. Take an option for Cache Info Option (Detail/Browse).
|
|
||||||||||||||||
|
Get the report cache information for the caches of a specific report. Take an option for Cache Info Option (Detail/Browse).
|
|
||||||||||||||||||||||||
|
Get a list of reportid, cacheid and non-zero hitcount for all caches in one cluster server. This method is for IDSSReportCacheAdmin interface only.
|
|
|
Get general monitoring information of caches.
|
|
|
Mark all the caches in the LKUPTable as Invalid and reset the LKUPTable. Delete those caches with no inbox references from disk and cachepool also.
|
|
||||||||||||
|
Mark a specific cache or caches for a specific report as Invalid. Delete it if it has no inbox references.. Mark a specific cache or caches for a specific report as Invalid. Delete it if it has no inbox references.
|
|
|
Load all the caches into memory from files. Limited by MaxMemoryConsumption.. Load all the caches into memory from files. Limited by MaxMemoryConsumption.
|
|
||||||||||||
|
Load a specific cache or caches for a specific report into memory. Apply swap policy if cache memory is running out.. Load a specific cache or caches for a specific report into memory. Apply swap policy if cache memory is running out.
|
|
|
The maximum number of caches allowed (in memory or on disk) in the cache pool hash table. This is a read-only property.
|
|
|
The maximum size of memory can be allocated for in-memory caches. It is an estimate in K bytes. This is a read-only property.
|
|
|
When the total size of in-memory caches reaches the MaxMemoryConsumption limit, and a new cache needs to be added or a cache needs to be loaded into memory from disk, we use the policy to decide which existing caches to be swapped out of memory in the case of report caching.. Read only. When the total size of in-memory caches reaches the MaxMemoryConsumption limit and a new cache need to be added or a cache needs to be loaded into memory from disk, we use the policy to decide which existing caches to be swapped out of memory in the case of report caching.
|
|
|
Back up all the dirty caches in the memory into files. (Dirty means that the cache has been updated/created since last back up.) All the caches are removed from memory.. Back up all the dirty caches in the memory into files. (Dirty means that the cache has been updated/created since last back up.) All the caches are removed from memory.
|
|
||||||||||||
|
Backup a specific cache or caches for a specific report if it is dirty and remove it from memory. (Dirty means that the cache has been updated/created, or the cacheinfo has been changed since last back up.). Backup a specific cache or caches for a specific report if it is dirty and remove it from memory. (Dirty means that the cache has been updated/created, or the cacheinfo was changed since last back up.)
|
|
|
Re-execute and update all the caches of specified type. (Not implemented.). Re-execute and update all the caches of the specifed type. Not implemented yet.
|
|
||||||||||||
|
Re-execute and update a specified cache or caches for a specific report. (for now 12/10/1999, same as BackupCache). Re-execute and update a specified cache or caches for a specific report.(for now 12/10/1999, same as BackupCache)
|