java.lang.Object
com.opencms.template.cache.CmsUriLocator
- public class CmsUriLocator
- extends java.lang.Object
The UriLocator is used to receive CmsUri-Objects. It is the Cache for these
CmsUri-Objects. The CmsUri-Objects are stored in memory or - if they are not
used a long time written to an external database. The locator manages all the
reading, writing and management of the CmsUri's.
|
Constructor Summary |
(package private) |
CmsUriLocator(int cacheSize)
The default constructor for this locator. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_uris
private CmsLruCache m_uris
- A hashtable to store the uri's.
CmsUriLocator
CmsUriLocator(int cacheSize)
- The default constructor for this locator.
put
public void put(CmsUriDescriptor desc,
CmsUri uri)
- Adds a new Uri to this locator.
get
public CmsUri get(CmsUriDescriptor desc)
- Gets a uri from this locator.
deleteUris
public void deleteUris(java.util.Vector invalidUris)
- Deletes all invalid uris from cache.
clearCache
public void clearCache()
- Clears the cache compleatly.
getCacheInfo
public java.util.Vector getCacheInfo()
- Gets the Information of max size and size for the cache.