Class Task

    • Constructor Detail

      • Task

        public Task()
      • Task

        public 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.
    • Method Detail

      • getApplication

        public Application getApplication()
        Get 应用程序信息
        Returns:
        Application 应用程序信息
      • setApplication

        public void setApplication​(Application Application)
        Set 应用程序信息
        Parameters:
        Application - 应用程序信息
      • getTaskName

        public String getTaskName()
        Get 任务名称,在一个作业内部唯一
        Returns:
        TaskName 任务名称,在一个作业内部唯一
      • setTaskName

        public void setTaskName​(String TaskName)
        Set 任务名称,在一个作业内部唯一
        Parameters:
        TaskName - 任务名称,在一个作业内部唯一
      • getTaskInstanceNum

        public Long getTaskInstanceNum()
        Get 任务实例运行个数
        Returns:
        TaskInstanceNum 任务实例运行个数
      • setTaskInstanceNum

        public void setTaskInstanceNum​(Long TaskInstanceNum)
        Set 任务实例运行个数
        Parameters:
        TaskInstanceNum - 任务实例运行个数
      • getComputeEnv

        public AnonymousComputeEnv getComputeEnv()
        Get 运行环境信息,ComputeEnv 和 EnvId 必须指定一个(且只有一个)参数。
        Returns:
        ComputeEnv 运行环境信息,ComputeEnv 和 EnvId 必须指定一个(且只有一个)参数。
      • setComputeEnv

        public void setComputeEnv​(AnonymousComputeEnv ComputeEnv)
        Set 运行环境信息,ComputeEnv 和 EnvId 必须指定一个(且只有一个)参数。
        Parameters:
        ComputeEnv - 运行环境信息,ComputeEnv 和 EnvId 必须指定一个(且只有一个)参数。
      • getEnvId

        public String getEnvId()
        Get 计算环境ID,ComputeEnv 和 EnvId 必须指定一个(且只有一个)参数。
        Returns:
        EnvId 计算环境ID,ComputeEnv 和 EnvId 必须指定一个(且只有一个)参数。
      • setEnvId

        public void setEnvId​(String EnvId)
        Set 计算环境ID,ComputeEnv 和 EnvId 必须指定一个(且只有一个)参数。
        Parameters:
        EnvId - 计算环境ID,ComputeEnv 和 EnvId 必须指定一个(且只有一个)参数。
      • getRedirectInfo

        public RedirectInfo getRedirectInfo()
        Get 重定向信息
        Returns:
        RedirectInfo 重定向信息
      • setRedirectInfo

        public void setRedirectInfo​(RedirectInfo RedirectInfo)
        Set 重定向信息
        Parameters:
        RedirectInfo - 重定向信息
      • getRedirectLocalInfo

        public RedirectLocalInfo getRedirectLocalInfo()
        Get 重定向本地信息
        Returns:
        RedirectLocalInfo 重定向本地信息
      • setRedirectLocalInfo

        public void setRedirectLocalInfo​(RedirectLocalInfo RedirectLocalInfo)
        Set 重定向本地信息
        Parameters:
        RedirectLocalInfo - 重定向本地信息
      • getInputMappings

        public InputMapping[] getInputMappings()
        Get 输入映射
        Returns:
        InputMappings 输入映射
      • setInputMappings

        public void setInputMappings​(InputMapping[] InputMappings)
        Set 输入映射
        Parameters:
        InputMappings - 输入映射
      • getOutputMappings

        public OutputMapping[] getOutputMappings()
        Get 输出映射
        Returns:
        OutputMappings 输出映射
      • setOutputMappings

        public void setOutputMappings​(OutputMapping[] OutputMappings)
        Set 输出映射
        Parameters:
        OutputMappings - 输出映射
      • getOutputMappingConfigs

        public OutputMappingConfig[] getOutputMappingConfigs()
        Get 输出映射配置
        Returns:
        OutputMappingConfigs 输出映射配置
      • setOutputMappingConfigs

        public void setOutputMappingConfigs​(OutputMappingConfig[] OutputMappingConfigs)
        Set 输出映射配置
        Parameters:
        OutputMappingConfigs - 输出映射配置
      • getEnvVars

        public EnvVar[] getEnvVars()
        Get 自定义环境变量
        Returns:
        EnvVars 自定义环境变量
      • setEnvVars

        public void setEnvVars​(EnvVar[] EnvVars)
        Set 自定义环境变量
        Parameters:
        EnvVars - 自定义环境变量
      • getAuthentications

        public Authentication[] getAuthentications()
        Get 授权信息
        Returns:
        Authentications 授权信息
      • setAuthentications

        public void setAuthentications​(Authentication[] Authentications)
        Set 授权信息
        Parameters:
        Authentications - 授权信息
      • getFailedAction

        public String getFailedAction()
        Get TaskInstance失败后处理方式,取值包括TERMINATE(默认)、INTERRUPT、FAST_INTERRUPT。
        Returns:
        FailedAction TaskInstance失败后处理方式,取值包括TERMINATE(默认)、INTERRUPT、FAST_INTERRUPT。
      • setFailedAction

        public void setFailedAction​(String FailedAction)
        Set TaskInstance失败后处理方式,取值包括TERMINATE(默认)、INTERRUPT、FAST_INTERRUPT。
        Parameters:
        FailedAction - TaskInstance失败后处理方式,取值包括TERMINATE(默认)、INTERRUPT、FAST_INTERRUPT。
      • getMaxRetryCount

        public Long getMaxRetryCount()
        Get 任务失败后的最大重试次数,默认为0
        Returns:
        MaxRetryCount 任务失败后的最大重试次数,默认为0
      • setMaxRetryCount

        public void setMaxRetryCount​(Long MaxRetryCount)
        Set 任务失败后的最大重试次数,默认为0
        Parameters:
        MaxRetryCount - 任务失败后的最大重试次数,默认为0
      • getTimeout

        public Long getTimeout()
        Get 任务启动后的超时时间,单位秒,默认为86400秒
        Returns:
        Timeout 任务启动后的超时时间,单位秒,默认为86400秒
      • setTimeout

        public void setTimeout​(Long Timeout)
        Set 任务启动后的超时时间,单位秒,默认为86400秒
        Parameters:
        Timeout - 任务启动后的超时时间,单位秒,默认为86400秒
      • getMaxConcurrentNum

        public Long getMaxConcurrentNum()
        Get 任务最大并发数限制,默认没有限制。
        Returns:
        MaxConcurrentNum 任务最大并发数限制,默认没有限制。
      • setMaxConcurrentNum

        public void setMaxConcurrentNum​(Long MaxConcurrentNum)
        Set 任务最大并发数限制,默认没有限制。
        Parameters:
        MaxConcurrentNum - 任务最大并发数限制,默认没有限制。
      • getRestartComputeNode

        public Boolean getRestartComputeNode()
        Get 任务完成后,重启计算节点。适用于指定计算环境执行任务。
        Returns:
        RestartComputeNode 任务完成后,重启计算节点。适用于指定计算环境执行任务。
      • setRestartComputeNode

        public void setRestartComputeNode​(Boolean RestartComputeNode)
        Set 任务完成后,重启计算节点。适用于指定计算环境执行任务。
        Parameters:
        RestartComputeNode - 任务完成后,重启计算节点。适用于指定计算环境执行任务。
      • getResourceMaxRetryCount

        public Long getResourceMaxRetryCount()
        Get 启动任务过程中,创建计算资源如CVM失败后的最大重试次数,默认为0。最大值100。
        Returns:
        ResourceMaxRetryCount 启动任务过程中,创建计算资源如CVM失败后的最大重试次数,默认为0。最大值100。
      • setResourceMaxRetryCount

        public void setResourceMaxRetryCount​(Long ResourceMaxRetryCount)
        Set 启动任务过程中,创建计算资源如CVM失败后的最大重试次数,默认为0。最大值100。
        Parameters:
        ResourceMaxRetryCount - 启动任务过程中,创建计算资源如CVM失败后的最大重试次数,默认为0。最大值100。