public class JobEnvironment extends Environment
| Constructor and Description |
|---|
JobEnvironment()
Constructor
|
JobEnvironment(Environment env)
Construct a JobEnvironment by copying the contents of a standard
Environment
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAllResults(java.util.Map<java.lang.String,java.util.LinkedHashSet<Data>> otherResults)
Add all the results from the supplied map to this environment's results
|
void |
addToResult(Data data)
Add a non-incremental data object to the result
|
void |
addToStepProperties(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> propsToAdd)
Add the supplied map of step properties.
|
void |
clearResultData() |
void |
clearStepProperties()
Clear all step properties
|
java.util.Map<java.lang.String,java.util.LinkedHashSet<Data>> |
getResultData()
Get a map of all the result data objects
|
java.util.LinkedHashSet<Data> |
getResultDataOfType(java.lang.String connName)
Get a list of any result data objects of the supplied connection type
|
java.util.Map<java.lang.String,java.lang.String> |
getStepProperties(java.lang.String stepName)
Get the step properties for a named step
|
boolean |
hasResultDataOfType(java.lang.String connName)
Returns true if the results contain data of a particular connection type
|
addVariable, addVariableSystemWide, containsEnvVariables, getRevision, getSystemWide, getVariableNames, getVariableValue, main, removeVariable, substitutepublic JobEnvironment()
public JobEnvironment(Environment env)
env - the Environment to copy into this JobEnvironmentpublic void addToResult(Data data)
data - the data to addpublic void addAllResults(java.util.Map<java.lang.String,java.util.LinkedHashSet<Data>> otherResults)
otherResults - the results to addpublic java.util.LinkedHashSet<Data> getResultDataOfType(java.lang.String connName)
connName - the name of the connection to get result data objects forpublic boolean hasResultDataOfType(java.lang.String connName)
connName - the name of the connection to check for datapublic java.util.Map<java.lang.String,java.util.LinkedHashSet<Data>> getResultData()
public void clearResultData()
public java.util.Map<java.lang.String,java.lang.String> getStepProperties(java.lang.String stepName)
stepName - the name of the step to get properties forpublic void clearStepProperties()
public void addToStepProperties(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> propsToAdd)
propsToAdd - properties to add