T
- the type of the execution that will be producedpublic abstract class ExecutableRunner<T extends DXExecution> extends Object
DXExecutable.newRun()
.Modifier and Type | Field and Description |
---|---|
protected DXEnvironment |
env |
protected String |
executableId |
protected static com.fasterxml.jackson.databind.ObjectMapper |
MAPPER |
Modifier and Type | Method and Description |
---|---|
ExecutableRunner<T> |
addTags(Collection<String> tags)
Adds the specified tags to the resulting execution.
|
ExecutableRunner<T> |
delayWorkspaceDestruction()
Delays the destruction of the workspace of the resulting job so it can be examined for
debugging.
|
ExecutableRunner<T> |
dependsOn(DXDataObject dataObject)
Makes the resulting execution depend on the specified data object, so that the execution will
not begin until the data object is closed.
|
ExecutableRunner<T> |
dependsOn(DXExecution execution)
Makes the resulting execution depend on the specified execution, so that the former will not
begin until the latter has successfully completed.
|
ExecutableRunner<T> |
inFolder(String folder)
Deprecated.
Use
setFolder(String) instead |
ExecutableRunner<T> |
inProject(DXProject project)
Deprecated.
Use
setProject(DXProject) instead |
ExecutableRunner<T> |
putAllProperties(Map<String,String> properties)
Sets the specified properties on the execution to be created.
|
ExecutableRunner<T> |
putProperty(String key,
String value)
Sets the specified property on the execution to be created.
|
abstract T |
run()
Runs the executable.
|
ExecutableRunner<T> |
setDetails(Object details)
Sets the execution details to the JSON serialized value of the specified object.
|
ExecutableRunner<T> |
setFolder(String folder)
Sets the folder in which the execution's outputs will be deposited.
|
ExecutableRunner<T> |
setInput(Object inputObject)
Sets the input hash to the JSON serialized value of the specified object.
|
ExecutableRunner<T> |
setName(String name)
Sets the name of the resulting execution.
|
ExecutableRunner<T> |
setProject(DXProject project)
Sets the project context of the resulting execution.
|
ExecutableRunner<T> |
setRawInput(com.fasterxml.jackson.databind.JsonNode inputHash)
Sets the input hash to the specified JSON node.
|
ExecutableRunner<T> |
withDetails(Object details)
Deprecated.
Use
setDetails(Object) instead |
ExecutableRunner<T> |
withInput(Object inputObject)
Deprecated.
Use
setInput(Object) instead |
ExecutableRunner<T> |
withName(String name)
Deprecated.
Use
setName(String) instead |
ExecutableRunner<T> |
withRawInput(com.fasterxml.jackson.databind.JsonNode inputHash)
Deprecated.
Use
setRawInput(JsonNode) instead |
protected final String executableId
protected final DXEnvironment env
protected static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
public ExecutableRunner<T> addTags(Collection<String> tags)
tags
- tags to addpublic ExecutableRunner<T> delayWorkspaceDestruction()
public ExecutableRunner<T> dependsOn(DXDataObject dataObject)
dataObject
- data object to depend onpublic ExecutableRunner<T> dependsOn(DXExecution execution)
execution
- execution to depend on@Deprecated public ExecutableRunner<T> inFolder(String folder)
setFolder(String)
insteadfolder
- full path to folder (a String starting with "/")@Deprecated public ExecutableRunner<T> inProject(DXProject project)
setProject(DXProject)
insteadproject
- project in which the executable will be runpublic ExecutableRunner<T> putAllProperties(Map<String,String> properties)
properties
- Map containing non-null keys and values which will be set as property keys
and values respectivelyBuilder
objectpublic ExecutableRunner<T> putProperty(String key, String value)
key
- property key to setvalue
- property value to setBuilder
objectpublic abstract T run()
public ExecutableRunner<T> setDetails(Object details)
details
- user-supplied metadatapublic ExecutableRunner<T> setFolder(String folder)
folder
- full path to folder (a String starting with "/")public ExecutableRunner<T> setInput(Object inputObject)
inputObject
- object to be JSON serializedpublic ExecutableRunner<T> setName(String name)
name
- job namepublic ExecutableRunner<T> setProject(DXProject project)
project
- project in which the executable will be runpublic ExecutableRunner<T> setRawInput(com.fasterxml.jackson.databind.JsonNode inputHash)
inputHash
- @Deprecated public ExecutableRunner<T> withDetails(Object details)
setDetails(Object)
insteaddetails
- user-supplied metadata@Deprecated public ExecutableRunner<T> withInput(Object inputObject)
setInput(Object)
insteadinputObject
- object to be JSON serialized@Deprecated public ExecutableRunner<T> withName(String name)
setName(String)
insteadname
- job name@Deprecated public ExecutableRunner<T> withRawInput(com.fasterxml.jackson.databind.JsonNode inputHash)
setRawInput(JsonNode)
insteadinputHash
- Copyright © 2023. All Rights Reserved.