cachebox.system.cache

Class AbstractCacheBoxProvider

lucee.Component
    extended by cachebox.system.cache.AbstractCacheBoxProvider
Direct Known Subclasses:
CacheBoxProvider , MockProvider

An abstract CacheBox Provider with basic/boring functionality built

Class Attributes:
  • output : false
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
  • serializable : false
  •  
    Constructor Summary
    init()
          Simple Constructor.
    Method Summary
    void clearStatistics()
         Clear the cache statistics.
    any<CacheFactory> getCacheFactory()
         Get the cache factory reference this cache provider belongs to.
    any getCacheID()
         The unique cache ID number.
    any getConfiguration()
         Get the structure of configuration parameters for the cache.
    any getEventManager()
         Get this cache managers event listner manager.
    any getMemento()
         Return the cache provider's instance memento.
    any getName()
         Get the name of this cache.
    any<ICacheStats> getStats()
         Get the cache statistics object as cachebox.
    private any getUtil()
         Create and return a util object.
    any isEnabled()
         Returns a flag indicating if the cache is ready for operation.
    any isReportingEnabled()
         Returns a flag indicating if the cache has reporting enabled.
    void setCacheFactory(any<CacheFactory> cacheFactory)
         Set the cache factory reference for this cache.
    void setConfiguration(any configuration)
         Override the entire configuration structure for this cache.
    void setEventManager(any eventManager)
         Set the event manager for this cache.
    void setName(any name)
         Set the cache name.
    private void statusCheck()
         Check if the cache is operational, else throw exception.
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()

    Simple Constructor


    Method Detail

    clearStatistics

    public void clearStatistics()

    Clear the cache statistics


    getCacheFactory

    public any<CacheFactory> getCacheFactory()

    Get the cache factory reference this cache provider belongs to


    getCacheID

    public any getCacheID()

    The unique cache ID number


    getConfiguration

    public any getConfiguration()

    Get the structure of configuration parameters for the cache


    getEventManager

    public any getEventManager()

    Get this cache managers event listner manager


    getMemento

    public any getMemento()

    Return the cache provider's instance memento


    getName

    public any getName()

    Get the name of this cache


    getStats

    public any<ICacheStats> getStats()

    Get the cache statistics object as cachebox.system.cache.util.ICacheStats


    getUtil

    private any getUtil()

    Create and return a util object


    isEnabled

    public any isEnabled()

    Returns a flag indicating if the cache is ready for operation


    isReportingEnabled

    public any isReportingEnabled()

    Returns a flag indicating if the cache has reporting enabled


    setCacheFactory

    public void setCacheFactory(any<CacheFactory> cacheFactory)

    Set the cache factory reference for this cache

    Parameters:
    cacheFactory

    setConfiguration

    public void setConfiguration(any configuration)

    Override the entire configuration structure for this cache

    Parameters:
    configuration - The configuration structure

    setEventManager

    public void setEventManager(any eventManager)

    Set the event manager for this cache

    Parameters:
    eventManager - The event manager class

    setName

    public void setName(any name)

    Set the cache name

    Parameters:
    name - The cache name

    statusCheck

    private void statusCheck()

    Check if the cache is operational, else throw exception