public class WebTMLCache
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
WebTMLCache.CacheEntry |
static class |
WebTMLCache.CacheKey |
class |
WebTMLCache.PreloaderListener |
class |
WebTMLCache.PreloaderTask |
class |
WebTMLCache.PreloadEvent |
class |
WebTMLCache.RefreshTask |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CACHEPRELOADTASK_NAME |
static int |
MAX_ATTEMPTS |
static java.lang.String |
SERVEROPTION_CACHE_PRELOAD_INTERVAL |
static java.lang.String |
SERVEROPTION_CACHE_PRELOAD_REFRESHINTERVAL |
static int |
SERVEROPTIONDEFAULT_CACHE_PRELOAD_INTERVAL |
static int |
SERVEROPTIONDEFAULT_CACHE_PRELOAD_REFRESHINTERVAL |
Constructor and Description |
---|
WebTMLCache(WGACore core,
de.innovationgate.wga.config.WGAConfiguration config) |
Modifier and Type | Method and Description |
---|---|
void |
addCachePreloader(CachePreloader preloader,
de.innovationgate.webgate.api.WGDatabase db,
java.lang.String cacheId,
java.lang.String cacheKey) |
void |
clear() |
void |
clearForDatabase(java.lang.String dbKey) |
void |
close() |
boolean |
configure(de.innovationgate.wga.config.WGAConfiguration config) |
void |
dump(java.io.Writer out) |
de.innovationgate.utils.cache.Cache |
getCache() |
WebTMLCache.CacheEntry |
getCacheEntry(java.lang.String dbKey,
java.lang.String tagid,
java.lang.String key) |
int |
getCapacity() |
long |
getEntriesCount() |
WebTMLCache.CacheEntry |
getPreloadCacheEntry(java.lang.String dbKey,
java.lang.String tagid,
java.lang.String key) |
long |
getPreloadEntriesCount() |
java.util.concurrent.ConcurrentLinkedQueue<WebTMLCache.PreloadEvent> |
getPreloadEvents() |
int |
getRegisteredPreloadCacheCount(de.innovationgate.webgate.api.WGDatabase db) |
int |
getRemainingPreloadInitEventsCount() |
int |
getUninitializedPreloadCacheCount(de.innovationgate.webgate.api.WGDatabase db) |
WebTMLCache.CacheEntry |
putCacheEntry(java.lang.String dbKey,
java.lang.String tagid,
java.lang.String key,
java.lang.String content,
java.util.Date cacheDate,
int latency) |
WebTMLCache.CacheEntry |
putPreloadCacheEntry(java.lang.String dbKey,
java.lang.String tagid,
java.lang.String key,
java.lang.String content,
java.util.Date cacheDate,
int latency) |
void |
removeCache(java.lang.String dbKey,
java.lang.String tagid,
java.lang.String key) |
void |
runPreloadCacheTask() |
void |
setCapacity(int capacity) |
public static final java.lang.String CACHEPRELOADTASK_NAME
public static final java.lang.String SERVEROPTION_CACHE_PRELOAD_INTERVAL
public static final int SERVEROPTIONDEFAULT_CACHE_PRELOAD_INTERVAL
public static final java.lang.String SERVEROPTION_CACHE_PRELOAD_REFRESHINTERVAL
public static final int SERVEROPTIONDEFAULT_CACHE_PRELOAD_REFRESHINTERVAL
public static final int MAX_ATTEMPTS
public WebTMLCache(WGACore core, de.innovationgate.wga.config.WGAConfiguration config) throws de.innovationgate.utils.cache.CacheException, de.innovationgate.wga.modules.options.OptionConversionException
de.innovationgate.utils.cache.CacheException
de.innovationgate.wga.modules.options.OptionConversionException
public java.util.concurrent.ConcurrentLinkedQueue<WebTMLCache.PreloadEvent> getPreloadEvents()
public void clear() throws de.innovationgate.utils.cache.CacheException
de.innovationgate.utils.cache.CacheException
public void runPreloadCacheTask()
public void clearForDatabase(java.lang.String dbKey) throws de.innovationgate.utils.cache.CacheException
de.innovationgate.utils.cache.CacheException
public void close() throws de.innovationgate.utils.cache.CacheException
de.innovationgate.utils.cache.CacheException
public void dump(java.io.Writer out) throws java.io.IOException
java.io.IOException
public WebTMLCache.CacheEntry getCacheEntry(java.lang.String dbKey, java.lang.String tagid, java.lang.String key) throws de.innovationgate.utils.cache.CacheException
de.innovationgate.utils.cache.CacheException
public WebTMLCache.CacheEntry getPreloadCacheEntry(java.lang.String dbKey, java.lang.String tagid, java.lang.String key) throws de.innovationgate.utils.cache.CacheException
de.innovationgate.utils.cache.CacheException
public void removeCache(java.lang.String dbKey, java.lang.String tagid, java.lang.String key) throws de.innovationgate.utils.cache.CacheException
de.innovationgate.utils.cache.CacheException
public long getEntriesCount()
public long getPreloadEntriesCount()
public boolean configure(de.innovationgate.wga.config.WGAConfiguration config) throws de.innovationgate.utils.cache.CacheException, de.innovationgate.wga.modules.options.OptionConversionException
de.innovationgate.utils.cache.CacheException
de.innovationgate.wga.modules.options.OptionConversionException
public WebTMLCache.CacheEntry putCacheEntry(java.lang.String dbKey, java.lang.String tagid, java.lang.String key, java.lang.String content, java.util.Date cacheDate, int latency) throws de.innovationgate.utils.cache.CacheException
de.innovationgate.utils.cache.CacheException
public WebTMLCache.CacheEntry putPreloadCacheEntry(java.lang.String dbKey, java.lang.String tagid, java.lang.String key, java.lang.String content, java.util.Date cacheDate, int latency) throws de.innovationgate.utils.cache.CacheException
de.innovationgate.utils.cache.CacheException
public int getCapacity()
public void setCapacity(int capacity) throws de.innovationgate.utils.cache.CacheException
de.innovationgate.utils.cache.CacheException
public de.innovationgate.utils.cache.Cache getCache()
public void addCachePreloader(CachePreloader preloader, de.innovationgate.webgate.api.WGDatabase db, java.lang.String cacheId, java.lang.String cacheKey)
public int getUninitializedPreloadCacheCount(de.innovationgate.webgate.api.WGDatabase db)
public int getRegisteredPreloadCacheCount(de.innovationgate.webgate.api.WGDatabase db)
public int getRemainingPreloadInitEventsCount()