fr.paris.lutece.portal.service.html
Class XmlTransformerCacheService

java.lang.Object
  extended by fr.paris.lutece.portal.service.html.XmlTransformerCacheService
All Implemented Interfaces:
CacheableService, LuteceService

public class XmlTransformerCacheService
extends java.lang.Object
implements CacheableService

XmlTransformerCacheService

Since:
v 3.0

Constructor Summary
XmlTransformerCacheService()
           
 
Method Summary
 void enableCache(boolean bEnable)
          Enable the cache
 int getCacheSize()
          Gets the number of item currently in the cache.
 java.lang.String getInfos()
          Returns cache infos
 java.util.List<java.lang.String> getKeys()
          Gets all keys in the cache
 int getMaxElements()
          Returns maximum elements accepted into the cache
 long getMemorySize()
          Return the memory size
 java.lang.String getName()
          Returns the Service name
 long getTimeToLive()
          Returns the time to live for objects in the cache
static void init()
           
 boolean isCacheEnable()
          Gets the current cache status.
 void resetCache()
          Reset the cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlTransformerCacheService

public XmlTransformerCacheService()
Method Detail

init

public static void init()

getName

public java.lang.String getName()
Returns the Service name

Specified by:
getName in interface LuteceService
Returns:
The name as a String

isCacheEnable

public boolean isCacheEnable()
Gets the current cache status.

Specified by:
isCacheEnable in interface CacheableService
Returns:
true if enable, otherwise false

getCacheSize

public int getCacheSize()
Gets the number of item currently in the cache.

Specified by:
getCacheSize in interface CacheableService
Returns:
the number of item currently in the cache.

resetCache

public void resetCache()
Reset the cache.

Specified by:
resetCache in interface CacheableService

enableCache

public void enableCache(boolean bEnable)
Enable the cache

Specified by:
enableCache in interface CacheableService
Parameters:
bEnable - true to enable, false to disable

getKeys

public java.util.List<java.lang.String> getKeys()
Gets all keys in the cache

Specified by:
getKeys in interface CacheableService
Returns:
The List

getMaxElements

public int getMaxElements()
Returns maximum elements accepted into the cache

Specified by:
getMaxElements in interface CacheableService
Returns:
The max elements

getTimeToLive

public long getTimeToLive()
Returns the time to live for objects in the cache

Specified by:
getTimeToLive in interface CacheableService
Returns:
The time to live in seconds

getMemorySize

public long getMemorySize()
Return the memory size

Specified by:
getMemorySize in interface CacheableService
Returns:
the memory size

getInfos

public java.lang.String getInfos()
Returns cache infos

Specified by:
getInfos in interface CacheableService
Returns:
cache infos


Copyright © 2011 Mairie de Paris. All Rights Reserved.