java.lang.Object | |
↳ | com.microstrategy.utils.cache.CacheRegistry |
Singleton CacheRegistry
class keeps track of all caches
in the JVM.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void | configureCache(String name, Properties prop) | ||||||||||
void | disableSoftRef() | ||||||||||
Cache |
getCache(String name)
Returns cache by its name.
| ||||||||||
Collection<Cache> |
getCaches()
Returns all the caches in the registry.
| ||||||||||
synchronized int |
getCleanupTime()
Gets cleanup time in seconds.
| ||||||||||
int |
getDefaultFileRefreshTime()
Returns the interval of time to be used by default to refresh a Cache
that caches file contents.
| ||||||||||
int |
getDefaultRefreshTime()
Gets default refreshing time in seconds.
| ||||||||||
int |
getDefaultStatisticTime()
Gets default statistic time in seconds.
| ||||||||||
int |
getDefaultSysTimeout()
Returns default cache timeout in seconds.
| ||||||||||
int |
getDefaultUserTimeout()
Returns fefault cache timeout in seconds.
| ||||||||||
static CacheRegistry |
getInstance()
Returns the singleton instance.
| ||||||||||
synchronized static void |
init(String fileName)
Initializes the cache framework from the specified properties file.
| ||||||||||
boolean |
isCacheAvailable(String name)
Returns whether the cache with the specified name is available.
| ||||||||||
boolean | isSoftRefEnabled() | ||||||||||
synchronized void |
setCleanupTime(int value)
Sets cleanup time in seconds.
| ||||||||||
void |
setDefaultFileRefreshTime(int value)
Sets the interval of time to be used by default to refresh a Cache
that caches file contents.
| ||||||||||
void |
setDefaultRefreshTime(int value)
Sets default refreshing time in seconds.
| ||||||||||
void |
setDefaultStatisticTime(int value)
Sets default statistic time in seconds.
| ||||||||||
void |
setDefaultSysTimout(int value)
Sets default cache timeout in seconds.
| ||||||||||
void |
setDefaultUserTimout(int value)
Sets default cache timeout in seconds.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Returns cache by its name.
name | cache name |
---|
IllegalArgumentException | If cache with the specified name can not be found. |
---|
Returns all the caches in the registry.
Cache
objects.
Gets cleanup time in seconds. This property controls how often the cache registry will send onTimer event to all registered caches.
Returns the interval of time to be used by default to refresh a Cache that caches file contents.
Gets default refreshing time in seconds.
Gets default statistic time in seconds.
Returns default cache timeout in seconds.
Returns fefault cache timeout in seconds.
Returns the singleton instance.
Initializes the cache framework from the specified properties file.
fileName | properties file |
---|
Returns whether the cache with the specified name is available.
name | cache name |
---|
true
when it is available, otherwise false
will be returned.Sets cleanup time in seconds. This property controls how often the cache registry will send onTimer event to all registered caches.
value | new cleanup time in seconds. |
---|
Sets the interval of time to be used by default to refresh a Cache that caches file contents.
value | new default refreshing time in seconds. |
---|
Sets default refreshing time in seconds.
value | new default refreshing time in seconds. |
---|
Sets default statistic time in seconds.
value | new default statistic time in seconds. |
---|
Sets default cache timeout in seconds.
value | new default cache timeout in seconds. |
---|
Sets default cache timeout in seconds.
value | new default cache timeout in seconds. |
---|