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 forResource
objects. AResource
is 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.Object
doLoad(CacheHint hint)
This abstract method is called by the load method to perform the actual loading.protected java.lang.Object
getKey(CacheHint hint)
Returns the key of the cache element based on the hint.protected java.lang.String
getPath(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:FileCacheBase
This 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:
doLoad
in classFileCacheBase
- Throws:
CacheException
- Since:
- MicroStrategy Web 9.0.0
-
getKey
protected java.lang.Object getKey(CacheHint hint)
Description copied from class:FileCacheBase
Returns the key of the cache element based on the hint. In this scenario, the hint itself is the key.- Overrides:
getKey
in 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:
getPath
in classFileCacheBase
-
-