Package org.jboss.cache.mvcc

Examples of org.jboss.cache.mvcc.ReadCommittedNode


   }

   @Override
   protected boolean nodeDoesNotExist(InvocationContext ctx, Fqn fqn)
   {
      ReadCommittedNode node = (ReadCommittedNode) ctx.lookUpNode(fqn);
      return node == null || node.isNullNode();
   }
View Full Code Here


    * @return a Set<Object> of child names, for a given Fqn, or null if the Fqn refers to a node that does not exist.
    */
   @SuppressWarnings("unchecked")
   public Object perform(InvocationContext ctx)
   {
      ReadCommittedNode n = (ReadCommittedNode) (fqn == null ? null : ctx.lookUpNode(fqn));
      if (n == null || n.isDeleted()) return null;
      Map<Object, InternalNode<?, ?>> childrenMap = n.getDelegationTarget().getChildrenMap();
      Collection<InternalNode> children = (Collection<InternalNode>) (childrenMap.isEmpty() ? Collections.emptySet() : childrenMap.values());

      return getCorrectedChildNames(children, ctx);
   }
View Full Code Here

      {
         Fqn childFqn = n.getKey();

         if (childFqn.isDirectChildOf(fqn))
         {
            ReadCommittedNode childNode = (ReadCommittedNode) n.getValue();
            if (childNode.isCreated()) childNames.add(childFqn.getLastElement());
         }
      }
      return childNames;
   }
View Full Code Here

      }
   }

   private InternalNode lookupInAllScopes(InvocationContext ctx, Fqn fqn)
   {
      ReadCommittedNode nodeSPI = (ReadCommittedNode) lookupForEviction(ctx, fqn);
      if (nodeSPI == null)
      {
         return dataContainer.peekInternalNode(fqn, true);
      }
      return nodeSPI.getDelegationTarget();
   }
View Full Code Here

    * @return a Set<Object> of child names, for a given Fqn, or null if the Fqn refers to a node that does not exist.
    */
   @SuppressWarnings("unchecked")
   public Object perform(InvocationContext ctx)
   {
      ReadCommittedNode n = (ReadCommittedNode) (fqn == null ? null : ctx.lookUpNode(fqn));
      if (n == null || n.isDeleted()) return null;
      Map<Object, InternalNode<?, ?>> childrenMap = n.getDelegationTarget().getChildrenMap();
      Collection<InternalNode> children = (Collection<InternalNode>) (childrenMap.isEmpty() ? Collections.emptySet() : childrenMap.values());

      return getCorrectedChildNames(children, ctx);
   }
View Full Code Here

      {
         Fqn childFqn = n.getKey();

         if (childFqn.isDirectChildOf(fqn))
         {
            ReadCommittedNode childNode = (ReadCommittedNode) n.getValue();
            if (childNode != null && childNode.isCreated()) childNames.add(childFqn.getLastElement());
         }
      }
      return childNames;
   }
View Full Code Here

      }
   }

   private InternalNode lookupInAllScopes(InvocationContext ctx, Fqn fqn)
   {
      ReadCommittedNode nodeSPI = (ReadCommittedNode) lookupForEviction(ctx, fqn);
      if (nodeSPI == null)
      {
         return dataContainer.peekInternalNode(fqn, true);
      }
      return nodeSPI.getDelegationTarget();
   }
View Full Code Here

      }
   }

   private InternalNode findNode(InvocationContext ctx, Fqn fqn)
   {
      ReadCommittedNode n = (ReadCommittedNode) ctx.lookUpNode(fqn);
      if (n == null || n.isNullNode())
      {
         return dataContainer.peekInternalNode(fqn, true);
      }
      else
      {
         return n.getDelegationTarget();
      }
   }
View Full Code Here

      }
   }

   private InternalNode findNode(InvocationContext ctx, Fqn fqn)
   {
      ReadCommittedNode n = (ReadCommittedNode) ctx.lookUpNode(fqn);
      if (n == null || n.isNullNode())
      {
         return dataContainer.peekInternalNode(fqn, true);
      }
      else
      {
         return n.getDelegationTarget();
      }
   }
View Full Code Here

      }
   }

   private InternalNode lookupInAllScopes(InvocationContext ctx, Fqn fqn)
   {
      ReadCommittedNode nodeSPI = (ReadCommittedNode) lookupForEviction(ctx, fqn);
      if (nodeSPI == null)
      {
         return dataContainer.peekInternalNode(fqn, true);
      }
      return nodeSPI.getDelegationTarget();
   }
View Full Code Here

TOP

Related Classes of org.jboss.cache.mvcc.ReadCommittedNode

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.