public void cancelAll(String callerUuid, Throwable cause) { for (WaitSetEntry entry : queue) { if (!entry.isValid()) { continue; } Operation op = entry.getOperation(); if (callerUuid.equals(op.getCallerUuid())) { entry.cancel(cause); } } }
public void invalidateAll(String callerUuid) { for (WaitSetEntry entry : queue) { if (!entry.isValid()) { continue; } Operation op = entry.getOperation(); if (callerUuid.equals(op.getCallerUuid())) { entry.setValid(false); } } }
public void invalidateAll(String callerUuid) { for (WaitSetEntry entry : queue) { if (!entry.isValid()) { continue; } Operation op = entry.getOperation(); if (callerUuid.equals(op.getCallerUuid())) { entry.setValid(false); } } }
public void cancelAll(String callerUuid, Throwable cause) { for (WaitSetEntry entry : queue) { if (!entry.isValid()) { continue; } Operation op = entry.getOperation(); if (callerUuid.equals(op.getCallerUuid())) { entry.cancel(cause); } } }
private void setCallerUuidIfNotSet(Address caller, Operation op) { if (op.getCallerUuid() != null) { return; } MemberImpl callerMember = node.clusterService.getMember(caller); if (callerMember != null) { op.setCallerUuid(callerMember.getUuid()); } }
private void setCallerUuidIfNotSet(Address caller, Operation op) { if (op.getCallerUuid() != null) { return; } MemberImpl callerMember = node.clusterService.getMember(caller); if (callerMember != null) { op.setCallerUuid(callerMember.getUuid()); } }
private void doInvokeLocal(boolean isAsync) { if (op.getCallerUuid() == null) { op.setCallerUuid(context.node.getThisUuid()); } responseReceived = FALSE; op.setOperationResponseHandler(this); if (isAsync) { context.operationExecutor.execute(op); } else { context.operationExecutor.runOrExecute(op); } }
private void doInvokeLocal(boolean isAsync) { if (op.getCallerUuid() == null) { op.setCallerUuid(context.node.getThisUuid()); } responseReceived = FALSE; op.setOperationResponseHandler(this); if (isAsync) { context.operationExecutor.execute(op); } else { context.operationExecutor.runOrExecute(op); } }
public static void before(List<Operation> operationList, Operation wrapper) throws Exception { for (Operation operation : operationList) { operation.setService(wrapper.getService()); operation.setServiceName(wrapper.getServiceName()); operation.setCallerUuid(wrapper.getCallerUuid()); operation.setNodeEngine(wrapper.getNodeEngine()); operation.setPartitionId(wrapper.getPartitionId()); operation.beforeRun(); } }
public static void before(List<Operation> operationList, Operation wrapper) throws Exception { for (Operation operation : operationList) { operation.setService(wrapper.getService()); operation.setServiceName(wrapper.getServiceName()); operation.setCallerUuid(wrapper.getCallerUuid()); operation.setNodeEngine(wrapper.getNodeEngine()); operation.setPartitionId(wrapper.getPartitionId()); operation.beforeRun(); } }