com.dotmarketing.business
Class DotJBCacheAdministratorLegacyImpl

java.lang.Object
  extended by com.dotmarketing.business.DotJBCacheAdministratorLegacyImpl
All Implemented Interfaces:
DotCacheAdministrator

public class DotJBCacheAdministratorLegacyImpl
extends java.lang.Object
implements DotCacheAdministrator

The legacy cache administrator will invalidate cache entries within a cluster on a put where the non legacy one will not.

Version:
1.6.5
Author:
Jason Tesser

Field Summary
 
Fields inherited from interface com.dotmarketing.business.DotCacheAdministrator
ROOT_GOUP
 
Constructor Summary
DotJBCacheAdministratorLegacyImpl()
           
 
Method Summary
 void flushAll()
          Flush the entire cache immediately.
 void flushAlLocalOnlyl()
          Flushes all cache locally
 void flushGroup(java.lang.String group)
          Flushes all items that belong to the specified group.
 void flushGroupLocalOnly(java.lang.String group)
          Flushes all items that belong to the specified group on the local server only
 java.lang.Object get(java.lang.String key, java.lang.String group)
          Get an object from the cache
 java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getCacheStatsList()
           
 java.lang.Class getImplementationClass()
           
 DotCacheAdministrator getImplementationObject()
           
 org.jgroups.JChannel getJGroupsChannel()
           
 java.util.Set<java.lang.String> getKeys(java.lang.String group)
          Returns all keys within the group
 void put(java.lang.String key, java.lang.Object content, java.lang.String group)
          Puts an object in a cache This will create journal entries for other servers in a clustered environment.
 void remove(java.lang.String key, java.lang.String group)
          Remove an object from the cache.
 void removeLocalOnly(java.lang.String key, java.lang.String group)
          Remove an object from the cache on the local server only
 void shutdown()
          Should be called on shutdown of the dotcms
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DotJBCacheAdministratorLegacyImpl

public DotJBCacheAdministratorLegacyImpl()
Method Detail

flushAll

public void flushAll()
Description copied from interface: DotCacheAdministrator
Flush the entire cache immediately.

Specified by:
flushAll in interface DotCacheAdministrator

flushGroup

public void flushGroup(java.lang.String group)
Description copied from interface: DotCacheAdministrator
Flushes all items that belong to the specified group.

Specified by:
flushGroup in interface DotCacheAdministrator

flushGroupLocalOnly

public void flushGroupLocalOnly(java.lang.String group)
Description copied from interface: DotCacheAdministrator
Flushes all items that belong to the specified group on the local server only

Specified by:
flushGroupLocalOnly in interface DotCacheAdministrator

get

public java.lang.Object get(java.lang.String key,
                            java.lang.String group)
                     throws DotCacheException
Description copied from interface: DotCacheAdministrator
Get an object from the cache

Specified by:
get in interface DotCacheAdministrator
Returns:
Throws:
DotCacheException

put

public void put(java.lang.String key,
                java.lang.Object content,
                java.lang.String group)
Description copied from interface: DotCacheAdministrator
Puts an object in a cache This will create journal entries for other servers in a clustered environment.

Specified by:
put in interface DotCacheAdministrator

remove

public void remove(java.lang.String key,
                   java.lang.String group)
Description copied from interface: DotCacheAdministrator
Remove an object from the cache. This will create journal entries for other servers in a clustered environment.

Specified by:
remove in interface DotCacheAdministrator

removeLocalOnly

public void removeLocalOnly(java.lang.String key,
                            java.lang.String group)
Description copied from interface: DotCacheAdministrator
Remove an object from the cache on the local server only

Specified by:
removeLocalOnly in interface DotCacheAdministrator

flushAlLocalOnlyl

public void flushAlLocalOnlyl()
Description copied from interface: DotCacheAdministrator
Flushes all cache locally

Specified by:
flushAlLocalOnlyl in interface DotCacheAdministrator

getKeys

public java.util.Set<java.lang.String> getKeys(java.lang.String group)
Description copied from interface: DotCacheAdministrator
Returns all keys within the group

Specified by:
getKeys in interface DotCacheAdministrator
Returns:

shutdown

public void shutdown()
Description copied from interface: DotCacheAdministrator
Should be called on shutdown of the dotcms

Specified by:
shutdown in interface DotCacheAdministrator

getJGroupsChannel

public org.jgroups.JChannel getJGroupsChannel()
Specified by:
getJGroupsChannel in interface DotCacheAdministrator

getCacheStatsList

public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getCacheStatsList()
Specified by:
getCacheStatsList in interface DotCacheAdministrator

getImplementationClass

public java.lang.Class getImplementationClass()
Specified by:
getImplementationClass in interface DotCacheAdministrator

getImplementationObject

public DotCacheAdministrator getImplementationObject()
Specified by:
getImplementationObject in interface DotCacheAdministrator


Copyright © 2013 dotCMS Inc. All Rights Reserved.