com.dotmarketing.cache
Class VirtualLinksCache

java.lang.Object
  extended by com.dotmarketing.cache.VirtualLinksCache

public class VirtualLinksCache
extends java.lang.Object

This cache is used to mapped the virtual link path to the redirection path like /test path points to http://www.yahoo.com

Author:
David & Salvador, Jason Tesser

Constructor Summary
VirtualLinksCache()
           
 
Method Summary
static void addPathToCache(VirtualLink vl)
          This maps the given virtual link in the cache also sends a cache invalidation message to force the other peers in the cluster to re-map the key as well
static void clearCache()
           
static java.lang.String[] getGroups()
           
static java.lang.String getPathFromCache(java.lang.String url)
          Find the given url in the cache
static java.lang.String getPrimaryGroup()
           
static void mapAllVirtualLinks()
           
static void removePathFromCache(java.lang.String url)
          This method removes the given virtual link path from the cache and also sends an invalidation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VirtualLinksCache

public VirtualLinksCache()
Method Detail

getPathFromCache

public static java.lang.String getPathFromCache(java.lang.String url)
Find the given url in the cache

Parameters:
url -
Returns:
The redirection path used by the cms to properly redirect the virtual link

addPathToCache

public static void addPathToCache(VirtualLink vl)
This maps the given virtual link in the cache also sends a cache invalidation message to force the other peers in the cluster to re-map the key as well

Parameters:
vl -

removePathFromCache

public static void removePathFromCache(java.lang.String url)
This method removes the given virtual link path from the cache and also sends an invalidation

Parameters:
url -

mapAllVirtualLinks

public static void mapAllVirtualLinks()

clearCache

public static void clearCache()

getGroups

public static java.lang.String[] getGroups()

getPrimaryGroup

public static java.lang.String getPrimaryGroup()


Copyright © 2013 dotCMS Inc. All Rights Reserved.