Package org.infinispan.commands

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


                           rpc.getTransport().getAddress());
                  CancelCommand cc = buildCancelCommand(task);
                  if (sendingToSelf) {
                     cc.init(cancellationService);
                     try {
                        cc.perform(null);
                     } catch (Throwable e) {
                        log.couldNotExecuteCancellationLocally(e.getLocalizedMessage());
                     }
                  } else {
                     rpc.invokeRemotely(Collections.singletonList(task.getExecutionTarget()), cc,
View Full Code Here


         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, rpc.getDefaultRpcOptions(true));
View Full Code Here

                           rpc.getTransport().getAddress());
                  CancelCommand cc = buildCancelCommand(task);
                  if (sendingToSelf) {
                     cc.init(cancellationService);
                     try {
                        cc.perform(null);
                     } catch (Throwable e) {
                        log.couldNotExecuteCancellationLocally(e.getLocalizedMessage());
                     }
                  } else {
                     rpc.invokeRemotely(Collections.singletonList(task.getExecutionTarget()), cc, rpcOptionsBuilder.build());
View Full Code Here

                           rpc.getTransport().getAddress());
                  CancelCommand cc = buildCancelCommand(task);
                  if (sendingToSelf) {
                     cc.init(cancellationService);
                     try {
                        cc.perform(null);
                     } catch (Throwable e) {
                        log.couldNotExecuteCancellationLocally(e.getLocalizedMessage());
                     }
                  } else {
                     rpc.invokeRemotely(Collections.singletonList(task.getExecutionTarget()), cc,
View Full Code Here

         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

                           rpc.getTransport().getAddress());
                  CancelCommand cc = buildCancelCommand(task);
                  if (sendingToSelf) {
                     cc.init(cancellationService);
                     try {
                        cc.perform(null);
                     } catch (Throwable e) {
                        log.couldNotExecuteCancellationLocally(e.getLocalizedMessage());
                     }
                  } else {
                     rpc.invokeRemotely(Collections.singletonList(task.getExecutionTarget()), cc, rpcOptionsBuilder.build());
View Full Code Here

                           rpc.getTransport().getAddress());
                  CancelCommand cc = buildCancelCommand(task);
                  if (sendingToSelf) {
                     cc.init(cancellationService);
                     try {
                        cc.perform(null);
                     } catch (Throwable e) {
                        log.couldNotExecuteCancellationLocally(e.getLocalizedMessage());
                     }
                  } else {
                     rpc.invokeRemotely(Collections.singletonList(task.getExecutionTarget()), cc, rpcOptionsBuilder.build());
View Full Code Here

                        rpc.getTransport().getAddress());
               CancelCommand cc = buildCancelCommand(task);
               if (sendingToSelf) {
                  cc.init(cancellationService);
                  try {
                     cc.perform(null);
                  } catch (Throwable e) {
                     log.couldNotExecuteCancellationLocally(e.getLocalizedMessage());
                  }
               } else {
                  rpc.invokeRemotely(Collections.singletonList(task.getExecutionTarget()), cc, true);
View Full Code Here

         boolean sendToSelf = getExecutionTarget().equals(getAddress());
         CancelCommand ccc = factory.buildCancelCommandCommand(distCommand.getUUID());
         if (sendToSelf) {
            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

                           rpc.getTransport().getAddress());
                  CancelCommand cc = buildCancelCommand(task);
                  if (sendingToSelf) {
                     cc.init(cancellationService);
                     try {
                        cc.perform(null);
                     } catch (Throwable e) {
                        log.couldNotExecuteCancellationLocally(e.getLocalizedMessage());
                     }
                  } else {
                     rpc.invokeRemotely(Collections.singletonList(task.getExecutionTarget()), cc, rpcOptionsBuilder.build());
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.