Class CreateJobRequest

    • Constructor Summary

      Constructors 
      Constructor Description
      CreateJobRequest()  
      CreateJobRequest​(CreateJobRequest 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 Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String[] getArgs()
      Get 任务启动参数
      String getCluster()
      Get 运行任务的集群,详见 [使用集群](https://cloud.tencent.com/document/product/851/17317)
      String[] getCommand()
      Get 任务启动命令
      Boolean getDebug()
      Get 启动 debug 模式,默认为 false
      String getMasterType()
      Get Master 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      String getName()
      Get 任务名称
      String[] getPackageDir()
      Get 挂载的路径,支持 NFS,[CFS](https://cloud.tencent.com/product/cfs) 和 [COS](https://cloud.tencent.com/product/cos),其中 COS 只在 [TI-A 定制环境](https://cloud.tencent.com/document/product/851/17320#ti-a-.E5.AE.9A.E5.88.B6.E7.8E.AF.E5.A2.83) 中支持
      Long getParameterServerCount()
      Get Parameter server 机器数量,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      String getParameterServerType()
      Get Parameter server 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      String[] getRuntimeConf()
      Get 运行任务的其他配置信息
      String getRuntimeVersion()
      Get 运行任务的环境,详见 [运行环境](https://cloud.tencent.com/document/product/851/17320)
      String getScaleTier()
      Get 运行任务的配置信息,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      Long getWorkerCount()
      Get Worker 机器数量,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      String getWorkerType()
      Get Worker 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      void setArgs​(String[] Args)
      Set 任务启动参数
      void setCluster​(String Cluster)
      Set 运行任务的集群,详见 [使用集群](https://cloud.tencent.com/document/product/851/17317)
      void setCommand​(String[] Command)
      Set 任务启动命令
      void setDebug​(Boolean Debug)
      Set 启动 debug 模式,默认为 false
      void setMasterType​(String MasterType)
      Set Master 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      void setName​(String Name)
      Set 任务名称
      void setPackageDir​(String[] PackageDir)
      Set 挂载的路径,支持 NFS,[CFS](https://cloud.tencent.com/product/cfs) 和 [COS](https://cloud.tencent.com/product/cos),其中 COS 只在 [TI-A 定制环境](https://cloud.tencent.com/document/product/851/17320#ti-a-.E5.AE.9A.E5.88.B6.E7.8E.AF.E5.A2.83) 中支持
      void setParameterServerCount​(Long ParameterServerCount)
      Set Parameter server 机器数量,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      void setParameterServerType​(String ParameterServerType)
      Set Parameter server 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      void setRuntimeConf​(String[] RuntimeConf)
      Set 运行任务的其他配置信息
      void setRuntimeVersion​(String RuntimeVersion)
      Set 运行任务的环境,详见 [运行环境](https://cloud.tencent.com/document/product/851/17320)
      void setScaleTier​(String ScaleTier)
      Set 运行任务的配置信息,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      void setWorkerCount​(Long WorkerCount)
      Set Worker 机器数量,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      void setWorkerType​(String WorkerType)
      Set Worker 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      void toMap​(HashMap<String,​String> map, String prefix)
      Internal implementation, normal users should not use it.
    • Constructor Detail

      • CreateJobRequest

        public CreateJobRequest()
      • CreateJobRequest

        public CreateJobRequest​(CreateJobRequest 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

      • getName

        public String getName()
        Get 任务名称
        Returns:
        Name 任务名称
      • setName

        public void setName​(String Name)
        Set 任务名称
        Parameters:
        Name - 任务名称
      • getCluster

        public String getCluster()
        Get 运行任务的集群,详见 [使用集群](https://cloud.tencent.com/document/product/851/17317)
        Returns:
        Cluster 运行任务的集群,详见 [使用集群](https://cloud.tencent.com/document/product/851/17317)
      • setCluster

        public void setCluster​(String Cluster)
        Set 运行任务的集群,详见 [使用集群](https://cloud.tencent.com/document/product/851/17317)
        Parameters:
        Cluster - 运行任务的集群,详见 [使用集群](https://cloud.tencent.com/document/product/851/17317)
      • getRuntimeVersion

        public String getRuntimeVersion()
        Get 运行任务的环境,详见 [运行环境](https://cloud.tencent.com/document/product/851/17320)
        Returns:
        RuntimeVersion 运行任务的环境,详见 [运行环境](https://cloud.tencent.com/document/product/851/17320)
      • setRuntimeVersion

        public void setRuntimeVersion​(String RuntimeVersion)
        Set 运行任务的环境,详见 [运行环境](https://cloud.tencent.com/document/product/851/17320)
        Parameters:
        RuntimeVersion - 运行任务的环境,详见 [运行环境](https://cloud.tencent.com/document/product/851/17320)
      • getPackageDir

        public String[] getPackageDir()
        Get 挂载的路径,支持 NFS,[CFS](https://cloud.tencent.com/product/cfs) 和 [COS](https://cloud.tencent.com/product/cos),其中 COS 只在 [TI-A 定制环境](https://cloud.tencent.com/document/product/851/17320#ti-a-.E5.AE.9A.E5.88.B6.E7.8E.AF.E5.A2.83) 中支持
        Returns:
        PackageDir 挂载的路径,支持 NFS,[CFS](https://cloud.tencent.com/product/cfs) 和 [COS](https://cloud.tencent.com/product/cos),其中 COS 只在 [TI-A 定制环境](https://cloud.tencent.com/document/product/851/17320#ti-a-.E5.AE.9A.E5.88.B6.E7.8E.AF.E5.A2.83) 中支持
      • setPackageDir

        public void setPackageDir​(String[] PackageDir)
        Set 挂载的路径,支持 NFS,[CFS](https://cloud.tencent.com/product/cfs) 和 [COS](https://cloud.tencent.com/product/cos),其中 COS 只在 [TI-A 定制环境](https://cloud.tencent.com/document/product/851/17320#ti-a-.E5.AE.9A.E5.88.B6.E7.8E.AF.E5.A2.83) 中支持
        Parameters:
        PackageDir - 挂载的路径,支持 NFS,[CFS](https://cloud.tencent.com/product/cfs) 和 [COS](https://cloud.tencent.com/product/cos),其中 COS 只在 [TI-A 定制环境](https://cloud.tencent.com/document/product/851/17320#ti-a-.E5.AE.9A.E5.88.B6.E7.8E.AF.E5.A2.83) 中支持
      • getCommand

        public String[] getCommand()
        Get 任务启动命令
        Returns:
        Command 任务启动命令
      • setCommand

        public void setCommand​(String[] Command)
        Set 任务启动命令
        Parameters:
        Command - 任务启动命令
      • getArgs

        public String[] getArgs()
        Get 任务启动参数
        Returns:
        Args 任务启动参数
      • setArgs

        public void setArgs​(String[] Args)
        Set 任务启动参数
        Parameters:
        Args - 任务启动参数
      • getScaleTier

        public String getScaleTier()
        Get 运行任务的配置信息,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
        Returns:
        ScaleTier 运行任务的配置信息,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      • setScaleTier

        public void setScaleTier​(String ScaleTier)
        Set 运行任务的配置信息,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
        Parameters:
        ScaleTier - 运行任务的配置信息,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      • getMasterType

        public String getMasterType()
        Get Master 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
        Returns:
        MasterType Master 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      • setMasterType

        public void setMasterType​(String MasterType)
        Set Master 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
        Parameters:
        MasterType - Master 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      • getWorkerType

        public String getWorkerType()
        Get Worker 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
        Returns:
        WorkerType Worker 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      • setWorkerType

        public void setWorkerType​(String WorkerType)
        Set Worker 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
        Parameters:
        WorkerType - Worker 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      • getParameterServerType

        public String getParameterServerType()
        Get Parameter server 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
        Returns:
        ParameterServerType Parameter server 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      • setParameterServerType

        public void setParameterServerType​(String ParameterServerType)
        Set Parameter server 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
        Parameters:
        ParameterServerType - Parameter server 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      • getWorkerCount

        public Long getWorkerCount()
        Get Worker 机器数量,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
        Returns:
        WorkerCount Worker 机器数量,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      • setWorkerCount

        public void setWorkerCount​(Long WorkerCount)
        Set Worker 机器数量,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
        Parameters:
        WorkerCount - Worker 机器数量,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      • getParameterServerCount

        public Long getParameterServerCount()
        Get Parameter server 机器数量,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
        Returns:
        ParameterServerCount Parameter server 机器数量,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      • setParameterServerCount

        public void setParameterServerCount​(Long ParameterServerCount)
        Set Parameter server 机器数量,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
        Parameters:
        ParameterServerCount - Parameter server 机器数量,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
      • getDebug

        public Boolean getDebug()
        Get 启动 debug 模式,默认为 false
        Returns:
        Debug 启动 debug 模式,默认为 false
      • setDebug

        public void setDebug​(Boolean Debug)
        Set 启动 debug 模式,默认为 false
        Parameters:
        Debug - 启动 debug 模式,默认为 false
      • getRuntimeConf

        public String[] getRuntimeConf()
        Get 运行任务的其他配置信息
        Returns:
        RuntimeConf 运行任务的其他配置信息
      • setRuntimeConf

        public void setRuntimeConf​(String[] RuntimeConf)
        Set 运行任务的其他配置信息
        Parameters:
        RuntimeConf - 运行任务的其他配置信息