Class Container

    • Constructor Detail

      • Container

        public Container()
      • Container

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

      • getImage

        public String getImage()
        Get 镜像
        Returns:
        Image 镜像
      • setImage

        public void setImage​(String Image)
        Set 镜像
        Parameters:
        Image - 镜像
      • getName

        public String getName()
        Get 容器名
        Returns:
        Name 容器名
      • setName

        public void setName​(String Name)
        Set 容器名
        Parameters:
        Name - 容器名
      • getCommands

        public String[] getCommands()
        Get 容器启动命令
        Returns:
        Commands 容器启动命令
      • setCommands

        public void setCommands​(String[] Commands)
        Set 容器启动命令
        Parameters:
        Commands - 容器启动命令
      • getArgs

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

        public void setArgs​(String[] Args)
        Set 容器启动参数
        Parameters:
        Args - 容器启动参数
      • getEnvironmentVars

        public EnvironmentVariable[] getEnvironmentVars()
        Get 容器内操作系统的环境变量
        Returns:
        EnvironmentVars 容器内操作系统的环境变量
      • setEnvironmentVars

        public void setEnvironmentVars​(EnvironmentVariable[] EnvironmentVars)
        Set 容器内操作系统的环境变量
        Parameters:
        EnvironmentVars - 容器内操作系统的环境变量
      • getCpu

        public Float getCpu()
        Get CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。
        Returns:
        Cpu CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。
      • setCpu

        public void setCpu​(Float Cpu)
        Set CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。
        Parameters:
        Cpu - CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。
      • getMemory

        public Float getMemory()
        Get 内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiB
        Returns:
        Memory 内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiB
      • setMemory

        public void setMemory​(Float Memory)
        Set 内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiB
        Parameters:
        Memory - 内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiB
      • getVolumeMounts

        public VolumeMount[] getVolumeMounts()
        Get 数据卷挂载信息 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        VolumeMounts 数据卷挂载信息 注意:此字段可能返回 null,表示取不到有效值。
      • setVolumeMounts

        public void setVolumeMounts​(VolumeMount[] VolumeMounts)
        Set 数据卷挂载信息 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        VolumeMounts - 数据卷挂载信息 注意:此字段可能返回 null,表示取不到有效值。
      • getCurrentState

        public ContainerState getCurrentState()
        Get 当前状态 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        CurrentState 当前状态 注意:此字段可能返回 null,表示取不到有效值。
      • setCurrentState

        public void setCurrentState​(ContainerState CurrentState)
        Set 当前状态 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        CurrentState - 当前状态 注意:此字段可能返回 null,表示取不到有效值。
      • getRestartCount

        public Long getRestartCount()
        Get 重启次数 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        RestartCount 重启次数 注意:此字段可能返回 null,表示取不到有效值。
      • setRestartCount

        public void setRestartCount​(Long RestartCount)
        Set 重启次数 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        RestartCount - 重启次数 注意:此字段可能返回 null,表示取不到有效值。
      • getWorkingDir

        public String getWorkingDir()
        Get 容器工作目录 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        WorkingDir 容器工作目录 注意:此字段可能返回 null,表示取不到有效值。
      • setWorkingDir

        public void setWorkingDir​(String WorkingDir)
        Set 容器工作目录 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        WorkingDir - 容器工作目录 注意:此字段可能返回 null,表示取不到有效值。
      • getLivenessProbe

        public LivenessOrReadinessProbe getLivenessProbe()
        Get 存活探针 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        LivenessProbe 存活探针 注意:此字段可能返回 null,表示取不到有效值。
      • setLivenessProbe

        public void setLivenessProbe​(LivenessOrReadinessProbe LivenessProbe)
        Set 存活探针 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        LivenessProbe - 存活探针 注意:此字段可能返回 null,表示取不到有效值。
      • getReadinessProbe

        public LivenessOrReadinessProbe getReadinessProbe()
        Get 就绪探针 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        ReadinessProbe 就绪探针 注意:此字段可能返回 null,表示取不到有效值。
      • setReadinessProbe

        public void setReadinessProbe​(LivenessOrReadinessProbe ReadinessProbe)
        Set 就绪探针 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        ReadinessProbe - 就绪探针 注意:此字段可能返回 null,表示取不到有效值。
      • getGpuLimit

        public Long getGpuLimit()
        Get Gpu限制 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        GpuLimit Gpu限制 注意:此字段可能返回 null,表示取不到有效值。
      • setGpuLimit

        public void setGpuLimit​(Long GpuLimit)
        Set Gpu限制 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        GpuLimit - Gpu限制 注意:此字段可能返回 null,表示取不到有效值。
      • getSecurityContext

        public SecurityContext getSecurityContext()
        Get 容器的安全上下文 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        SecurityContext 容器的安全上下文 注意:此字段可能返回 null,表示取不到有效值。
      • setSecurityContext

        public void setSecurityContext​(SecurityContext SecurityContext)
        Set 容器的安全上下文 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        SecurityContext - 容器的安全上下文 注意:此字段可能返回 null,表示取不到有效值。