public class Invocation extends Object implements Comparable<Invocation>
Constructor and Description |
---|
Invocation(String name,
int[] index,
Invocation parent,
StatusReport<?,?> report) |
Invocation(String name,
Invocation parent,
StatusReport<?,?> report) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Invocation o) |
Date |
getCompletedDate()
Returns the date that the status changed to COMPLETED.
|
String |
getId()
Returns the identifier for this invocation by prepending the identifier of the parent
invocation.
|
int[] |
getIndex() |
SortedMap<String,Path> |
getInputs()
Returns a map of input port names to values.
|
SortedSet<Invocation> |
getInvocations()
Returns the child invocations.
|
String |
getName()
Returns the name for this invocation.
|
SortedMap<String,Path> |
getOutputs()
Returns a map of output port names to values.
|
Invocation |
getParent()
Returns the parent invocation.
|
String |
getParentId() |
StatusReport<?,?> |
getReport() |
Date |
getStartedDate()
Returns the date that the status changed to RUNNING.
|
State |
getState()
Returns the current
State of the invocation. |
void |
setCompletedDate(Date completedDate)
Sets the date that the status changed to COMPLETED.
|
void |
setInput(String port,
Path value)
Sets the value of an input port.
|
void |
setInputs(Map<String,Path> inputs)
Sets the values of input ports.
|
void |
setOutput(String port,
Path value)
Sets the value of an output port.
|
void |
setOutputs(Map<String,Path> outputs)
Sets the values of input ports.
|
void |
setStartedDate(Date startedDate)
Sets the date that the status changed to RUNNING.
|
String |
toString() |
public Invocation(String name, Invocation parent, StatusReport<?,?> report)
public Invocation(String name, int[] index, Invocation parent, StatusReport<?,?> report)
public String getName()
public int[] getIndex()
public String getId()
public StatusReport<?,?> getReport()
public Invocation getParent()
Returns null
if there is no parent invocation.
public String getParentId()
public SortedSet<Invocation> getInvocations()
Returns and empty set if there are no child invocations.
public SortedMap<String,Path> getInputs()
Returns an empty map if there are no input ports. If there is no value for an input port the
map will contain a null
value.
public void setInputs(Map<String,Path> inputs)
inputs
- the values of input portspublic void setInput(String port, Path value)
port
- the port namevalue
- the port valuepublic SortedMap<String,Path> getOutputs()
Returns an empty map if there are no output ports. If there is no value for an output port
the map will contain a null
value.
public void setOutputs(Map<String,Path> outputs)
inputs
- the values of input portspublic void setOutput(String port, Path value)
port
- the port namevalue
- the port valuepublic State getState()
State
of the invocation.
An invocation state can be RUNNING or COMPLETED.
State
public Date getStartedDate()
If the status has never been RUNNING null
is returned.
public void setStartedDate(Date startedDate)
startedDate
- the date that the status changed to RUNNINGpublic Date getCompletedDate()
If the status never been COMPLETED null
is returned.
public void setCompletedDate(Date completedDate)
completedDate
- the date that the status changed to COMPLETEDpublic int compareTo(Invocation o)
compareTo
in interface Comparable<Invocation>
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.