Examples of takeLastEventNode()


Examples of org.jboss.cache.eviction.Region.takeLastEventNode()

            null, fqn, Boolean.FALSE});
      interceptor.invoke(mc);

      assertEquals(0, cache.get(fqn).numAttributes());
      Region region = regionManager.getRegion(fqn.toString());
      EvictedEventNode event = region.takeLastEventNode();
      assertEquals(EvictedEventNode.REMOVE_NODE_EVENT, event.getEvent());
      assertEquals(fqn, event.getFqn());
      assertNull(region.takeLastEventNode());

      mc = MethodCallFactory.create(MethodDeclarations.removeNodeMethodLocal, new Object[]{
View Full Code Here

Examples of org.jboss.cache.eviction.Region.takeLastEventNode()

      assertEquals(0, cache.get(fqn).numAttributes());
      Region region = regionManager.getRegion(fqn.toString());
      EvictedEventNode event = region.takeLastEventNode();
      assertEquals(EvictedEventNode.REMOVE_NODE_EVENT, event.getEvent());
      assertEquals(fqn, event.getFqn());
      assertNull(region.takeLastEventNode());

      mc = MethodCallFactory.create(MethodDeclarations.removeNodeMethodLocal, new Object[]{
            null, fqn, Boolean.FALSE
      });
      interceptor.invoke(mc);
View Full Code Here

Examples of org.jboss.cache.eviction.Region.takeLastEventNode()

            null, fqn, Boolean.FALSE
      });
      interceptor.invoke(mc);

      assertNull(cache.get(fqn));
      event = region.takeLastEventNode();
      assertEquals(EvictedEventNode.REMOVE_NODE_EVENT, event.getEvent());
      assertEquals(fqn, event.getFqn());
      assertNull(region.takeLastEventNode());
   }
View Full Code Here

Examples of org.jboss.cache.eviction.Region.takeLastEventNode()

      assertNull(cache.get(fqn));
      event = region.takeLastEventNode();
      assertEquals(EvictedEventNode.REMOVE_NODE_EVENT, event.getEvent());
      assertEquals(fqn, event.getFqn());
      assertNull(region.takeLastEventNode());
   }

   public void testRemoveElement() throws Throwable
   {
      Fqn fqn = Fqn.fromString("/a/b/c");
View Full Code Here

Examples of org.jboss.cache.eviction.Region.takeLastEventNode()

            new Object[]{null, fqn, "a", Boolean.FALSE});
      interceptor.invoke(mc);

      assertNull(cache.get(fqn, "a"));
      Region region = regionManager.getRegion(fqn.toString());
      EvictedEventNode event = region.takeLastEventNode();
      assertEquals(EvictedEventNode.REMOVE_ELEMENT_EVENT, event.getEvent());
      assertEquals(fqn, event.getFqn());
      assertEquals(1, event.getElementDifference());
      assertNull(region.takeLastEventNode());
View Full Code Here

Examples of org.jboss.cache.eviction.Region.takeLastEventNode()

      Region region = regionManager.getRegion(fqn.toString());
      EvictedEventNode event = region.takeLastEventNode();
      assertEquals(EvictedEventNode.REMOVE_ELEMENT_EVENT, event.getEvent());
      assertEquals(fqn, event.getFqn());
      assertEquals(1, event.getElementDifference());
      assertNull(region.takeLastEventNode());

      mc = MethodCallFactory.create(MethodDeclarations.removeKeyMethodLocal,
            new Object[]{null, fqn, "b", Boolean.FALSE});
      interceptor.invoke(mc);
View Full Code Here

Examples of org.jboss.cache.eviction.Region.takeLastEventNode()

      mc = MethodCallFactory.create(MethodDeclarations.removeKeyMethodLocal,
            new Object[]{null, fqn, "b", Boolean.FALSE});
      interceptor.invoke(mc);

      assertNull(cache.get(fqn, "b"));
      event = region.takeLastEventNode();
      assertEquals(EvictedEventNode.REMOVE_ELEMENT_EVENT, event.getEvent());
      assertEquals(fqn, event.getFqn());
      assertEquals(1, event.getElementDifference());
      assertNull(region.takeLastEventNode());
View Full Code Here

Examples of org.jboss.cache.eviction.Region.takeLastEventNode()

      assertNull(cache.get(fqn, "b"));
      event = region.takeLastEventNode();
      assertEquals(EvictedEventNode.REMOVE_ELEMENT_EVENT, event.getEvent());
      assertEquals(fqn, event.getFqn());
      assertEquals(1, event.getElementDifference());
      assertNull(region.takeLastEventNode());

      mc = MethodCallFactory.create(MethodDeclarations.removeKeyMethodLocal,
            new Object[]{null, fqn, "b", Boolean.FALSE});
      interceptor.invoke(mc);
View Full Code Here

Examples of org.jboss.cache.eviction.Region.takeLastEventNode()

      mc = MethodCallFactory.create(MethodDeclarations.removeKeyMethodLocal,
            new Object[]{null, fqn, "b", Boolean.FALSE});
      interceptor.invoke(mc);

      event = region.takeLastEventNode();
      assertNull(event);
   }

   public void testMixedEvent() throws Throwable
   {
View Full Code Here

Examples of org.jboss.cache.eviction.Region.takeLastEventNode()

      MethodCall mc = MethodCallFactory.create(MethodDeclarations.putDataMethodLocal, new Object[]{null, fqn, data, Boolean.FALSE});
      interceptor.invoke(mc);

      Region region = regionManager.getRegion(fqn.toString());
      EvictedEventNode event = region.takeLastEventNode();

      assertEquals(EvictedEventNode.ADD_NODE_EVENT, event.getEvent());
      assertEquals(fqn, event.getFqn());
      assertEquals(100, event.getElementDifference());
      assertNull(region.takeLastEventNode());
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.