类 InstanceGroupConfig


  • public class InstanceGroupConfig
    extends Object
    Represent the configuration for an instance group.

    An instance group can be configured with name, type, instance type and instance count. And the type, instance type and count are essential options.

    • 构造器详细资料

      • InstanceGroupConfig

        public InstanceGroupConfig()
    • 方法详细资料

      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getType

        public String getType()
      • setType

        public void setType​(String type)
      • getInstanceType

        public String getInstanceType()
      • setInstanceType

        public void setInstanceType​(String instanceType)
      • getInstanceCount

        public int getInstanceCount()
      • setInstanceCount

        public void setInstanceCount​(int instanceCount)
      • withName

        public InstanceGroupConfig withName​(String name)
        Configure the name of the instance group.
        参数:
        name - The name of the instance group.
        返回:
        InstanceGroupConfig
      • withType

        public InstanceGroupConfig withType​(String type)
        Configure the type of the instance group. The type of instance group can be one of "Master", "Core" or "Task".
        参数:
        type - The type of the instance group.
        返回:
        InstanceGroupConfig
      • withInstanceType

        public InstanceGroupConfig withInstanceType​(String instanceType)
        Configure the instances'type in the target instance group. The instance's type can be one of the following options: "g.small": 2 CPU(cores) 8 GB mem 200 GB disk "c.large": 8 CPU(cores) 32 GB mem 600 GB disk "m.medium": 4 CPU(cores) 32 GB mem 400 GB disk "s.medium": 4 CPU(cores) 16 GB mem 1000 GB disk
        参数:
        instanceType - The instances' type for the instance group.
        返回:
        InstanceGroupConfig
      • withInstanceCount

        public InstanceGroupConfig withInstanceCount​(int instanceCount)
        Configure the instance count for the instance group.
        参数:
        instanceCount - The instance count for the instance group.
        返回:
        InstanceGroupConfig
      • getRootDiskSizeInGB

        public int getRootDiskSizeInGB()
      • setRootDiskSizeInGB

        public void setRootDiskSizeInGB​(int rootDiskSizeInGB)
      • withRootDiskSizeInGB

        public InstanceGroupConfig withRootDiskSizeInGB​(int rootDiskSizeInGB)
      • getRootDiskMediumType

        public String getRootDiskMediumType()
      • setRootDiskMediumType

        public void setRootDiskMediumType​(String rootDiskMediumType)