Examples of CacheManager


Examples of org.apache.shiro.cache.CacheManager

        if (this.authenticationCache == null) {

            log.trace("No authenticationCache instance set.  Checking for a cacheManager...");

            CacheManager cacheManager = getCacheManager();

            if (cacheManager != null) {
                String cacheName = getAuthenticationCacheName();
                log.debug("CacheManager [{}] configured.  Building authentication cache '{}'", cacheManager, cacheName);
                this.authenticationCache = cacheManager.getCache(cacheName);
            }
        }

        return this.authenticationCache;
    }
View Full Code Here

Examples of org.emftrace.quarc.core.cache.CacheManager

         
          new GSSQueryProcessor(query, accessLayer, (GSS) getInput(), query.getAssignedConstraintsSet(), true).run();

    }
   
    cacheManager = new CacheManager((GSS) getInput(),
        query.getQueryResultSet(), accessLayer);
   
    if (query.getQueryResultSet() != null)
    cacheManager.initCache();
View Full Code Here

Examples of org.exolab.castor.jdo.CacheManager

    private void expire(final boolean byType) {
        log("expiring cache...");

        Object[] identityArray = null;
        try {
            CacheManager cacheManager = _db.getCacheManager();
            if (byType) {
                Class[] typeArray = new Class[2];
                typeArray[0] = ManyGroup.class;
                typeArray[1] = ManyPerson.class;
                cacheManager.expireCache(typeArray);
            } else {
                identityArray = new Object[4];
                identityArray[0] = new Integer(_groupAId);
                identityArray[1] = new Integer(_groupBId);
                identityArray[2] = new Integer(_groupCId);
                identityArray[3] = new Integer(_groupDId);
                cacheManager.expireCache(ManyGroup.class, identityArray);
            }
        } catch (Exception e) {
            log("expireCache: exception encountered clearing cache: " + e.getMessage());
        }
    }
View Full Code Here

Examples of org.infinispan.manager.CacheManager

   }

   protected CacheManager createCacheManager(Properties properties) throws CacheException {
      try {
         String configLoc = PropertiesHelper.getString(INFINISPAN_CONFIG_RESOURCE_PROP, properties, DEF_INFINISPAN_CONFIG_RESOURCE);
         CacheManager manager = new DefaultCacheManager(configLoc, false);
         String globalStats = PropertiesHelper.extractPropertyValue(INFINISPAN_GLOBAL_STATISTICS_PROP, properties);
         if (globalStats != null) {
            manager.getGlobalConfiguration().setExposeGlobalJmxStatistics(Boolean.parseBoolean(globalStats));
         }
         manager.start();
         return manager;
      } catch (IOException e) {
         throw new CacheException("Unable to create default cache manager", e);
      }
   }
View Full Code Here

Examples of org.jaggeryjs.scriptengine.cache.CacheManager

                            String.valueOf(MultitenantConstants.SUPER_TENANT_ID),
                            "<<" +  name + ">>",
                            '/' + path.substring(0, endIndex),
                            path.substring(endIndex));
                }
                CacheManager cacheManager = new CacheManager(null);

                sctx.setSecurityDomain(new RhinoSecurityDomain() {
                    @Override
                    public CodeSource getCodeSource() throws ScriptException {
                        try {
                            URL url = new File(fileName).getCanonicalFile().toURI().toURL();
                            return new CodeSource(url, (Certificate[]) null);
                        } catch (MalformedURLException e) {
                            throw new ScriptException(e);
                        } catch (IOException e) {
                            throw new ScriptException(e);
                        }
                    }
                });
                sctx.setSourceModifiedTime(1);

                Script cachedScript = cacheManager.getScriptObject(reader, sctx);
                if (cachedScript == null) {
                    cacheManager.cacheScript(reader, sctx);
                    cachedScript = cacheManager.getScriptObject(reader, sctx);
                }
                script.setScript(cachedScript);
                module.addScript(script);
            } catch (FileNotFoundException e) {
                String msg = "Error executing script. Script cannot be found, name : " + name + ", path : " + path;
View Full Code Here

Examples of org.jboss.cache.CacheManager

  private transient org.jboss.cache.Cache cacheStore;
  private volatile boolean destroyed = false;
 

  public JBossCacheFactory(String name, Object cm) throws Exception {
    CacheManager cachemanager = (CacheManager)cm;
    this.cacheStore = cachemanager.getCache(name, true);
  }
View Full Code Here

Examples of org.jboss.cache.CacheManager

      {
         String inUseProtocolStack = UnitTestConfigurationFactory.getEmptyConfiguration().getClusterConfig();
         replListeners = new ReplicationListener[getNumCacheManagers()];
         for (int i =0; i < cacheManagers.size(); i++)
         {
            CacheManager cm = cacheManagers.get(i);
            Cache<Object, Object> cache = cm.getCache(getCacheConfigName(), true);
            amendCacheBeforeStartup(cache);
            if (cache.getCacheStatus() != CacheStatus.STARTED)
            {
               cache.getConfiguration().setClusterConfig(inUseProtocolStack);
               cache.start();
View Full Code Here

Examples of org.jboss.ha.cachemanager.CacheManager

   public void testPojoCacheIntegration() throws Exception
   {
      log.debug("+++ testPojoCacheIntegration()");
     
      CacheManager cacheManager = getCacheManager();

      // Register a cache
      Configuration config = new Configuration();
      // JBAS-4097 -- don't use a TransactionManagerLookup that will
      // bind DummyTransactionManager into JNDI, as that will screw
      // up other tests
      config.setTransactionManagerLookupClass(MockTransactionManagerLookup.class.getName());
      config.setCacheMode("REPL_SYNC");
      PojoCache pc = PojoCacheFactory.createCache(config, false);
     
      cacheManager.registerPojoCache(pc, ClusteredSingleSignOn.DEFAULT_CACHE_NAME);
     
      // Build up an SSO infrastructure based on LOCAL_ADDRESS        
      JBossCacheSSOClusterManager localSSOManager = new JBossCacheSSOClusterManager();
     
      MockSSOValve localValve = new MockSSOValve(mbeanServer);
View Full Code Here

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

                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)
          Fractal.getAttributeController(
                FractalHelper.getSubComponent(
                        speedo, AbstractSpeedo.QUERY_MANAGER, logger));
        Query qm = new Query(ca, um, cm, qma);
View Full Code Here

Examples of org.pirkaengine.core.serialize.CacheManager

        context.setCachePath("tmp/cache");
        CacheSerializerImpl serializer = new CacheSerializerImpl();
        serializer.setContext(context);
        CacheDeserializerImpl deserializer = new CacheDeserializerImpl();
        deserializer.setContext(context);
        target = new CacheManager(serializer, deserializer);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.