public class KubeTask extends Task
Modifier and Type | Class and Description |
---|---|
static class |
KubeTask.Command
KUBETASK REQUEST COMMAND
|
static class |
KubeTask.Kind
KUBETASK SUPPORT RESOURCE KIND
|
Task.Properties, Task.Property
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PRIORITY |
static String |
ODPS_KUBE_APP_ID |
static String |
ODPS_KUBE_RESOURCE_KIND |
static String |
ODPS_KUBE_RESOURCE_LABELS |
static String |
ODPS_KUBE_RESOURCE_NAME |
static String |
ODPS_KUBE_TASK_COMMAND |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getSettings() |
String |
getYamlResources() |
static Instance |
run(Odps odps,
String project,
String taskName,
String yamlPath) |
static Instance |
run(Odps odps,
String project,
String taskName,
String yamlPath,
int priority) |
static Instance |
run(Odps odps,
String project,
String taskName,
String appId,
KubeTask.Command command) |
static Instance |
run(Odps odps,
String project,
String taskName,
String appId,
KubeTask.Command command,
int priority) |
static Instance |
run(Odps odps,
String project,
String taskName,
String appId,
String resourceName,
String labels,
KubeTask.Command command,
KubeTask.Kind kind) |
static Instance |
run(Odps odps,
String project,
String taskName,
String appId,
String resourceName,
String labels,
KubeTask.Command command,
KubeTask.Kind kind,
int priority) |
getCommandText, getComment, getName, getProperties, setComment, setName, setProperties, setProperty
public static final int DEFAULT_PRIORITY
public static final String ODPS_KUBE_APP_ID
public static final String ODPS_KUBE_TASK_COMMAND
public static final String ODPS_KUBE_RESOURCE_NAME
public static final String ODPS_KUBE_RESOURCE_KIND
public static final String ODPS_KUBE_RESOURCE_LABELS
public String getYamlResources()
public static Instance run(Odps odps, String project, String taskName, String yamlPath) throws OdpsException, FileNotFoundException
odps
- Odps
project
- Project
taskName
- Task名称yamlPath
- Yaml文件的路径Instance
OdpsException
FileNotFoundException
public static Instance run(Odps odps, String project, String taskName, String yamlPath, int priority) throws OdpsException, FileNotFoundException
odps
- Odps
project
- Project
taskName
- Task名称yamlPath
- Yaml文件的路径priority
- 作业优先级Instance
OdpsException
FileNotFoundException
public static Instance run(Odps odps, String project, String taskName, String appId, String resourceName, String labels, KubeTask.Command command, KubeTask.Kind kind) throws OdpsException
odps
- Odps
project
- Project
taskName
- Task名称appId
- 执行作业的资源IDresourceName
- 执行作业内的资源名称labels
- 资源标签command
- 执行作业资源的操作命令kind
- 执行作业内的资源类型Instance
OdpsException
public static Instance run(Odps odps, String project, String taskName, String appId, String resourceName, String labels, KubeTask.Command command, KubeTask.Kind kind, int priority) throws OdpsException
odps
- Odps
project
- Project
taskName
- Task名称appId
- 执行作业的资源IDresourceName
- 执行作业内的资源名称labels
- 资源标签command
- 执行作业资源的操作命令kind
- 执行作业内的资源类型priority
- 作业优先级Instance
OdpsException
public static Instance run(Odps odps, String project, String taskName, String appId, KubeTask.Command command) throws OdpsException
odps
- Odps
project
- Project
taskName
- Task名称command
- 执行作业资源的操作命令appId
- 执行作业的资源IDInstance
OdpsException
public static Instance run(Odps odps, String project, String taskName, String appId, KubeTask.Command command, int priority) throws OdpsException
odps
- Odps
project
- Project
taskName
- Task名称command
- 执行作业资源的操作命令appId
- 执行作业的资源IDpriority
- 作业优先级Instance
OdpsException
Copyright © 2023 Alibaba Cloud Computing. All rights reserved.