public class Completion extends IterationInternalEvent<Completion>
The conceptual depth of a completion is the sum of the length of index array for any data tokens the completion shares a stream with and the depth of those tokens. This should be constant for any given token stream.
Constructor and Description |
---|
Completion(String owningProcess,
int[] completionIndex,
InvocationContext context)
Construct a new optionally partial completion event with the specified
owner and completion index
|
Completion(String owningProcess,
InvocationContext context)
Construct a new final completion event, equivalent to calling new
Completion(owningProcess, new int[0]);
|
Modifier and Type | Method and Description |
---|---|
Completion |
popIndex()
Pull the index array previous pushed to the owning process name and
prepend it to the current index array
|
Completion |
popOwningProcess()
Return a copy of the event subclass with the last owning process removed
from the owning process list.
|
Completion |
pushIndex()
Push the index array onto the owning process name and return the new Job
object.
|
Completion |
pushOwningProcess(String localProcessName)
Return a copy of the event subclass with the specified local process name
appended to the owning process identifier field.
|
String |
toString() |
getPoppedIndex, getPushedOwningProcess
getContext, getIndex, getOwningProcess, isFinal, popOwner, pushOwner
public Completion(String owningProcess, int[] completionIndex, InvocationContext context)
owningProcess
- completionIndex
- public Completion(String owningProcess, InvocationContext context)
owningProcess
- public String toString()
toString
in class Event<Completion>
public Completion pushIndex()
pushIndex
in class IterationInternalEvent<Completion>
public Completion popIndex()
popIndex
in class IterationInternalEvent<Completion>
public Completion popOwningProcess() throws ProcessIdentifierException
Event
popOwningProcess
in class Event<Completion>
ProcessIdentifierException
public Completion pushOwningProcess(String localProcessName) throws ProcessIdentifierException
Event
pushOwningProcess
in class Event<Completion>
localProcessName
- name to addProcessIdentifierException
- if the local process name contains the ':' characterCopyright © 2015–2016 The Apache Software Foundation. All rights reserved.