/** * If we see a completion event with an index matching one of those in the * current retry state we can safely forget that state object */ @Override public void receiveResultCompletion(DispatchCompletionEvent c) { forget(c.getOwningProcess(), c.getIndex()); getAbove().receiveResultCompletion(c); }
@Override public DispatchCompletionEvent pushOwningProcess(String localProcessName) throws ProcessIdentifierException { return new DispatchCompletionEvent(pushOwner(localProcessName), index, context); }
@Override public DispatchCompletionEvent popOwningProcess() throws ProcessIdentifierException { return new DispatchCompletionEvent(popOwner(), index, context); }
@Override public void receiveResultCompletion( DispatchCompletionEvent completionEvent) { Completion c = new Completion(completionEvent.getOwningProcess(), completionEvent.getIndex(), completionEvent.getContext()); DispatchStackImpl.this.pushEvent(c); if (c.isFinal()) sendCachePurge(c.getOwningProcess()); }
@Override public void run() { getAbove().receiveResultCompletion( new DispatchCompletionEvent(e .getOwningProcess(), e .getIndex(), e.getContext())); } }, "Parallelize " + e.getOwningProcess()).start();
@Override public void receiveResultCompletion(DispatchCompletionEvent completionEvent) { System.out.println(" " + new Completion(completionEvent.getOwningProcess(), completionEvent.getIndex(), completionEvent .getContext())); getAbove().receiveResultCompletion(completionEvent); }
Completion c = (Completion) pendingEvents.remove(); getAbove().receiveResultCompletion( new DispatchCompletionEvent(c .getOwningProcess(), c.getIndex(), c .getContext()));
/** * Only going to receive this if the activity invocation was streaming, in * which case we need to handle all completion events and pass them up the * stack. */ @Override public void receiveResultCompletion(DispatchCompletionEvent completionEvent) { StateModel model; String owningProcess = completionEvent.getOwningProcess(); synchronized(stateMap) { model = stateMap.get(owningProcess); } if (model == null) { logger.warn("Error received for unknown owning process: " + owningProcess); return; } model.finishWith(completionEvent.getIndex()); getAbove().receiveResultCompletion(completionEvent); }
public void run() { getAbove().receiveResultCompletion( new DispatchCompletionEvent(e .getOwningProcess(), e .getIndex(), e.getContext()));
newIndex[i++] = indexValue; DispatchCompletionEvent c = new DispatchCompletionEvent( jobEvent.getOwningProcess(), newIndex, jobEvent .getContext());