Examples of perform()


Examples of org.infinispan.commands.CancelCommand.perform()

         if (!isCancelled()) {         
            CancelCommand ccc = factory.buildCancelCommandCommand(distCommand.getUUID());
            if (isLocalNodeExecutionTarget()) {
               ccc.init(cancellationService);
               try {
                  ccc.perform(null);
               } catch (Throwable e) {
                  log.couldNotExecuteCancellationLocally(e.getLocalizedMessage());
               }
            } else {
               rpc.invokeRemotely(Collections.singletonList(getExecutionTarget()), ccc, true);
View Full Code Here

Examples of org.infinispan.commands.CreateCacheCommand.perform()

         @Override
         public Object call() throws Exception {
            //locally
            ccc.init(cache.getCacheManager());
            try {
               return ccc.perform(null);
            } catch (Throwable e) {
               throw new CacheException("Could not initialize temporary caches for MapReduce task on remote nodes ", e);
            }
         }
      });
View Full Code Here

Examples of org.infinispan.commands.RemoveCacheCommand.perform()

               Configuration c = getConfiguration(cacheName);
               // Use sync replication timeout
               transport.invokeRemotely(null, cmd, ResponseMode.SYNCHRONOUS, c.clustering().sync().replTimeout(), false, null, false, false);
            }
            // Once sent to the cluster, remove the local cache
            cmd.perform(null);

            // Remove cache configuration and remove it from the computed cache name list
            configurationOverrides.remove(cacheName);
         } catch (Throwable t) {
            throw new CacheException("Error removing cache", t);
View Full Code Here

Examples of org.infinispan.commands.ReplicableCommand.perform()

         try {
            ReplicableCommand cmd = (ReplicableCommand) req_marshaller.objectFromByteBuffer(req.getBuffer(), req.getOffset(), req.getLength());
            if (cmd instanceof CacheRpcCommand)
               return executeCommand((CacheRpcCommand) cmd, req);
            else
               return cmd.perform(null);
         }
         catch (Throwable x) {
            if (trace) log.trace("Problems invoking command.", x);
            return x;
         }
View Full Code Here

Examples of org.infinispan.commands.control.LockControlCommand.perform()

               LockControlCommand unlockCmd = new LockControlCommand(keys, configuration.getName(), flags, false);
               unlockCmd.init(invoker, icc, TransactionTable.this);
               unlockCmd.attachGlobalTransaction(gtx);
               unlockCmd.setUnlock(true);
               try {
                  unlockCmd.perform(null);
                  if (trace) log.tracef("Unlocking moved keys for %s complete.", gtx);
               } catch (Throwable t) {
                  log.unableToUnlockRebalancedKeys(gtx, keys, self, t);
               }
View Full Code Here

Examples of org.infinispan.commands.read.MapReduceCommand.perform()

      Object localCommandResult = null;
      if (selfInvoke) {
         log.debugf("Invoking %s locally", cmd);
         selfCmd.init(factory, invoker, icc, dm, rpc.getAddress());
         try {
            localCommandResult = selfCmd.perform(null);
            log.debugf("Invoked %s locally", cmd);
         } catch (Throwable e1) {
            throw new CacheException("Could not invoke MapReduce task locally ", e1);
         }
      }
View Full Code Here

Examples of org.infinispan.commands.tx.CommitCommand.perform()

            CommitCommand command = new CommitCommand(newBackupOwnerCache.getName(), gtx);
            command.setTopologyId(currentTopologyId);
            CommandsFactory cf = TestingUtil.extractCommandsFactory(newBackupOwnerCache);
            cf.initializeReplicableCommand(command, true);
            try {
               command.perform(null);
            } catch (Throwable throwable) {
               throw new CacheException(throwable);
            }

            return null;
View Full Code Here

Examples of org.infinispan.commands.tx.RollbackCommand.perform()

                  for (GlobalTransaction gtx : toKill) {
                     if (trace) log.trace("Killing {0}", gtx);
                     RollbackCommand rc = new RollbackCommand(gtx);
                     rc.init(invoker, icc, TransactionTable.this);
                     try {
                        rc.perform(null);
                        if (trace) log.trace("Rollback of {0} complete.", gtx);
                     } catch (Throwable e) {
                        log.warn("Unable to roll back gtx " + gtx, e);
                     } finally {
                        removeRemoteTransaction(gtx);
View Full Code Here

Examples of org.infinispan.commands.write.InvalidateCommand.perform()

               // now we can invalidate the keys
               try {
                  InvalidateCommand invalidateCmd = cf.buildInvalidateFromL1Command(true, removedKeys);
                  InvocationContext ctx = icc.createNonTxInvocationContext();
                  invalidateCmd.perform(ctx);
               } catch (Throwable t) {
                  log.failedToInvalidateKeys(t);
               }

               if (trace) {
View Full Code Here

Examples of org.infinispan.query.clustered.commandworkers.ClusteredQueryCommandWorker.perform()

      return perform(cache);
   }

   public QueryResponse perform(Cache<?, ?> cache) {
      ClusteredQueryCommandWorker worker = commandType.getCommand(cache, query, lazyQueryId, docIndex);
      return worker.perform();
   }

   @Override
   public byte getCommandId() {
      return COMMAND_ID;
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.