com.dotmarketing.logConsole.model
Class LogMapperCacheImpl

java.lang.Object
  extended by com.dotmarketing.logConsole.model.LogMapperCacheImpl
All Implemented Interfaces:
Cachable, LogMapperCache

public class LogMapperCacheImpl
extends java.lang.Object
implements LogMapperCache

Created by Jonathan Gamba. Date: 5/21/12 Time: 4:26 PM


Field Summary
protected  java.lang.String[] groupNames
           
protected  java.lang.String primaryGroup
           
 
Constructor Summary
LogMapperCacheImpl()
           
 
Method Summary
 void clearCache()
           
 java.util.List<LogMapperRow> get()
          Return all the records stored on cache for this primary group
 java.lang.String[] getGroups()
          Use to get all groups the concrete cache belongs to
 java.lang.String getPrimaryGroup()
          Use to get the primary group/region for the concrete cache
 void put(java.util.List<LogMapperRow> logMapperRows)
          Puts a LogMapperRow collection in a cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

primaryGroup

protected final java.lang.String primaryGroup
See Also:
Constant Field Values

groupNames

protected final java.lang.String[] groupNames
Constructor Detail

LogMapperCacheImpl

public LogMapperCacheImpl()
Method Detail

get

public java.util.List<LogMapperRow> get()
                                 throws DotCacheException
Return all the records stored on cache for this primary group

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

put

public void put(java.util.List<LogMapperRow> logMapperRows)
         throws DotCacheException
Puts a LogMapperRow collection in a cache.

Specified by:
put in interface LogMapperCache
Parameters:
logMapperRows -
Throws:
DotCacheException

getPrimaryGroup

public java.lang.String getPrimaryGroup()
Description copied from interface: Cachable
Use to get the primary group/region for the concrete cache

Specified by:
getPrimaryGroup in interface Cachable
Returns:

getGroups

public java.lang.String[] getGroups()
Description copied from interface: Cachable
Use to get all groups the concrete cache belongs to

Specified by:
getGroups in interface Cachable
Returns:

clearCache

public void clearCache()
Specified by:
clearCache in interface Cachable


Copyright © 2013 dotCMS Inc. All Rights Reserved.