Examples of DataContainer


Examples of org.infinispan.container.DataContainer

      builder.append("]");
      return builder.toString();
   }

   public static Set getInternalKeys(Cache cache) {
      DataContainer dataContainer = TestingUtil.extractComponent(cache, DataContainer.class);
      Set keys = new HashSet();
      for (CacheEntry entry : dataContainer) {
         keys.add(entry.getKey());
      }
      return keys;
View Full Code Here

Examples of org.infinispan.container.DataContainer

      }
      return keys;
   }

   public static Collection getInternalValues(Cache cache) {
      DataContainer dataContainer = TestingUtil.extractComponent(cache, DataContainer.class);
      Collection values = new ArrayList();
      for (CacheEntry entry : dataContainer) {
         values.add(entry.getValue());
      }
      return values;
View Full Code Here

Examples of org.infinispan.container.DataContainer

      if (o == null) return "null";
      return o.getClass().getSimpleName();
   }

   public static void assertIsInL1(Cache<?, ?> cache, Object key) {
      DataContainer dc = cache.getAdvancedCache().getDataContainer();
      InternalCacheEntry ice = dc.get(key);
      assert ice != null : "Entry for key [" + key + "] should be in L1 on cache at [" + addressOf(cache) + "]!";
      assert !(ice instanceof ImmortalCacheEntry) : "Entry for key [" + key + "] should have a lifespan on cache at [" + addressOf(cache) + "]!";
   }
View Full Code Here

Examples of org.infinispan.container.DataContainer

      assert ice != null : "Entry for key [" + key + "] should be in L1 on cache at [" + addressOf(cache) + "]!";
      assert !(ice instanceof ImmortalCacheEntry) : "Entry for key [" + key + "] should have a lifespan on cache at [" + addressOf(cache) + "]!";
   }

   public static void assertIsNotInL1(Cache<?, ?> cache, Object key) {
      DataContainer dc = cache.getAdvancedCache().getDataContainer();
      InternalCacheEntry ice = dc.get(key);
      assert ice == null : "Entry for key [" + key + "] should not be in data container at all on cache at [" + addressOf(cache) + "]!";
   }
View Full Code Here

Examples of org.infinispan.container.DataContainer

      assert ice == null : "Entry for key [" + key + "] should not be in data container at all on cache at [" + addressOf(cache) + "]!";
   }

   public static void assertIsInContainerImmortal(Cache<?, ?> cache, Object key) {
      Log log = LogFactory.getLog(BaseDistFunctionalTest.class);
      DataContainer dc = cache.getAdvancedCache().getDataContainer();
      InternalCacheEntry ice = dc.get(key);
      if (ice == null) {
         String msg = "Entry for key [" + key + "] should be in data container on cache at [" + addressOf(cache) + "]!";
         log.fatal(msg);
         assert false : msg;
      }
View Full Code Here

Examples of org.jboss.cache.DataContainer

      assertEquals(69, m.get(g));
   }

   private String printDetails(Cache c)
   {
      DataContainer dc = ((CacheInvocationDelegate) c).getDataContainer();
      return ((DataContainerImpl) dc).printDetails();
   }
View Full Code Here

Examples of org.jboss.cache.DataContainer

    * @return a String representation of the cache
    */
   public static String printCacheDetails(Cache c)
   {
      // internal cast
      DataContainer ci = ((CacheInvocationDelegate) c).getDataContainer();
      return ci.printDetails();
   }
View Full Code Here

Examples of org.jboss.cache.DataContainer

    * @return a String representation of the cache
    */
   public static String printCacheDetails(Cache c)
   {
      // internal cast
      DataContainer ci = ((CacheInvocationDelegate) c).getDataContainer();
      return ci.printDetails();
   }
View Full Code Here

Examples of org.jboss.cache.DataContainer

      System.out.println(printDetails(cache));
   }

   private String printDetails(Cache c)
   {
      DataContainer dc = ((CacheInvocationDelegate) c).getDataContainer();
      return ((DataContainerImpl) dc).printDetails();
   }
View Full Code Here

Examples of org.jboss.serial.objectmetamodel.DataContainer

            {

                if (useJRunit) ThreadLocalBenchmark.openBench(myTest.getClass().getName(),metaData);
                original = System.currentTimeMillis();
            }
            DataContainer container = new DataContainer(false,buffer);
            ObjectOutput out = container.getOutput();
            out.writeObject(myTest);
            container.flush();

            ObjectInput input = container.getInput();

            Object value = input.readObject();

            if (!(myTest instanceof String[]))
              {
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.