public final void receiveCompletion(int inputIndex, Completion completion) { innerReceiveCompletion(inputIndex, completion); if (completion.getIndex().length == 0) { pingCompletionState(inputIndex, completion.getOwningProcess(), true, completion.getContext()); } }
/** * Push the index array onto the owning process name and return the new Job * object. Does not modify this object, the method creates a new Job with * the modified index array and owning process * * @return */ @Override public Completion pushIndex() { return new Completion(getPushedOwningProcess(), new int[] {}, context); }
/** * Pull the index array previous pushed to the owning process name and * prepend it to the current index array */ @Override public Completion popIndex() { return new Completion(owner.substring(0, owner.lastIndexOf(':')), getPoppedIndex(), context); }
@Override public Completion pushOwningProcess(String localProcessName) throws ProcessIdentifierException { return new Completion(pushOwner(localProcessName), index, context); }
@Override public Completion popOwningProcess() throws ProcessIdentifierException { return new Completion(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()); } }
} else if (e instanceof Completion) { Completion c = (Completion) e; int[] completionIndex = c.getIndex(); cache.resolveAt(owningProcess, completionIndex); if (c.getIndex().length == 0) { cacheMap.remove(c.getOwningProcess());
public void receiveCompletion(String inputPortName, String owningProcess, int[] completionArray, InvocationContext context) throws WorkflowStructureException { nodeForName(inputPortName).receiveCompletion(0, new Completion(owningProcess, completionArray, context)); }
public synchronized void receiveCompletion(int inputIndex, Completion completion) { String owningProcess = completion.getOwningProcess(); List<IterationInternalEvent> jobs = ownerToJobList.get(owningProcess); if (jobs == null) { jobs = new ArrayList<IterationInternalEvent>(); ownerToJobList.put(owningProcess, jobs); } jobs.add(completion); }
public void receiveCompletion(int inputIndex, Completion completion) { if (wrapping) { pushEvent(completion.popIndex()); } else { pushEvent(completion); } }
@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()); } }
} else if (e instanceof Completion) { Completion c = (Completion) e; int[] completionIndex = c.getIndex(); cache.resolveAt(owningProcess, completionIndex); if (c.getIndex().length == 0) { cacheMap.remove(c.getOwningProcess());
public void receiveCompletion(String inputPortName, String owningProcess, int[] completionArray, InvocationContext context) throws WorkflowStructureException { nodeForName(inputPortName).receiveCompletion(0, new Completion(owningProcess, completionArray, context)); }
@Override public Completion pushOwningProcess(String localProcessName) throws ProcessIdentifierException { return new Completion(pushOwner(localProcessName), index, context); }
@Override public Completion popOwningProcess() throws ProcessIdentifierException { return new Completion(popOwner(), index, context); }
public void receiveCompletion(int inputIndex, Completion completion) { if (wrapping) { pushEvent(completion.popIndex()); } else { pushEvent(completion); } }
public final void receiveCompletion(int inputIndex, Completion completion) { innerReceiveCompletion(inputIndex, completion); if (completion.getIndex().length == 0) { pingCompletionState(inputIndex, completion.getOwningProcess(), true, completion.getContext()); } }
@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()); } }
} else if (e instanceof Completion) { Completion c = (Completion) e; int[] completionIndex = c.getIndex(); cache.resolveAt(owningProcess, completionIndex); if (c.getIndex().length == 0) { cacheMap.remove(c.getOwningProcess());
public void receiveCompletion(String inputPortName, String owningProcess, int[] completionArray, InvocationContext context) throws WorkflowStructureException { nodeForName(inputPortName).receiveCompletion(0, new Completion(owningProcess, completionArray, context)); }