Examples of TopologyAffectedCommand


Examples of org.infinispan.commands.TopologyAffectedCommand

//               if (responseFilter == null) {
//                  responseFilter = new IgnoreExtraResponsesValidityFilter(cacheMembers, getAddress());
//               }
//            }
            if (rpcCommand instanceof TopologyAffectedCommand) {
               TopologyAffectedCommand topologyAffectedCommand = (TopologyAffectedCommand) rpcCommand;
               if (topologyAffectedCommand.getTopologyId() == -1) {
                  topologyAffectedCommand.setTopologyId(stateTransferManager.getCacheTopology().getTopologyId());
               }
            }
            Map<Address, Response> result = t.invokeRemotely(recipients, rpcCommand, mode, timeout, usePriorityQueue, responseFilter);
            if (statisticsEnabled) replicationCount.incrementAndGet();
            return result;
View Full Code Here

Examples of org.infinispan.commands.TopologyAffectedCommand

//               if (responseFilter == null) {
//                  responseFilter = new IgnoreExtraResponsesValidityFilter(cacheMembers, getAddress());
//               }
//            }
            if (rpcCommand instanceof TopologyAffectedCommand) {
               TopologyAffectedCommand topologyAffectedCommand = (TopologyAffectedCommand) rpcCommand;
               if (topologyAffectedCommand.getTopologyId() == -1) {
                  topologyAffectedCommand.setTopologyId(stateTransferManager.getCacheTopology().getTopologyId());
               }
            }
            Map<Address, Response> result = t.invokeRemotely(recipients, rpcCommand, mode, timeout, usePriorityQueue, responseFilter);
            if (statisticsEnabled) replicationCount.incrementAndGet();
            return result;
View Full Code Here

Examples of org.infinispan.commands.TopologyAffectedCommand

      if (!configuration.clustering().cacheMode().isClustered())
         throw new IllegalStateException("Trying to invoke a remote command but the cache is not clustered");

      // Set the topology id of the command, in case we don't have it yet
      if (rpc instanceof TopologyAffectedCommand) {
         TopologyAffectedCommand topologyAffectedCommand = (TopologyAffectedCommand) rpc;
         if (topologyAffectedCommand.getTopologyId() == -1) {
            int currentTopologyId = stateTransferManager.getCacheTopology().getTopologyId();
            if (trace) log.tracef("Topology id missing on command %s, setting it to %d", rpc, currentTopologyId);
            topologyAffectedCommand.setTopologyId(currentTopologyId);
         }
      }

      if (!(rpc instanceof CacheRpcCommand)) {
         rpc = cf.buildSingleRpcCommand(rpc);
View Full Code Here

Examples of org.infinispan.commands.TopologyAffectedCommand

//               if (responseFilter == null) {
//                  responseFilter = new IgnoreExtraResponsesValidityFilter(cacheMembers, getAddress());
//               }
//            }
         if (rpc instanceof TopologyAffectedCommand) {
            TopologyAffectedCommand topologyAffectedCommand = (TopologyAffectedCommand) rpc;
            if (topologyAffectedCommand.getTopologyId() == -1) {
               topologyAffectedCommand.setTopologyId(stateTransferManager.getCacheTopology().getTopologyId());
            }
         }
         Map<Address, Response> result = t.invokeRemotely(recipients, rpc, options.responseMode(), options.timeUnit().toMillis(options.timeout()),
                                                          !options.fifoOrder(), options.responseFilter(), options.totalOrder(),
                                                          configuration.clustering().cacheMode().isDistributed());
View Full Code Here

Examples of org.infinispan.commands.TopologyAffectedCommand

//               if (responseFilter == null) {
//                  responseFilter = new IgnoreExtraResponsesValidityFilter(cacheMembers, getAddress());
//               }
//            }
            if (rpcCommand instanceof TopologyAffectedCommand) {
               TopologyAffectedCommand topologyAffectedCommand = (TopologyAffectedCommand) rpcCommand;
               if (topologyAffectedCommand.getTopologyId() == -1) {
                  topologyAffectedCommand.setTopologyId(stateTransferManager.getCacheTopology().getTopologyId());
               }
            }
            Map<Address, Response> result = t.invokeRemotely(recipients, rpcCommand, mode, timeout, usePriorityQueue, responseFilter);
            if (statisticsEnabled) replicationCount.incrementAndGet();
            return result;
View Full Code Here

Examples of org.infinispan.commands.TopologyAffectedCommand

//               if (responseFilter == null) {
//                  responseFilter = new IgnoreExtraResponsesValidityFilter(cacheMembers, getAddress());
//               }
//            }
         if (rpcCommand instanceof TopologyAffectedCommand) {
            TopologyAffectedCommand topologyAffectedCommand = (TopologyAffectedCommand) rpcCommand;
            if (topologyAffectedCommand.getTopologyId() == -1) {
               topologyAffectedCommand.setTopologyId(stateTransferManager.getCacheTopology().getTopologyId());
            }
         }
         Map<Address, Response> result = t.invokeRemotely(recipients, rpcCommand, mode, timeout, usePriorityQueue, responseFilter);
         if (statisticsEnabled) replicationCount.incrementAndGet();
         return result;
View Full Code Here

Examples of org.infinispan.commands.TopologyAffectedCommand

//               if (responseFilter == null) {
//                  responseFilter = new IgnoreExtraResponsesValidityFilter(cacheMembers, getAddress());
//               }
//            }
         if (rpcCommand instanceof TopologyAffectedCommand) {
            TopologyAffectedCommand topologyAffectedCommand = (TopologyAffectedCommand) rpcCommand;
            if (topologyAffectedCommand.getTopologyId() == -1) {
               topologyAffectedCommand.setTopologyId(stateTransferManager.getCacheTopology().getTopologyId());
            }
         }
         Map<Address, Response> result = t.invokeRemotely(recipients, rpcCommand, mode, timeout, usePriorityQueue, responseFilter,
                                                          totalOrder, configuration.clustering().cacheMode().isDistributed());
         if (statisticsEnabled) replicationCount.incrementAndGet();
View Full Code Here

Examples of org.infinispan.commands.TopologyAffectedCommand

//               if (responseFilter == null) {
//                  responseFilter = new IgnoreExtraResponsesValidityFilter(cacheMembers, getAddress());
//               }
//            }
         if (rpc instanceof TopologyAffectedCommand) {
            TopologyAffectedCommand topologyAffectedCommand = (TopologyAffectedCommand) rpc;
            if (topologyAffectedCommand.getTopologyId() == -1) {
               topologyAffectedCommand.setTopologyId(stateTransferManager.getCacheTopology().getTopologyId());
            }
         }
         Map<Address, Response> result = t.invokeRemotely(recipients, rpc, options.responseMode(), options.timeUnit().toMillis(options.timeout()),
                                                          !options.fifoOrder(), options.responseFilter(), options.totalOrder(),
                                                          configuration.clustering().cacheMode().isDistributed());
View Full Code Here

Examples of org.infinispan.commands.TopologyAffectedCommand

//               if (responseFilter == null) {
//                  responseFilter = new IgnoreExtraResponsesValidityFilter(cacheMembers, getAddress());
//               }
//            }
         if (rpcCommand instanceof TopologyAffectedCommand) {
            TopologyAffectedCommand topologyAffectedCommand = (TopologyAffectedCommand) rpcCommand;
            if (topologyAffectedCommand.getTopologyId() == -1) {
               topologyAffectedCommand.setTopologyId(stateTransferManager.getCacheTopology().getTopologyId());
            }
         }
         Map<Address, Response> result = t.invokeRemotely(recipients, rpcCommand, mode, timeout, usePriorityQueue, responseFilter);
         if (statisticsEnabled) replicationCount.incrementAndGet();
         return result;
View Full Code Here

Examples of org.infinispan.commands.TopologyAffectedCommand

//               if (responseFilter == null) {
//                  responseFilter = new IgnoreExtraResponsesValidityFilter(cacheMembers, getAddress());
//               }
//            }
            if (rpcCommand instanceof TopologyAffectedCommand) {
               TopologyAffectedCommand topologyAffectedCommand = (TopologyAffectedCommand) rpcCommand;
               if (topologyAffectedCommand.getTopologyId() == -1) {
                  topologyAffectedCommand.setTopologyId(stateTransferManager.getCacheTopology().getTopologyId());
               }
            }
            Map<Address, Response> result = t.invokeRemotely(recipients, rpcCommand, mode, timeout, usePriorityQueue, responseFilter);
            if (statisticsEnabled) replicationCount.incrementAndGet();
            return result;
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.