Examples of TreeCache


Examples of de.odysseus.el.tree.TreeCache

    } else {
      treeCache = cacheProvider.createCache(EXPRESSION_CACHE);
    }

    final Cache<String, Tree> resolvedTreeCache = treeCache;
    return new TreeCache() {
      public Tree get(String expression) {
        return resolvedTreeCache.getElement(expression);
      }

      public void put(String expression, Tree tree) {
View Full Code Here

Examples of org.apache.curator.framework.recipes.cache.TreeCache

    }


    public void init() throws Exception {
        if (active.compareAndSet(false, true)) {
            treeCache = new TreeCache(curator, zooKeeperPath, true, false, true, treeCacheExecutor);
            treeCache.start(TreeCache.StartMode.NORMAL);
            treeCache.getListenable().addListener(treeListener);
            LOG.info("Started listening to ZK path " + zooKeeperPath);
        }
    }
View Full Code Here

Examples of org.fnlp.nlp.parser.dep.TreeCache

    isEnFilter = b;

  }

  public static void readDepCache(String file) throws IOException{
    treeCache = new TreeCache();
    treeCache.read(file)
  }
View Full Code Here

Examples of org.jboss.cache.TreeCache

   {
      log.info("Starting JBoss Treecache 1.x");

      try
      {
         cache = new TreeCache();
         new PropertyConfigurator().configure(cache, getConfigurationAsStream());
         cache.createService();
         cache.startService();

      }
View Full Code Here

Examples of org.jboss.cache.TreeCache

    cacheManagerFactoryBean.setConfigLocation(new ClassPathResource(
        configLocationPath));

    cacheManagerFactoryBean.createCacheManager();

    TreeCache cacheManager = getCacheManager();
    assertEquals(12345l, cacheManager.getSyncReplTimeout());
  }
View Full Code Here

Examples of org.jboss.cache.TreeCache

  /**
   * @see AbstractCacheManagerFactoryBean#createCacheManager()
   */
  protected void createCacheManager() throws Exception {
    treeCache = new TreeCache();

    Resource configLocation = getConfigLocation();

    if (configLocation != null) {
      PropertyConfigurator configurator = new PropertyConfigurator();
View Full Code Here

Examples of org.jboss.cache.TreeCache

  private void putInTreeCache(Object key, Object value) throws Exception {
    treeCache.put(cachingModel.getNode(), key, value);
  }

  private void setUpTreeCache() throws Exception {
    treeCache = new TreeCache();
    startTreeCache();
    cacheFacade.setCacheManager(treeCache);
  }
View Full Code Here

Examples of org.jboss.cache.TreeCache

    startCache();
  }
 
  private static void startCache() throws Exception
  {
    treeCache = new TreeCache();
    listener = new DeleteOnEvictTreeCacheListener( treeCache );
    treeCache.addTreeCacheListener( listener );
    FtpFileCacheTestUtil.createTreeCache( treeCache, FtpFileCacheTestUtil.getCacheConfigFile() );
    treeCache.start();
  }
View Full Code Here

Examples of org.jboss.cache.TreeCache

    this.config = config;
   
    InputStream in = null;
    try
    {
      treeCache = new TreeCache();
      in = getConfigInputStream( this.config );
      PropertyConfigurator configurator = new PropertyConfigurator();
      configurator.configure( treeCache, in );
    }
    catch ( Exception e )
View Full Code Here

Examples of org.jboss.cache.TreeCache

   {
      log.debug("Starting JBoss Treecache 1.x");

      try
      {
         cache = new TreeCache();
         new PropertyConfigurator().configure(cache, getConfigurationAsStream());
         cache.createService();
         cache.startService();

      }
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.