public abstract static class DXExecution.Describe extends Object
Modifier and Type | Field and Description |
---|---|
protected DXEnvironment |
env |
Modifier and Type | Method and Description |
---|---|
DXAnalysis |
getAnalysis()
Returns the analysis that this execution was run as a stage of, or null if this execution
was not run as a stage in an analysis.
|
String |
getBillTo()
Returns the user or organization that this execution was billed to.
|
Date |
getCreationDate()
Returns the date at which the execution was created.
|
<T> T |
getDetails(Class<T> detailsClass)
Returns the details (user-suppled metadata) of the execution, deserialized to the
specified class.
|
String |
getExecutableName()
Returns the name of the executable that was run to create this execution.
|
String |
getFolder()
Returns the output folder of the execution.
|
String |
getId()
Returns the ID of the execution.
|
<T> T |
getInput(Class<T> inputClass)
Returns the execution's input as it will be given to the job (to the extent possible),
deserialized to the specified class.
|
String |
getLaunchedBy()
Returns the user that launched this execution.
|
Date |
getModifiedDate()
Returns the date at which the execution was last modified.
|
String |
getName()
Returns the name of the execution.
|
<T> T |
getOriginalInput(Class<T> inputClass)
Returns the input of the execution, with default values filled in for optional inputs
that were not provided, deserialized to the specified class.
|
<T> T |
getOutput(Class<T> outputClass)
Returns the output of the execution, deserialized to the specified class, or null if no
output hash is available.
|
DXAnalysis |
getParentAnalysis()
Returns the execution's parent analysis, or
null if the execution was not created
by a analysis. |
DXJob |
getParentJob()
Returns the execution's parent job, or
null if the execution was not created by a
job. |
DXProject |
getProject()
Returns the project in which this execution was run.
|
Map<String,String> |
getProperties()
Returns the properties associated with the execution.
|
DXExecution |
getRootExecution()
Returns the execution at the root of the execution tree (the job or analysis that was
created by a user's external API call rather than by a job or run as a stage in an
analysis).
|
<T> T |
getRunInput(Class<T> inputClass)
Returns the raw input of the execution, deserialized to the specified class.
|
String |
getStage()
Returns the stage that this execution is associated with, if it was run as a stage in an
analysis; null otherwise.
|
List<String> |
getTags()
Returns the tags associated with the execution.
|
double |
getTotalPrice()
Returns the total price of the job.
|
DXContainer |
getWorkspace()
Returns the temporary workspace associated with the execution.
|
boolean |
isWorkspaceDestructionDelayed()
Returns true if the execution's temporary workspace will be kept around for 3 days after
the execution finishes.
|
protected DXEnvironment env
public DXAnalysis getAnalysis()
public String getBillTo()
public Date getCreationDate()
public <T> T getDetails(Class<T> detailsClass)
detailsClass
- class to deserialize topublic String getExecutableName()
public String getFolder()
public String getId()
public <T> T getInput(Class<T> inputClass)
getOriginalInput(Class)
, except that as job-based object references are resolved
they are replaced with the resulting object IDs; this does not apply to analyses, for
which the result of this method is always the same as that of
getOriginalInput(Class)
. Once a job has transitioned to state "runnable", this
is exactly the input that the job will receive.
Note that for jobs, this input may contain job-based object references (until the time that the job enters the "runnable" state), which may require special deserialization code in your target class.
inputClass
- class to deserialize topublic String getLaunchedBy()
public Date getModifiedDate()
public String getName()
public <T> T getOriginalInput(Class<T> inputClass)
Note that this input may contain job-based object references, which may require special deserialization code in your target class.
inputClass
- class to deserialize topublic <T> T getOutput(Class<T> outputClass)
outputClass
- class to deserialize topublic DXAnalysis getParentAnalysis()
null
if the execution was not created
by a analysis.public DXJob getParentJob()
null
if the execution was not created by a
job.public DXProject getProject()
public Map<String,String> getProperties()
public DXExecution getRootExecution()
public <T> T getRunInput(Class<T> inputClass)
Note that this input may contain job-based object references, which may require special deserialization code in your target class.
inputClass
- class to deserialize topublic String getStage()
public List<String> getTags()
public double getTotalPrice()
IllegalStateException
- if the requesting user does not have permission to view the
pricing model of the billed entity (billTo), or the price of the execution has
not been finalizedpublic DXContainer getWorkspace()
public boolean isWorkspaceDestructionDelayed()
IllegalStateException
- if the execution is a job and is neither an origin job nor
master jobCopyright © 2023. All Rights Reserved.