Package org.jboss.cache.eviction

Examples of org.jboss.cache.eviction.RegionManager


      boolean move = tgtFqn.isChildOrEquals(BuddyManager.BUDDY_BACKUP_SUBTREE_FQN)
                     && !tferFqn.isChildOrEquals(tgtFqn);
      // If it is an integration, calculate how many levels of offset
      int offset = move ? tgtFqn.size() - tferFqn.size() : 0;
     
      RegionManager erm = cache.getEvictionRegionManager();
      if (erm != null)
      {
         Region[] regions = erm.getRegions();
         if (regions == null || regions.length == 0)
            erm = null;
      }
      integrateStateTransferChildren(target, offset, in, erm);
     
View Full Code Here


     
      cache1.put("/a/b/c", "key", "value");
     
      cache2.startService();
     
      RegionManager erm = cache2.getEvictionRegionManager();
      Region region = erm.getRegion(Fqn.ROOT);
      // We expect events for /a, /a/b and /a/b/c
      assertEquals("Saw the expected number of node events", 3, region.nodeEventQueueSize());
   }
View Full Code Here

      if (attrs != null)
         target.put(attrs, true);
      else
         target.clear();
     
      RegionManager erm = cache.getEvictionRegionManager();
      if (erm != null)
      {
         Region[] regions = erm.getRegions();
         if (regions == null || regions.length == 0)
            erm = null;
      }
      integrateStateTransferChildren(target, in, erm);
     
View Full Code Here

      if (attrs != null)
         target.put(attrs, true);
      else
         target.clear();
     
      RegionManager erm = cache.getEvictionRegionManager();
      if (erm != null)
      {
         Region[] regions = erm.getRegions();
         if (regions == null || regions.length == 0)
            erm = null;
      }
      integrateStateTransferChildren(target, in, erm);
     
View Full Code Here

           
            target.setRecursiveTreeCacheInstance(cache)// need to set this at root and set it recursively
           
            if (children != null)
            {
               RegionManager erm = cache.getEvictionRegionManager();
               if (erm != null)
               {
                  Region[] regions = erm.getRegions();
                  if (regions == null || regions.length == 0)
                     erm = null;
               }
              
               if (erm != null)
View Full Code Here

   private RegionManager regionManager;

   public void setUp() throws Exception
   {
      super.setUp();
      regionManager = new RegionManager();
      LRUConfiguration config = new LRUConfiguration();
      regionManager.createRegion("/a/b/c", new DummyEvictionPolicy(), config);
      regionManager.createRegion("/a/b/d", new DummyEvictionPolicy(), config);
      regionManager.createRegion("/a/b", new DummyEvictionPolicy(), config);
View Full Code Here

     
      cache1.put("/a/b/c", "key", "value");
     
      cache2.startService();
     
      RegionManager erm = cache2.getEvictionRegionManager();
      Region region = erm.getRegion(Fqn.ROOT);
      // We expect events for /a, /a/b and /a/b/c
      assertEquals("Saw the expected number of node events", 3, region.nodeEventQueueSize());
   }
View Full Code Here

TOP

Related Classes of org.jboss.cache.eviction.RegionManager

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.