Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.opencms.template.cache
Class CmsUriLocator  view CmsUriLocator download CmsUriLocator.java

java.lang.Object
  extended bycom.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.


Field Summary
private  CmsLruCache m_uris
          A hashtable to store the uri's.
 
Constructor Summary
(package private) CmsUriLocator(int cacheSize)
          The default constructor for this locator.
 
Method Summary
 void clearCache()
          Clears the cache compleatly.
 void deleteUris(java.util.Vector invalidUris)
          Deletes all invalid uris from cache.
 CmsUri get(CmsUriDescriptor desc)
          Gets a uri from this locator.
 java.util.Vector getCacheInfo()
          Gets the Information of max size and size for the cache.
 void put(CmsUriDescriptor desc, CmsUri uri)
          Adds a new Uri to this locator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_uris

private CmsLruCache m_uris
A hashtable to store the uri's.

Constructor Detail

CmsUriLocator

CmsUriLocator(int cacheSize)
The default constructor for this locator.

Method Detail

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.