Examples of clearData()


Examples of org.jboss.cache.Node.clearData()

   }

   public void removeData(Fqn fqn) throws Exception
   {
      Node node = delegate.getRoot().getChild(fqn);
      if (node != null) node.clearData();
   }

   protected void setDelegateCache(CacheSPI delegate)
   {
      this.delegate = delegate;
View Full Code Here

Examples of org.jboss.cache.Node.clearData()

                  case TcpCacheOperations.REMOVE_DATA:
                     fqn = (Fqn) input.readObject();
                     node = c.getRoot().getChild(fqn);
                     if (node != null)
                     {
                        node.clearData();
                        output.writeObject(true);
                     }
                     else
                     {
                        output.writeObject(false);
View Full Code Here

Examples of org.jboss.cache.Node.clearData()

               case PUT_KEY_VALUE:
                  c.put(m.getFqn(), m.getKey(), m.getValue());
                  break;
               case REMOVE_DATA:
                  Node n = c.getRoot().getChild(m.getFqn());
                  if (n != null) n.clearData();
                  break;
               case REMOVE_KEY_VALUE:
                  c.remove(m.getFqn(), m.getKey());
                  break;
               case REMOVE_NODE:
View Full Code Here

Examples of org.jboss.cache.Node.clearData()

   }

   public void removeData(Fqn fqn) throws Exception
   {
      Node node = delegate.getRoot().getChild(fqn);
      if (node != null) node.clearData();
   }

   protected void setDelegateCache(CacheSPI delegate)
   {
      this.delegate = delegate;
View Full Code Here

Examples of org.jboss.cache.Node.clearData()

      assertNotNull(n);
      assertDataNotLoaded(parent);

      // should not load node but should change isDataLoaded to true
      // will trigger a removedata() though
      n.clearData();

      assertDataLoaded(parent);
      verify(mockCacheLoader);
   }
View Full Code Here

Examples of org.jboss.cache.Node.clearData()

                  case TcpCacheOperations.REMOVE_DATA:
                     fqn = (Fqn) input.readObject();
                     node = c.getRoot().getChild(fqn);
                     if (node != null)
                     {
                        node.clearData();
                        output.writeObject(true);
                     }
                     else
                     {
                        output.writeObject(false);
View Full Code Here

Examples of org.jboss.cache.Node.clearData()

               case PUT_KEY_VALUE:
                  c.put(m.getFqn(), m.getKey(), m.getValue());
                  break;
               case REMOVE_DATA:
                  Node n = c.getRoot().getChild(m.getFqn());
                  if (n != null) n.clearData();
                  break;
               case REMOVE_KEY_VALUE:
                  c.remove(m.getFqn(), m.getKey());
                  break;
               case REMOVE_NODE:
View Full Code Here

Examples of org.jboss.cache.Node.clearData()

   }

   public void removeData(Fqn fqn) throws Exception
   {
      Node node = delegate.getRoot().getChild(fqn);
      if (node != null) node.clearData();
   }

   protected void setDelegateCache(CacheSPI delegate)
   {
      this.delegate = delegate;
View Full Code Here

Examples of org.jboss.cache.Node.clearData()

   public void testLazyLoadingOnNodeRemove() throws Exception
   {
      cache.getTransactionManager().begin();
      Node node = cache.getRoot().getChild(parent);
      node.clearData();
      assert node.getData().size() == 0 : "Node should have removed data";
      WorkspaceNode n = getWorkspaceNode(parent);
      assert !n.isChildrenLoaded() : "Should not have loaded children";
      cache.getTransactionManager().commit();
   }
View Full Code Here

Examples of org.jboss.cache.Node.clearData()

      map.put("keyA", "valA");
      map.put("keyB", "valB");
      map.put("keyC", "valC");
      assertEquals(map, loader.get(key));
      Node n = cache.getRoot().getChild(key);
      n.clearData();
      assertEquals(Collections.emptyMap(), loader.get(key));
   }

   public void testReplaceAll() throws Exception
   {
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.