public abstract class DXExecution extends DXObject
| Modifier and Type | Class and Description |
|---|---|
static class |
DXExecution.Describe
Contains metadata about an execution.
|
protected static class |
DXExecution.DescribeResponseHash
Deserialized output from the /analysis-xxxx/describe or /job-xxxx/describe route (fields
common to all executions only).
|
| Modifier and Type | Field and Description |
|---|---|
protected com.fasterxml.jackson.databind.JsonNode |
cachedDescribe |
| Modifier | Constructor and Description |
|---|---|
protected |
DXExecution(String dxId,
String className,
DXEnvironment env)
Initializes a new execution with the specified execution ID and environment.
|
protected |
DXExecution(String dxId,
String className,
DXEnvironment env,
com.fasterxml.jackson.databind.JsonNode cachedDescribe)
Initializes a new execution with the specified execution ID, environment, and cached describe
data.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCachedDescribeAvailable()
Verifies that this object carries cached describe data.
|
abstract DXExecution.Describe |
describe()
Obtains metadata about the execution.
|
abstract DXExecution.Describe |
getCachedDescribe()
Returns metadata about the data object, like
describe(), but without making an API
call. |
static DXExecution |
getInstance(String executionId)
Returns a
DXExecution corresponding to an existing execution with the specified ID. |
static DXExecution |
getInstanceWithEnvironment(String executionId,
DXEnvironment env)
Returns a
DXExecution corresponding to an existing execution with the specified ID,
using the specified environment. |
abstract <T> T |
getOutput(Class<T> outputClass)
Returns the output of the execution, deserialized to the specified class.
|
abstract void |
terminate()
Terminates the execution.
|
abstract DXExecution |
waitUntilDone()
Waits until the execution has successfully completed and is in the DONE state.
|
apiCallOnObject, apiCallOnObject, equals, getId, hashCode, toStringprotected DXExecution(String dxId, String className, DXEnvironment env)
className - class name that should prefix the IDprotected DXExecution(String dxId, String className, DXEnvironment env, com.fasterxml.jackson.databind.JsonNode cachedDescribe)
className - class name that should prefix the IDpublic static DXExecution getInstance(String executionId)
DXExecution corresponding to an existing execution with the specified ID.executionId - DNAnexus execution idDXExecution handle to the specified objectpublic static DXExecution getInstanceWithEnvironment(String executionId, DXEnvironment env)
DXExecution corresponding to an existing execution with the specified ID,
using the specified environment.executionId - DNAnexus execution idenv - environment to use to make subsequent API requestsDXExecution handle to the specified objectprotected void checkCachedDescribeAvailable()
throws IllegalStateException
IllegalStateException - if cachedDescribe is not setpublic abstract DXExecution.Describe describe()
Describe containing execution metadatapublic abstract DXExecution.Describe getCachedDescribe()
describe(), but without making an API
call.
This cached describe info is only available if this object appears in the result of a
DXSearch.findExecutions() call that specified
DXSearch.FindExecutionsRequestBuilder.includeDescribeOutput(). The describe info that
is returned reflects the state of the object at the time that the search was performed.
Describe containing the execution's metadataIllegalStateException - if no cached describe info is availablepublic abstract <T> T getOutput(Class<T> outputClass) throws IllegalStateException
outputClass - class to deserialize toIllegalStateException - if the execution is not in the DONE state.public abstract void terminate()
public abstract DXExecution waitUntilDone() throws IllegalStateException
IllegalStateException - if the execution reaches the FAILED or TERMINATED state.Copyright © 2023. All Rights Reserved.