Package org.infinispan.notifications.cachelistener.cluster

Examples of org.infinispan.notifications.cachelistener.cluster.ClusterListenerReplicateCallable$Externalizer


                                                          List<CacheEntryListenerInvocation<K, V>> listenerInvocations) {
      for (CacheEntryListenerInvocation<K, V> listener : listenerInvocations) {
         if (!enlistedAlready.contains(listener.getTarget())) {
            // If clustered means it is local - so use our address
            if (listener.isClustered()) {
               callables.add(new ClusterListenerReplicateCallable(listener.getIdentifier(),
                                                                  cache.getCacheManager().getAddress(), listener.getFilter(),
                                                                  listener.getConverter()));
               enlistedAlready.add(listener.getTarget());
            }
            else if (listener.getTarget() instanceof RemoteClusterListener) {
               RemoteClusterListener lcl = (RemoteClusterListener)listener.getTarget();
               callables.add(new ClusterListenerReplicateCallable(lcl.getId(), lcl.getOwnerAddress(), listener.getFilter(),
                                                                  listener.getConverter()));
               enlistedAlready.add(listener.getTarget());
            }
         }
      }
View Full Code Here


               if (log.isTraceEnabled()) {
                  log.tracef("Replicating cluster listener to other nodes %s for cluster listener with id %s",
                             members, generatedId);
               }
               Callable callable = new ClusterListenerReplicateCallable(generatedId, ourAddress, filter, converter);
               for (Address member : members) {
                  if (!member.equals(ourAddress)) {
                     decs.submit(member, callable);
                  }
               }
View Full Code Here

                                                          List<ListenerInvocation> listenerInvocations) {
      for (ListenerInvocation listener : listenerInvocations) {
         if (!enlistedAlready.contains(listener.target)) {
            // If clustered means it is local - so use our address
            if (listener.clustered) {
               callables.add(new ClusterListenerReplicateCallable(listener.generatedId,
                                                                  cache.getCacheManager().getAddress(), listener.filter,
                                                                  listener.converter));
               enlistedAlready.add(listener.target);
            }
            else if (listener.target instanceof RemoteClusterListener) {
               RemoteClusterListener lcl = (RemoteClusterListener)listener.target;
               callables.add(new ClusterListenerReplicateCallable(lcl.getId(), lcl.getOwnerAddress(), listener.filter,
                                                                  listener.converter));
               enlistedAlready.add(listener.target);
            }
         }
      }
View Full Code Here

         if (members.size() > 1) {
            DistributedExecutionCompletionService decs = new DistributedExecutionCompletionService(distExecutorService);

            log.tracef("Replicating cluster listener to other nodes %s for cluster listener with id %s",
                       members, generatedId);
            Callable callable = new ClusterListenerReplicateCallable(generatedId, ourAddress, filter, converter);
            for (Address member : members) {
               if (!member.equals(ourAddress)) {
                  decs.submit(member, callable);
               }
            }
View Full Code Here

                                                          List<ListenerInvocation> listenerInvocations) {
      for (ListenerInvocation listener : listenerInvocations) {
         if (!enlistedAlready.contains(listener.target)) {
            // If clustered means it is local - so use our address
            if (listener.clustered) {
               callables.add(new ClusterListenerReplicateCallable(listener.generatedId,
                                                                  cache.getCacheManager().getAddress(), listener.filter,
                                                                  listener.converter));
               enlistedAlready.add(listener.target);
            }
            else if (listener.target instanceof RemoteClusterListener) {
               RemoteClusterListener lcl = (RemoteClusterListener)listener.target;
               callables.add(new ClusterListenerReplicateCallable(lcl.getId(), lcl.getOwnerAddress(), listener.filter,
                                                                  listener.converter));
               enlistedAlready.add(listener.target);
            }
         }
      }
View Full Code Here

         if (members.size() > 1) {
            DistributedExecutionCompletionService decs = new DistributedExecutionCompletionService(distExecutorService);

            log.tracef("Replicating cluster listener to other nodes %s for cluster listener with id %s",
                       members, generatedId);
            Callable callable = new ClusterListenerReplicateCallable(generatedId, ourAddress, filter, converter);
            for (Address member : members) {
               if (!member.equals(ourAddress)) {
                  decs.submit(member, callable);
               }
            }
View Full Code Here

                                                          List<CacheEntryListenerInvocation<K, V>> listenerInvocations) {
      for (CacheEntryListenerInvocation<K, V> listener : listenerInvocations) {
         if (!enlistedAlready.contains(listener.getTarget())) {
            // If clustered means it is local - so use our address
            if (listener.isClustered()) {
               callables.add(new ClusterListenerReplicateCallable(listener.getIdentifier(),
                                                                  cache.getCacheManager().getAddress(), listener.getFilter(),
                                                                  listener.getConverter()));
               enlistedAlready.add(listener.getTarget());
            }
            else if (listener.getTarget() instanceof RemoteClusterListener) {
               RemoteClusterListener lcl = (RemoteClusterListener)listener.getTarget();
               callables.add(new ClusterListenerReplicateCallable(lcl.getId(), lcl.getOwnerAddress(), listener.getFilter(),
                                                                  listener.getConverter()));
               enlistedAlready.add(listener.getTarget());
            }
         }
      }
View Full Code Here

            if (log.isTraceEnabled()) {
               log.tracef("Replicating cluster listener to other nodes %s for cluster listener with id %s",
                          members, generatedId);
            }
            Callable callable = new ClusterListenerReplicateCallable(generatedId, ourAddress, filter, converter);
            for (Address member : members) {
               if (!member.equals(ourAddress)) {
                  decs.submit(member, callable);
               }
            }
View Full Code Here

                                                          List<ListenerInvocation> listenerInvocations) {
      for (ListenerInvocation listener : listenerInvocations) {
         if (!enlistedAlready.contains(listener.target)) {
            // If clustered means it is local - so use our address
            if (listener.clustered) {
               callables.add(new ClusterListenerReplicateCallable(listener.generatedId,
                                                                  cache.getCacheManager().getAddress(), listener.filter,
                                                                  listener.converter));
               enlistedAlready.add(listener.target);
            }
            else if (listener.target instanceof RemoteClusterListener) {
               RemoteClusterListener lcl = (RemoteClusterListener)listener.target;
               callables.add(new ClusterListenerReplicateCallable(lcl.getId(), lcl.getOwnerAddress(), listener.filter,
                                                                  listener.converter));
               enlistedAlready.add(listener.target);
            }
         }
      }
View Full Code Here

         if (members != null && members.size() > 1) {
            DistributedExecutionCompletionService decs = new DistributedExecutionCompletionService(distExecutorService);

            log.tracef("Replicating cluster listener to other nodes %s for cluster listener with id %s",
                       members, generatedId);
            Callable callable = new ClusterListenerReplicateCallable(generatedId, ourAddress, filter, converter);
            for (Address member : members) {
               if (!member.equals(ourAddress)) {
                  decs.submit(member, callable);
               }
            }
View Full Code Here

TOP

Related Classes of org.infinispan.notifications.cachelistener.cluster.ClusterListenerReplicateCallable$Externalizer

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.