Package org.jboss.cache

Examples of org.jboss.cache.TreeCache$MessageListenerAdaptor


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

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

      }
View Full Code Here


    cacheManagerFactoryBean.setConfigLocation(new ClassPathResource(
        configLocationPath));

    cacheManagerFactoryBean.createCacheManager();

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

  /**
   * @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

  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

    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

    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

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

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

      }
View Full Code Here

      cache.stop();
   }

   protected void setUp() throws Exception
   {
      cache = new TreeCache();
      cache.setNodeLockingScheme("OPTIMISTIC");
      cache.setTransactionManagerLookupClass(DummyTransactionManagerLookup.class.getName());
      cache.startService();
      tm = cache.getTransactionManager();
   }
View Full Code Here

    protected void setUp() throws Exception
    {
        // force a tear down if the test runner didn't run one before (happens in IDEA)
        if (cache1 != null || cache2 != null) tearDown();

        cache1 = new TreeCache("test", null, 1000);
        cache1.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
        cache1.setNodeLockingScheme( nodeLockingScheme );
        cache1.setCacheMode( cacheMode );
        cache1.startService();

        cache2 = new TreeCache("test", null, 1000);
        cache2.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
        cache2.setNodeLockingScheme(nodeLockingScheme);
        cache2.setCacheMode(cacheMode);
        cache2.startService();
View Full Code Here

   protected TreeCacheMBean createCache(String cacheID) throws Exception
   {
      if (caches.get(cacheID) != null)
      throw new IllegalStateException(cacheID + " already created");
     
      TreeCacheMBean tree=new TreeCache();
      PropertyConfigurator config=new PropertyConfigurator();
      config.configure(tree, configFile);
     
      tree.createService();
      tree.startService();
     
      caches.put(cacheID, tree);
     
      return tree;
   }
View Full Code Here

TOP

Related Classes of org.jboss.cache.TreeCache$MessageListenerAdaptor

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.