public class Job extends IterationInternalEvent<Job>
Constructor and Description |
---|
Job(String owner,
int[] index,
Map<String,T2Reference> data,
InvocationContext context)
Create a new Job object with the specified owning process (colon
separated 'list' of process identifiers), index array and data map
|
Modifier and Type | Method and Description |
---|---|
Map<String,T2Reference> |
getData()
The actual data carried by this (partial) Job object is in the form of a
map, where the keys of the map are Strings identifying the named input
and the values are Strings containing valid data identifiers within the
context of a visible DataManager object (see CloudOne specification for
further information on the DataManager system)
|
Job |
popIndex()
Pull the index array previous pushed to the owning process name and
prepend it to the current index array
|
Job |
popOwningProcess()
Return a copy of the event subclass with the last owning process removed
from the owning process list.
|
Job |
pushIndex()
Push the index array onto the owning process name and return the new Job
object.
|
Job |
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()
Show the owner, index array and data map in textual form for debugging
and any other purpose.
|
getPoppedIndex, getPushedOwningProcess
getContext, getIndex, getOwningProcess, isFinal, popOwner, pushOwner
public Job(String owner, int[] index, Map<String,T2Reference> data, InvocationContext context)
owner
- index
- data
- public Job pushIndex()
pushIndex
in class IterationInternalEvent<Job>
public Job popIndex()
popIndex
in class IterationInternalEvent<Job>
public Map<String,T2Reference> getData()
public String toString()
Job(Process1)[2,0]{Input2=dataID4,Input1=dataID3}
public Job popOwningProcess() throws ProcessIdentifierException
Event
popOwningProcess
in class Event<Job>
ProcessIdentifierException
public Job pushOwningProcess(String localProcessName) throws ProcessIdentifierException
Event
pushOwningProcess
in class Event<Job>
localProcessName
- name to addProcessIdentifierException
- if the local process name contains the ':' characterCopyright © 2015–2016 The Apache Software Foundation. All rights reserved.