public class Job extends AbstractModel
Constructor and Description |
---|
Job() |
Modifier and Type | Method and Description |
---|---|
Dependence[] |
getDependences()
Get Dependency information
|
String |
getJobDescription()
Get Instance description
|
String |
getJobName()
Get Instance name
|
Notification[] |
getNotifications()
Get Notification information
|
Long |
getPriority()
Get Instance priority.
|
String |
getStateIfCreateCvmFailed()
Get Indicates which policy will be used in case that CVM instance creation fails.
|
String |
getTaskExecutionDependOn()
Get This is the dependency of the subsequent task on the previous task if there is a dependent relationship between them.
|
Task[] |
getTasks()
Get Job information
|
void |
setDependences(Dependence[] Dependences)
Set Dependency information
|
void |
setJobDescription(String JobDescription)
Set Instance description
|
void |
setJobName(String JobName)
Set Instance name
|
void |
setNotifications(Notification[] Notifications)
Set Notification information
|
void |
setPriority(Long Priority)
Set Instance priority.
|
void |
setStateIfCreateCvmFailed(String StateIfCreateCvmFailed)
Set Indicates which policy will be used in case that CVM instance creation fails.
|
void |
setTaskExecutionDependOn(String TaskExecutionDependOn)
Set This is the dependency of the subsequent task on the previous task if there is a dependent relationship between them.
|
void |
setTasks(Task[] Tasks)
Set Job information
|
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[] getTasks()
public void setTasks(Task[] Tasks)
Tasks
- Job informationpublic String getJobName()
public void setJobName(String JobName)
JobName
- Instance namepublic String getJobDescription()
public void setJobDescription(String JobDescription)
JobDescription
- Instance descriptionpublic Long getPriority()
public void setPriority(Long Priority)
Priority
- Instance priority. Tasks (Task) and task instances (TaskInstance) inherit the priority of the instancepublic Dependence[] getDependences()
public void setDependences(Dependence[] Dependences)
Dependences
- Dependency informationpublic Notification[] getNotifications()
public void setNotifications(Notification[] Notifications)
Notifications
- Notification informationpublic String getTaskExecutionDependOn()
public void setTaskExecutionDependOn(String TaskExecutionDependOn)
TaskExecutionDependOn
- This is the dependency of the subsequent task on the previous task if there is a dependent relationship between them. Value range: PRE_TASK_SUCCEED, PRE_TASK_AT_LEAST_PARTLY_SUCCEED, PRE_TASK_FINISHED. Default value: PRE_TASK_SUCCEED.public String getStateIfCreateCvmFailed()
public void setStateIfCreateCvmFailed(String StateIfCreateCvmFailed)
StateIfCreateCvmFailed
- Indicates which policy will be used in case that CVM instance creation fails. Value range: FAILED, RUNNABLE. FAILED indicates that the CVM instance creation failure will be processed as an execution failure, while RUNNABLE indicates that the failure will be processed as "keep waiting". Default value: FAILED. StateIfCreateCvmFailed is not valid for submitted jobs for which a compute environment is specified.Copyright © 2020. All rights reserved.