Package org.jboss.cache.eviction

Examples of org.jboss.cache.eviction.EvictedEventNode


      }
      else
      {
         if (fqn != null && !canIgnoreEvent(fqn, NodeEventType.VISIT_NODE_EVENT))
         {
            registerEvictionEventToRegionManager(new EvictedEventNode(fqn, NodeEventType.VISIT_NODE_EVENT), ctx);
         }
      }
      return retVal;
   }
View Full Code Here


            log.trace("No event added. Element does not exist");
         }
      }
      else if (fqn != null && key != null && !canIgnoreEvent(fqn, NodeEventType.VISIT_NODE_EVENT))
      {
         registerEvictionEventToRegionManager(new EvictedEventNode(fqn, NodeEventType.VISIT_NODE_EVENT), ctx);
      }
      return retVal;
   }
View Full Code Here

   protected Object handleRemoveNodeMethod(InvocationContext ctx, GlobalTransaction tx, Fqn fqn, boolean createUndoOps) throws Throwable
   {
      Object retVal = nextInterceptor(ctx);
      if (fqn != null && !canIgnoreEvent(fqn, NodeEventType.REMOVE_NODE_EVENT))
      {
         registerEvictionEventToRegionManager(new EvictedEventNode(fqn, NodeEventType.REMOVE_NODE_EVENT), ctx);
      }
      return retVal;
   }
View Full Code Here

   // -------- eviction stuff -----

   public void markNodeCurrentlyInUse(Fqn fqn, long timeout)
   {
      EvictedEventNode markUse = new EvictedEventNode(fqn, NodeEventType.MARK_IN_USE_EVENT);
      markUse.setInUseTimeout(timeout);
      putNodeEvent(markUse);
   }
View Full Code Here

      putNodeEvent(markUse);
   }

   public void unmarkNodeCurrentlyInUse(Fqn fqn)
   {
      EvictedEventNode markNoUse = new EvictedEventNode(fqn, NodeEventType.UNMARK_USE_EVENT);
      putNodeEvent(markNoUse);
   }
View Full Code Here

      if (!complete)
      {
         Region r;
         if (fqn != null && (r = getRegion(fqn, NodeEventType.ADD_NODE_EVENT)) != null)
         {
            registerEvictionEventToRegionManager(new EvictedEventNode(fqn, NodeEventType.ADD_NODE_EVENT, 0), r);
         }
      }
      return retVal;
   }
View Full Code Here

   {
      Object retVal = invokeNextInterceptor(ctx, command);
      Region r;
      if (command.getFqn() != null && command.getKey() != null && (r = getRegion(command.getFqn(), NodeEventType.ADD_ELEMENT_EVENT)) != null)
      {
         registerEvictionEventToRegionManager(new EvictedEventNode(command.getFqn(), NodeEventType.ADD_ELEMENT_EVENT, 1), r);
      }
      return retVal;
   }
View Full Code Here

            int size;
            synchronized (command.getData())
            {
               size = command.getData().size();
            }
            EvictedEventNode event = new EvictedEventNode(fqn, NodeEventType.ADD_NODE_EVENT, size);
            registerEvictionEventToRegionManager(event, r);
         }
      }
      return retVal;
   }
View Full Code Here

      {
         Fqn fqn = command.getFqn();
         Region r;
         if (fqn != null && command.getKey() != null && (r = getRegion(fqn, NodeEventType.REMOVE_ELEMENT_EVENT)) != null)
         {
            registerEvictionEventToRegionManager(new EvictedEventNode(fqn, NodeEventType.REMOVE_ELEMENT_EVENT, 1), r);
         }
      }
      return retVal;
   }
View Full Code Here

      else
      {
         Region r;
         if (fqn != null && (r = getRegion(fqn, NodeEventType.VISIT_NODE_EVENT)) != null)
         {
            registerEvictionEventToRegionManager(new EvictedEventNode(fqn, NodeEventType.VISIT_NODE_EVENT), r);
         }
      }
      return retVal;
   }
View Full Code Here

TOP

Related Classes of org.jboss.cache.eviction.EvictedEventNode

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.