Class ResourceCache
- java.lang.Object
-
- com.microstrategy.utils.cache.CacheBase
-
- com.microstrategy.utils.cache.CustomizationsAwareCache
-
- com.microstrategy.utils.cache.FileCacheBase
-
- com.microstrategy.web.app.utils.cache.ResourceCache
-
- All Implemented Interfaces:
Cache,java.util.Observer
public class ResourceCache extends FileCacheBase
This is a cache forResourceobjects. AResourceis basically a wrapper of a file from which you can retrieve the file contents as a string or as a DOM Document.- Since:
- MicroStrategy Web 7.5.1
-
-
Field Summary
-
Fields inherited from class com.microstrategy.utils.cache.CacheBase
alias, DEFAULT_FILE_REFRESH_TIME, DEFAULT_REFRESH_TIME, DEFAULT_STATISTIC_TIME, DEFAULT_SYS_TIMEOUT, DEFAULT_USER_TIMEOUT, NO_KEY, NO_REFRESH, NO_STATISTIC, NO_TIMEOUT
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectdoLoad(CacheHint hint)This abstract method is called by the load method to perform the actual loading.protected java.lang.ObjectgetKey(CacheHint hint)Returns the key of the cache element based on the hint.protected java.lang.StringgetPath(CacheHint hint)Returns the path for the given hint.-
Methods inherited from class com.microstrategy.utils.cache.FileCacheBase
load, reLoad
-
Methods inherited from class com.microstrategy.utils.cache.CustomizationsAwareCache
update
-
Methods inherited from class com.microstrategy.utils.cache.CacheBase
canUpdate, clear, close, configure, contains, delete, get, getName, getRefreshTime, getStatisticTime, getTimeout, getWithoutRefresh, logStatistic, onHintClose, onTimer, put, refresh, remove, save, setRefreshTime, setStatisticTime, setTimeout, size, store, unLoad
-
-
-
-
Method Detail
-
doLoad
protected java.lang.Object doLoad(CacheHint hint) throws CacheException
Description copied from class:FileCacheBaseThis abstract method is called by the load method to perform the actual loading. In this method, subclasses needs to load the file and parse it, and return the object they actually want cached.- Specified by:
doLoadin classFileCacheBase- Throws:
CacheException- Since:
- MicroStrategy Web 9.0.0
-
getKey
protected java.lang.Object getKey(CacheHint hint)
Description copied from class:FileCacheBaseReturns the key of the cache element based on the hint. In this scenario, the hint itself is the key.- Overrides:
getKeyin classFileCacheBase- Parameters:
hint- the hint object.- Returns:
- the key
-
getPath
protected java.lang.String getPath(CacheHint hint)
Returns the path for the given hint. This implementation uses the path value.- Overrides:
getPathin classFileCacheBase
-
-