|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dotmarketing.cache.LiveCache
public class LiveCache
This cache is used to know when an asset is live, it doesn't store real valuable info in the cache
| Constructor Summary | |
|---|---|
LiveCache()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
addToLiveAssetToCache(Versionable asset)
This method adds the given asset uri to the cache using the host id + identifier uri as the key This method also send a signal to the cluster to invalidate key cluster wide |
static void |
clearCache(java.lang.String hostId)
|
static java.lang.String[] |
getGroups()
|
static java.lang.String |
getPathFromCache(java.lang.String URI,
Host host)
This method return the asset uri when the asset exists in the cache |
static java.lang.String |
getPathFromCache(java.lang.String URI,
java.lang.String hostId)
This method return the asset uri when the asset exists in the cache |
static java.lang.String |
getPrimaryGroup()
|
static void |
removeAssetFromCache(Versionable asset)
This method removes the asset key from the cache and send an invalidation message to the cluster when the cms is in cluster |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LiveCache()
| Method Detail |
|---|
public static java.lang.String addToLiveAssetToCache(Versionable asset)
public static java.lang.String getPathFromCache(java.lang.String URI,
Host host)
throws DotStateException,
DotDataException,
DotSecurityException
URI - host -
DotSecurityException
DotDataException
DotStateException
public static java.lang.String getPathFromCache(java.lang.String URI,
java.lang.String hostId)
throws DotStateException,
DotDataException,
DotSecurityException
URI - hostId -
DotSecurityException
DotDataException
DotStateExceptionpublic static void removeAssetFromCache(Versionable asset)
asset - public static void clearCache(java.lang.String hostId)
public static java.lang.String[] getGroups()
public static java.lang.String getPrimaryGroup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||