Examples of ModificationType


Examples of org.jboss.cache.notifications.event.NodeModifiedEvent.ModificationType

   public void nodeModified(NodeModifiedEvent event)
   {
      if (event.isPre()) return;

      // we're only interested in put and remove data operations
      ModificationType modType = event.getModificationType();
      if (!modType.equals(ModificationType.PUT_DATA) && !modType.equals(ModificationType.REMOVE_DATA)) return;

      // ignore changes for other roots in a shared cache
      @SuppressWarnings("unchecked")
      Fqn<Serializable>  fqn = event.getFqn();
      if (!fqn.isChildOf(ROOTFQN)) return;

      Serializable key = null;
      Serializable value = null;

      // there should be exactly one key/value pair in the map
      @SuppressWarnings("unchecked")
      Map<Serializable, Serializable> data = event.getData();
      if (data != null && !data.isEmpty())
      {
         key = (Serializable) data.keySet().iterator().next();
         value = (Serializable) data.get(key);
      }

      if (modType.equals(ModificationType.PUT_DATA))
      {
         DistributedStateImpl.this.notifyKeyListeners((String) fqn.get(ROOTFQNSIZE), key, value, event.isOriginLocal());
      }
      else
      {
View Full Code Here

Examples of org.jboss.cache.notifications.event.NodeModifiedEvent.ModificationType

   public void nodeModified(NodeModifiedEvent event)
   {
      if (event.isPre()) return;

      // we're only interested in put and remove data operations
      ModificationType modType = event.getModificationType();
      if (!modType.equals(ModificationType.PUT_DATA) && !modType.equals(ModificationType.REMOVE_DATA)) return;

      // ignore changes for other roots in a shared cache
      @SuppressWarnings("unchecked")
      Fqn<Serializable>  fqn = event.getFqn();
      if (!fqn.isChildOf(ROOTFQN)) return;

      Serializable key = null;
      Serializable value = null;

      // there should be exactly one key/value pair in the map
      @SuppressWarnings("unchecked")
      Map<Serializable, Serializable> data = event.getData();
      if (data != null && !data.isEmpty())
      {
         key = (Serializable) data.keySet().iterator().next();
         value = (Serializable) data.get(key);
      }

      if (modType.equals(ModificationType.PUT_DATA))
      {
         DistributedStateImpl.this.notifyKeyListeners((String) fqn.get(ROOTFQNSIZE), key, value, event.isOriginLocal());
      }
      else
      {
View Full Code Here

Examples of org.jboss.cache.notifications.event.NodeModifiedEvent.ModificationType

   public void nodeModified(NodeModifiedEvent event)
   {
      if (event.isPre()) return;

      // we're only interested in put and remove data operations
      ModificationType modType = event.getModificationType();
      if (!modType.equals(ModificationType.PUT_DATA) && !modType.equals(ModificationType.REMOVE_DATA)) return;

      // ignore changes for other roots in a shared cache
      Fqn fqn = event.getFqn();
      if (!fqn.isChildOf(ROOTFQN)) return;

      Serializable key = null;
      Serializable value = null;

      // there should be exactly one key/value pair in the map
      Map data = event.getData();
      if (data != null && !data.isEmpty())
      {
         key = (Serializable) data.keySet().iterator().next();
         value = (Serializable) data.get(key);
      }

      if (modType.equals(ModificationType.PUT_DATA))
      {
         DistributedStateImpl.this.notifyKeyListeners((String) fqn.get(ROOTFQNSIZE), key, value, event.isOriginLocal());
      }
      else
      {
View Full Code Here

Examples of org.jboss.cache.notifications.event.NodeModifiedEvent.ModificationType

   public void nodeModified(NodeModifiedEvent event)
   {
      if (event.isPre()) return;

      // we're only interested in put and remove data operations
      ModificationType modType = event.getModificationType();
      if (!modType.equals(ModificationType.PUT_DATA) && !modType.equals(ModificationType.REMOVE_DATA)) return;

      // ignore changes for other roots in a shared cache
      Fqn fqn = event.getFqn();
      if (!fqn.isChildOf(ROOTFQN)) return;

      Serializable key = null;
      Serializable value = null;

      // there should be exactly one key/value pair in the map
      Map data = event.getData();
      if (data != null && !data.isEmpty())
      {
         key = (Serializable) data.keySet().iterator().next();
         value = (Serializable) data.get(key);
      }

      if (modType.equals(ModificationType.PUT_DATA))
      {
         DistributedStateImpl.this.notifyKeyListeners((String) fqn.get(ROOTFQNSIZE), key, value, event.isOriginLocal());
      }
      else
      {
View Full Code Here

Examples of org.jboss.cache.notifications.event.NodeModifiedEvent.ModificationType

   public void nodeModified(NodeModifiedEvent event)
   {
      if (event.isPre()) return;

      // we're only interested in put and remove data operations
      ModificationType modType = event.getModificationType();
      if (!modType.equals(ModificationType.PUT_DATA) && !modType.equals(ModificationType.REMOVE_DATA)) return;

      // ignore changes for other roots in a shared cache
      @SuppressWarnings("unchecked")
      Fqn<Serializable>  fqn = event.getFqn();
      if (!fqn.isChildOf(ROOTFQN)) return;

      Serializable key = null;
      Serializable value = null;

      // there should be exactly one key/value pair in the map
      @SuppressWarnings("unchecked")
      Map<Serializable, Serializable> data = event.getData();
      if (data != null && !data.isEmpty())
      {
         key = (Serializable) data.keySet().iterator().next();
         value = (Serializable) data.get(key);
      }

      if (modType.equals(ModificationType.PUT_DATA))
      {
         DistributedStateImpl.this.notifyKeyListeners((String) fqn.get(ROOTFQNSIZE), key, value, event.isOriginLocal());
      }
      else
      {
View Full Code Here

Examples of org.jboss.cache.notifications.event.NodeModifiedEvent.ModificationType

   public void nodeModified(NodeModifiedEvent event)
   {
      Map<Object, Object> data = event.getData();
      boolean pre = event.isPre();
      Fqn fqn = event.getFqn();
      ModificationType modType = event.getModificationType();
      boolean isLocal = event.isOriginLocal();

      if (pre)
         return;
View Full Code Here

Examples of org.jboss.deployers.spi.structure.ModificationType

   {
      if (contextInfo == null)
         return file;

      VirtualFile modified = file;
      ModificationType modificationType = contextInfo.getModificationType();
      if (modificationType != null)
      {
         ModificationAction action = ModificationActions.getAction(modificationType);
         if (action != null)
         {
View Full Code Here

Examples of org.jboss.deployers.spi.structure.ModificationType

   {
      if (contextInfo == null)
         return file;

      VirtualFile modified = file;
      ModificationType modificationType = contextInfo.getModificationType();
      if (modificationType != null)
      {
         ModificationAction action = ModificationActions.getAction(modificationType);
         if (action != null)
         {
View Full Code Here

Examples of org.jboss.deployers.spi.structure.ModificationType

   {
      if (contextInfo == null)
         return file;

      VirtualFile modified = file;
      ModificationType modificationType = contextInfo.getModificationType();
      if (modificationType != null)
      {
         ModificationAction action = ModificationActions.getAction(modificationType);
         if (action != null)
         {
View Full Code Here

Examples of org.jboss.deployers.spi.structure.ModificationType

   {
      if (contextInfo == null)
         return file;

      VirtualFile modified = file;
      ModificationType modificationType = contextInfo.getModificationType();
      if (modificationType != null)
      {
         ModificationAction action = ModificationActions.getAction(modificationType);
         if (action != null)
         {
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.