/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
@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 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 Completion popOwningProcess() throws ProcessIdentifierException { return new Completion(popOwner(), index, context); }
public void receiveCompletion(String inputPortName, String owningProcess, int[] completionArray, InvocationContext context) throws WorkflowStructureException { nodeForName(inputPortName).receiveCompletion(0, new Completion(owningProcess, completionArray, context)); }
public void receiveCompletion(String inputPortName, String owningProcess, int[] completionArray, InvocationContext context) throws WorkflowStructureException { nodeForName(inputPortName).receiveCompletion(0, new Completion(owningProcess, completionArray, context)); }
public void receiveCompletion(String inputPortName, String owningProcess, int[] completionArray, InvocationContext context) throws WorkflowStructureException { nodeForName(inputPortName).receiveCompletion(0, new Completion(owningProcess, completionArray, context)); }
private void pingCompletionState(int inputIndex, String owningProcess, boolean isCompletion, InvocationContext context) { synchronized (ownerToCompletion) { CompletionState cs = getCompletionState(owningProcess); cs.inputComplete[inputIndex] = true; if (isCompletion) { cs.receivedCompletion = true; } if (cs.isComplete() && cs.receivedCompletion) { ownerToCompletion.remove(owningProcess); cleanUp(owningProcess); pushCompletion(new Completion(owningProcess, new int[0], 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 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 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 receiveResultCompletion(DispatchCompletionEvent completionEvent) { System.out.println(" " + new Completion(completionEvent.getOwningProcess(), completionEvent.getIndex(), completionEvent .getContext())); getAbove().receiveResultCompletion(completionEvent); }