Examples of RegionManager


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

Examples of org.jboss.cache.eviction.RegionManager

     
      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

Examples of org.jboss.cache.eviction.RegionManager

      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

Examples of org.jboss.cache.eviction.RegionManager

      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

Examples of org.jboss.cache.eviction.RegionManager

           
            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

Examples of org.jboss.cache.eviction.RegionManager

   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

Examples of org.jboss.cache.eviction.RegionManager

     
      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

Examples of org.jboss.cache.marshall.RegionManager

    * Returns the region manager for this TreeCache.
    */
   public RegionManager getRegionManager()
   {
      if (regionManager_ == null)
         regionManager_ = new RegionManager();
      return regionManager_;
   }
View Full Code Here

Examples of org.jboss.cache.marshall.RegionManager

      Map stateMap = new HashMap();
      byte[] state = null;
      if (cache.getUseRegionBasedMarshalling())
      {
         RegionManager rm = cache.getRegionManager();
         Region[] regions = rm.getRegions();
         if (regions.length > 0)
         {
            for (int i = 0; i < regions.length; i++)
            {
               Fqn f = Fqn.fromString(regions[i].getFqn());
View Full Code Here

Examples of org.ofbiz.webapp.region.RegionManager

        if (regionFile == null) {
            Debug.logWarning("No " + "/WEB-INF/regions.xml" + " file found in this webapp", module);
        } else {
            Debug.logVerbose("Loading regions from XML file in: " + regionFile, module);
            regionManager = new RegionManager(regionFile);
        }
    }
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.