Examples of clearDataDirect()


Examples of org.jboss.cache.NodeSPI.clearDataDirect()

   {
      if (trace) log.trace("rollback(" + globalTransaction + ", " + fqn + ", " + data + ")");
      NodeSPI n = dataContainer.peek(fqn, false, true);
      if (n != null)
      {
         n.clearDataDirect();
         if (oldData != null) n.putAllDirect(oldData);
      }
   }
}
View Full Code Here

Examples of org.jboss.cache.NodeSPI.clearDataDirect()

         return null;
      }

      Map data = targetNode.getDataDirect();
      notifier.notifyNodeModified(fqn, true, NodeModifiedEvent.ModificationType.REMOVE_DATA, data, ctx);
      targetNode.clearDataDirect();
      notifier.notifyNodeModified(fqn, false, NodeModifiedEvent.ModificationType.REMOVE_DATA, data, ctx);
      return null;
   }

   public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
View Full Code Here

Examples of org.jboss.cache.NodeSPI.clearDataDirect()

         return null;
      }

      Map data = targetNode.getDataDirect();
      notifier.notifyNodeModified(fqn, true, NodeModifiedEvent.ModificationType.REMOVE_DATA, data, ctx);
      targetNode.clearDataDirect();
      notifier.notifyNodeModified(fqn, false, NodeModifiedEvent.ModificationType.REMOVE_DATA, data, ctx);
      return null;
   }

   public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
View Full Code Here

Examples of org.jboss.cache.NodeSPI.clearDataDirect()

      }

      Map data = targetNode.getDataDirect();
      prepareDataForRollback(data);
      notifier.notifyNodeModified(fqn, true, NodeModifiedEvent.ModificationType.REMOVE_DATA, data, ctx);
      targetNode.clearDataDirect();
      notifier.notifyNodeModified(fqn, false, NodeModifiedEvent.ModificationType.REMOVE_DATA, data, ctx);
      return null;
   }

   private void prepareDataForRollback(Map data)
View Full Code Here

Examples of org.jboss.cache.NodeSPI.clearDataDirect()

         return null;
      }

      Map data = targetNode.getDataDirect();
      notifier.notifyNodeModified(fqn, true, NodeModifiedEvent.ModificationType.REMOVE_DATA, data, ctx);
      targetNode.clearDataDirect();
      notifier.notifyNodeModified(fqn, false, NodeModifiedEvent.ModificationType.REMOVE_DATA, data, ctx);
      return null;
   }

   public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
View Full Code Here

Examples of org.jboss.cache.NodeSPI.clearDataDirect()

         notifier.notifyNodeModified(fqn, true, NodeModifiedEvent.ModificationType.PUT_MAP, existingData == null ? Collections.emptyMap() : existingData, ctx);
      }

      if (erase)
      {
        nodeSPI.clearDataDirect();
      }
      nodeSPI.putAllDirect(data);
      if (notifier.shouldNotifyOnNodeModified())
      {
         notifier.notifyNodeModified(fqn, false, NodeModifiedEvent.ModificationType.PUT_MAP, nodeSPI.getDataDirect(), ctx);
View Full Code Here

Examples of org.jboss.cache.NodeSPI.clearDataDirect()

   {
      if (trace) log.trace("rollback(" + globalTransaction + ", " + fqn + ", " + data + ")");
      NodeSPI n = dataContainer.peek(fqn, false, true);
      if (n != null)
      {
         n.clearDataDirect();
         if (oldData != null) n.putAllDirect(oldData);
      }
   }

   public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
View Full Code Here

Examples of org.jboss.cache.NodeSPI.clearDataDirect()

      {
         log.warn("node " + fqn + " not found");
         return;
      }
      notifier.notifyNodeEvicted(fqn, true, ctx);
      n.clearDataDirect();
      n.setDataLoaded(false);
      notifier.notifyNodeEvicted(fqn, false, ctx);
   }

   public DataVersion getDataVersion()
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.