Package org.objectweb.perseus.cache.api

Examples of org.objectweb.perseus.cache.api.CacheAttributeController


  }
 
  public Collection getMemoryCacheEntries() throws Exception {
      Component cm = getSubComponent(speedo, MEMORY_CACHE_PATH);
    Component cmC = getSubComponent(cm, "cache-manager");
    CacheAttributeController cacheAttr = (CacheAttributeController)
      Fractal.getAttributeController(cmC);
    return cacheAttr.getCurrentEntryIdentifiers();
  }
View Full Code Here


    if (!conf) {
        return;
    }
      logger.log(BasicLevel.INFO, sb.toString());
    Component cmC = getSubComponent(cm, "cache-manager");
    CacheAttributeController cacheAttr = (CacheAttributeController)
      Fractal.getAttributeController(cmC);
    if (cacheSize > -2) {
      cacheAttr.setMaxObjects(cacheSize);
    }
    if (autoCleanSize != null) {
      cacheAttr.setAutoCleanSize(autoCleanSize);
    }
    if (autoCleanThreshold != null) {
      cacheAttr.setAutoCleanThreshold(autoCleanThreshold);
    }
    if (policy != null) {
      String tempName = null;
      if (CACHE_REPLCAEMENT_LRU.equalsIgnoreCase(policy)) {
      } else if (CACHE_REPLCAEMENT_MRU.equalsIgnoreCase(policy)) {
View Full Code Here

    }

    public void addQueryMBean() throws Exception {
        Component cache = FractalHelper.getSubComponent(
                speedo, AbstractSpeedo.QUERY_CACHE_PATH, logger);
        CacheAttributeController ca = (CacheAttributeController)
          Fractal.getAttributeController(
                FractalHelper.getSubComponent(cache, "cache-manager", logger));
        UnbindManager um = (UnbindManager) cache.getFcInterface("unbind-manager");
        CacheManager cm = (CacheManager) cache.getFcInterface("cache-manager");
        QueryManagerAttribute qma = (QueryManagerAttribute)
View Full Code Here

    }
   
    public void addCacheMBeans() throws Exception {
        Component cache = FractalHelper.getSubComponent(
                speedo, AbstractSpeedo.MEMORY_CACHE_PATH, logger);
        CacheAttributeController ca = (CacheAttributeController)
          Fractal.getAttributeController(
                FractalHelper.getSubComponent(cache, "cache-manager", logger));
        UnbindManager um = (UnbindManager) cache.getFcInterface("unbind-manager");
        CacheManager cm = (CacheManager) cache.getFcInterface("cache-manager");
        Cache c = new Cache(ca, um, cm, getPMF(), getJormFactory());
View Full Code Here

TOP

Related Classes of org.objectweb.perseus.cache.api.CacheAttributeController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.