|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gentics.cr.portlet.cache.NavigationCache
public class NavigationCache
The Class NavigationCache.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Field Summary | |
|---|---|
private org.apache.jcs.JCS |
cache
The cache. |
private Set<String> |
cachedKeys
The cached keys. |
static String |
CACHEZONE_KEY
Key for the cache zone. |
private com.gentics.cr.CRConfig |
crConf
The cr conf. |
private static NavigationCache |
instance
The instance. |
private static org.apache.log4j.Logger |
log
The Constant log. |
private static int |
MIN_SCHEDULE_TIME
The min schedule time. |
private static String |
PROPERTY_FILENAME
The Constant PROPERTY_FILENAME. |
private ScheduledExecutorService |
scheduler
The scheduler. |
private Long |
scheduleTime
The schedule time. |
private static int |
SECONDS_BEFORE_CACHE
The seconds before cache. |
private static int |
THREADS
The cores. |
| Constructor Summary | |
|---|---|
private |
NavigationCache()
Instantiates a new navigation cache. |
| Method Summary | |
|---|---|
com.gentics.cr.CRResolvableBean |
fetchAndCacheNavigationObject(String startFolder,
String childfilter,
com.gentics.cr.RequestProcessor rp,
com.gentics.cr.CRRequest req)
Fetch and cache navigation object. |
static NavigationCache |
get()
Gets the Navigation Cache instance. |
private com.gentics.cr.CRResolvableBean |
getCachedNavigationObject(String cacheKey)
Gets the cached navigation object. |
com.gentics.cr.CRResolvableBean |
getCachedNavigationObject(String startFolder,
String childFilter)
Gets the cached navigation object. |
private static String |
getCacheKey(String startFolder,
String childFilter)
Gets the cache key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final org.apache.log4j.Logger log
private static int MIN_SCHEDULE_TIME
private static int SECONDS_BEFORE_CACHE
private static int THREADS
public static final String CACHEZONE_KEY
private static final String PROPERTY_FILENAME
private static NavigationCache instance
private org.apache.jcs.JCS cache
private Long scheduleTime
private ScheduledExecutorService scheduler
private Set<String> cachedKeys
private com.gentics.cr.CRConfig crConf
| Constructor Detail |
|---|
private NavigationCache()
| Method Detail |
|---|
public static NavigationCache get()
public com.gentics.cr.CRResolvableBean getCachedNavigationObject(String startFolder,
String childFilter)
startFolder - the start folderchildFilter - the child filter
private com.gentics.cr.CRResolvableBean getCachedNavigationObject(String cacheKey)
cacheKey - the cache key
public com.gentics.cr.CRResolvableBean fetchAndCacheNavigationObject(String startFolder,
String childfilter,
com.gentics.cr.RequestProcessor rp,
com.gentics.cr.CRRequest req)
startFolder - the start folderchildfilter - the childfilterrp - the rpreq - the req
private static String getCacheKey(String startFolder,
String childFilter)
startFolder - the start folderchildFilter - the child filter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||