|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.TimerTask
org.deegree_impl.tools.Cache_Impl
org.deegree_impl.services.wms.WMSCache
class for caching the results of GetMap and GetFeatureInfo requests. GetMap requests containing a reference to a SLD document won't be written into the cache.
| Field Summary | |
private int |
actualSize
|
private static WMSCache |
cache
|
private int |
maxSize
|
| Fields inherited from class org.deegree_impl.tools.Cache_Impl |
data, lastCallTime |
| Fields inherited from class java.util.TimerTask |
|
| Constructor Summary | |
private |
WMSCache(int maxSize)
Creates a new instance of WMSCache |
| Method Summary | |
OGCWebServiceResponse |
get(WMSGetFeatureInfoRequest identifier)
gets an entry from the cache. |
OGCWebServiceResponse |
get(WMSGetLegendGraphicRequest identifier)
gets an entry from the cache. |
OGCWebServiceResponse |
get(WMSGetMapRequest identifier)
gets an entry from the cache. |
static WMSCache |
getInstance(int maxSize)
realizes the singelton pattern to access/create an instance of a WMSCache |
void |
push(OGCWebServiceRequest identifier,
java.lang.Object data)
pushes a new entry to the cache. |
| Methods inherited from class org.deegree_impl.tools.Cache_Impl |
clear, deleteOldest, get, getCurrentSize, getMaxEntries, getMaxLifeTime, getUpdateInterval, push, remove, run, setMaxEntries, setMaxLifeTime, setUpdateInterval, toString |
| Methods inherited from class java.util.TimerTask |
cancel, scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static WMSCache cache
private int actualSize
private int maxSize
| Constructor Detail |
private WMSCache(int maxSize)
maxSize - maximum cache size in KB| Method Detail |
public static WMSCache getInstance(int maxSize)
maxSize - maximum cache size in KB
public OGCWebServiceResponse get(WMSGetMapRequest identifier)
identifier - key of a entry of the cachepublic OGCWebServiceResponse get(WMSGetLegendGraphicRequest identifier)
identifier - key of a entry of the cachepublic OGCWebServiceResponse get(WMSGetFeatureInfoRequest identifier)
identifier - key of a entry of the cache
public void push(OGCWebServiceRequest identifier,
java.lang.Object data)
identifier - identifier key of a entry of the cachedata - data object to be stored in the cache
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||