public class Task extends AbstractModel
Constructor and Description |
---|
Task() |
Task(Task source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Application |
getApplication()
Get 应用程序信息
|
Authentication[] |
getAuthentications()
Get 授权信息
|
AnonymousComputeEnv |
getComputeEnv()
Get 运行环境信息,ComputeEnv 和 EnvId 必须指定一个(且只有一个)参数。
|
String |
getEnvId()
Get 计算环境ID,ComputeEnv 和 EnvId 必须指定一个(且只有一个)参数。
|
EnvVar[] |
getEnvVars()
Get 自定义环境变量
|
String |
getFailedAction()
Get TaskInstance失败后处理方式,取值包括TERMINATE(默认)、INTERRUPT、FAST_INTERRUPT。
|
InputMapping[] |
getInputMappings()
Get 输入映射
|
Long |
getMaxConcurrentNum()
Get 任务最大并发数限制,默认没有限制。
|
Long |
getMaxRetryCount()
Get 任务失败后的最大重试次数,默认为0
|
OutputMappingConfig[] |
getOutputMappingConfigs()
Get 输出映射配置
|
OutputMapping[] |
getOutputMappings()
Get 输出映射
|
RedirectInfo |
getRedirectInfo()
Get 重定向信息
|
RedirectLocalInfo |
getRedirectLocalInfo()
Get 重定向本地信息
|
Long |
getResourceMaxRetryCount()
Get 启动任务过程中,创建计算资源如CVM失败后的最大重试次数,默认为0。
|
Boolean |
getRestartComputeNode()
Get 任务完成后,重启计算节点。适用于指定计算环境执行任务。
|
Long |
getTaskInstanceNum()
Get 任务实例运行个数
|
String |
getTaskName()
Get 任务名称,在一个作业内部唯一
|
Long |
getTimeout()
Get 任务启动后的超时时间,单位秒,默认为86400秒
|
void |
setApplication(Application Application)
Set 应用程序信息
|
void |
setAuthentications(Authentication[] Authentications)
Set 授权信息
|
void |
setComputeEnv(AnonymousComputeEnv ComputeEnv)
Set 运行环境信息,ComputeEnv 和 EnvId 必须指定一个(且只有一个)参数。
|
void |
setEnvId(String EnvId)
Set 计算环境ID,ComputeEnv 和 EnvId 必须指定一个(且只有一个)参数。
|
void |
setEnvVars(EnvVar[] EnvVars)
Set 自定义环境变量
|
void |
setFailedAction(String FailedAction)
Set TaskInstance失败后处理方式,取值包括TERMINATE(默认)、INTERRUPT、FAST_INTERRUPT。
|
void |
setInputMappings(InputMapping[] InputMappings)
Set 输入映射
|
void |
setMaxConcurrentNum(Long MaxConcurrentNum)
Set 任务最大并发数限制,默认没有限制。
|
void |
setMaxRetryCount(Long MaxRetryCount)
Set 任务失败后的最大重试次数,默认为0
|
void |
setOutputMappingConfigs(OutputMappingConfig[] OutputMappingConfigs)
Set 输出映射配置
|
void |
setOutputMappings(OutputMapping[] OutputMappings)
Set 输出映射
|
void |
setRedirectInfo(RedirectInfo RedirectInfo)
Set 重定向信息
|
void |
setRedirectLocalInfo(RedirectLocalInfo RedirectLocalInfo)
Set 重定向本地信息
|
void |
setResourceMaxRetryCount(Long ResourceMaxRetryCount)
Set 启动任务过程中,创建计算资源如CVM失败后的最大重试次数,默认为0。
|
void |
setRestartComputeNode(Boolean RestartComputeNode)
Set 任务完成后,重启计算节点。适用于指定计算环境执行任务。
|
void |
setTaskInstanceNum(Long TaskInstanceNum)
Set 任务实例运行个数
|
void |
setTaskName(String TaskName)
Set 任务名称,在一个作业内部唯一
|
void |
setTimeout(Long Timeout)
Set 任务启动后的超时时间,单位秒,默认为86400秒
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public Task()
public Task(Task source)
public Application getApplication()
public void setApplication(Application Application)
Application
- 应用程序信息public String getTaskName()
public void setTaskName(String TaskName)
TaskName
- 任务名称,在一个作业内部唯一public Long getTaskInstanceNum()
public void setTaskInstanceNum(Long TaskInstanceNum)
TaskInstanceNum
- 任务实例运行个数public AnonymousComputeEnv getComputeEnv()
public void setComputeEnv(AnonymousComputeEnv ComputeEnv)
ComputeEnv
- 运行环境信息,ComputeEnv 和 EnvId 必须指定一个(且只有一个)参数。public String getEnvId()
public void setEnvId(String EnvId)
EnvId
- 计算环境ID,ComputeEnv 和 EnvId 必须指定一个(且只有一个)参数。public RedirectInfo getRedirectInfo()
public void setRedirectInfo(RedirectInfo RedirectInfo)
RedirectInfo
- 重定向信息public RedirectLocalInfo getRedirectLocalInfo()
public void setRedirectLocalInfo(RedirectLocalInfo RedirectLocalInfo)
RedirectLocalInfo
- 重定向本地信息public InputMapping[] getInputMappings()
public void setInputMappings(InputMapping[] InputMappings)
InputMappings
- 输入映射public OutputMapping[] getOutputMappings()
public void setOutputMappings(OutputMapping[] OutputMappings)
OutputMappings
- 输出映射public OutputMappingConfig[] getOutputMappingConfigs()
public void setOutputMappingConfigs(OutputMappingConfig[] OutputMappingConfigs)
OutputMappingConfigs
- 输出映射配置public EnvVar[] getEnvVars()
public void setEnvVars(EnvVar[] EnvVars)
EnvVars
- 自定义环境变量public Authentication[] getAuthentications()
public void setAuthentications(Authentication[] Authentications)
Authentications
- 授权信息public String getFailedAction()
public void setFailedAction(String FailedAction)
FailedAction
- TaskInstance失败后处理方式,取值包括TERMINATE(默认)、INTERRUPT、FAST_INTERRUPT。public Long getMaxRetryCount()
public void setMaxRetryCount(Long MaxRetryCount)
MaxRetryCount
- 任务失败后的最大重试次数,默认为0public Long getTimeout()
public void setTimeout(Long Timeout)
Timeout
- 任务启动后的超时时间,单位秒,默认为86400秒public Long getMaxConcurrentNum()
public void setMaxConcurrentNum(Long MaxConcurrentNum)
MaxConcurrentNum
- 任务最大并发数限制,默认没有限制。public Boolean getRestartComputeNode()
public void setRestartComputeNode(Boolean RestartComputeNode)
RestartComputeNode
- 任务完成后,重启计算节点。适用于指定计算环境执行任务。public Long getResourceMaxRetryCount()
public void setResourceMaxRetryCount(Long ResourceMaxRetryCount)
ResourceMaxRetryCount
- 启动任务过程中,创建计算资源如CVM失败后的最大重试次数,默认为0。Copyright © 2021. All rights reserved.