Class InstanceGroup
- All Implemented Interfaces:
Serializable
,Cloneable
This entity represents an instance group, which is a group of instances that have common purpose. For example, CORE instance group is used for HDFS.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.The EBS block devices that are mapped to this instance group.If the instance group is EBS-optimized.getId()
The identifier of the instance group.The type of the instance group.The EC2 instance type for all instances in the instance group.The marketplace to provision instances for this group.getName()
The name of the instance group.The target number of instances for the instance group.The number of instances currently running in this instance group.Policy for customizing shrink operations.The current status of the instance group.int
hashCode()
If the instance group is EBS-optimized.void
setBidPrice
(String bidPrice) The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.void
setConfigurations
(Collection<Configuration> configurations) void
setEbsBlockDevices
(Collection<EbsBlockDevice> ebsBlockDevices) The EBS block devices that are mapped to this instance group.void
setEbsOptimized
(Boolean ebsOptimized) If the instance group is EBS-optimized.void
The identifier of the instance group.void
setInstanceGroupType
(InstanceGroupType instanceGroupType) The type of the instance group.void
setInstanceGroupType
(String instanceGroupType) The type of the instance group.void
setInstanceType
(String instanceType) The EC2 instance type for all instances in the instance group.void
setMarket
(MarketType market) The marketplace to provision instances for this group.void
The marketplace to provision instances for this group.void
The name of the instance group.void
setRequestedInstanceCount
(Integer requestedInstanceCount) The target number of instances for the instance group.void
setRunningInstanceCount
(Integer runningInstanceCount) The number of instances currently running in this instance group.void
setShrinkPolicy
(ShrinkPolicy shrinkPolicy) Policy for customizing shrink operations.void
setStatus
(InstanceGroupStatus status) The current status of the instance group.toString()
Returns a string representation of this object; useful for testing and debugging.withBidPrice
(String bidPrice) The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.withConfigurations
(Configuration... configurations) withConfigurations
(Collection<Configuration> configurations) withEbsBlockDevices
(EbsBlockDevice... ebsBlockDevices) The EBS block devices that are mapped to this instance group.withEbsBlockDevices
(Collection<EbsBlockDevice> ebsBlockDevices) The EBS block devices that are mapped to this instance group.withEbsOptimized
(Boolean ebsOptimized) If the instance group is EBS-optimized.The identifier of the instance group.withInstanceGroupType
(InstanceGroupType instanceGroupType) The type of the instance group.withInstanceGroupType
(String instanceGroupType) The type of the instance group.withInstanceType
(String instanceType) The EC2 instance type for all instances in the instance group.withMarket
(MarketType market) The marketplace to provision instances for this group.withMarket
(String market) The marketplace to provision instances for this group.The name of the instance group.withRequestedInstanceCount
(Integer requestedInstanceCount) The target number of instances for the instance group.withRunningInstanceCount
(Integer runningInstanceCount) The number of instances currently running in this instance group.withShrinkPolicy
(ShrinkPolicy shrinkPolicy) Policy for customizing shrink operations.withStatus
(InstanceGroupStatus status) The current status of the instance group.
-
Constructor Details
-
InstanceGroup
public InstanceGroup()
-
-
Method Details
-
setId
The identifier of the instance group.
- Parameters:
id
- The identifier of the instance group.
-
getId
The identifier of the instance group.
- Returns:
- The identifier of the instance group.
-
withId
The identifier of the instance group.
- Parameters:
id
- The identifier of the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
The name of the instance group.
- Parameters:
name
- The name of the instance group.
-
getName
The name of the instance group.
- Returns:
- The name of the instance group.
-
withName
The name of the instance group.
- Parameters:
name
- The name of the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMarket
The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
- Parameters:
market
- The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.- See Also:
-
getMarket
The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
- Returns:
- The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
- See Also:
-
withMarket
The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
- Parameters:
market
- The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setMarket
The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
- Parameters:
market
- The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.- See Also:
-
withMarket
The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
- Parameters:
market
- The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setInstanceGroupType
The type of the instance group. Valid values are MASTER, CORE or TASK.
- Parameters:
instanceGroupType
- The type of the instance group. Valid values are MASTER, CORE or TASK.- See Also:
-
getInstanceGroupType
The type of the instance group. Valid values are MASTER, CORE or TASK.
- Returns:
- The type of the instance group. Valid values are MASTER, CORE or TASK.
- See Also:
-
withInstanceGroupType
The type of the instance group. Valid values are MASTER, CORE or TASK.
- Parameters:
instanceGroupType
- The type of the instance group. Valid values are MASTER, CORE or TASK.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setInstanceGroupType
The type of the instance group. Valid values are MASTER, CORE or TASK.
- Parameters:
instanceGroupType
- The type of the instance group. Valid values are MASTER, CORE or TASK.- See Also:
-
withInstanceGroupType
The type of the instance group. Valid values are MASTER, CORE or TASK.
- Parameters:
instanceGroupType
- The type of the instance group. Valid values are MASTER, CORE or TASK.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setBidPrice
The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
- Parameters:
bidPrice
- The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
-
getBidPrice
The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
- Returns:
- The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
-
withBidPrice
The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
- Parameters:
bidPrice
- The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceType
The EC2 instance type for all instances in the instance group.
- Parameters:
instanceType
- The EC2 instance type for all instances in the instance group.
-
getInstanceType
The EC2 instance type for all instances in the instance group.
- Returns:
- The EC2 instance type for all instances in the instance group.
-
withInstanceType
The EC2 instance type for all instances in the instance group.
- Parameters:
instanceType
- The EC2 instance type for all instances in the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRequestedInstanceCount
The target number of instances for the instance group.
- Parameters:
requestedInstanceCount
- The target number of instances for the instance group.
-
getRequestedInstanceCount
The target number of instances for the instance group.
- Returns:
- The target number of instances for the instance group.
-
withRequestedInstanceCount
The target number of instances for the instance group.
- Parameters:
requestedInstanceCount
- The target number of instances for the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRunningInstanceCount
The number of instances currently running in this instance group.
- Parameters:
runningInstanceCount
- The number of instances currently running in this instance group.
-
getRunningInstanceCount
The number of instances currently running in this instance group.
- Returns:
- The number of instances currently running in this instance group.
-
withRunningInstanceCount
The number of instances currently running in this instance group.
- Parameters:
runningInstanceCount
- The number of instances currently running in this instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
The current status of the instance group.
- Parameters:
status
- The current status of the instance group.
-
getStatus
The current status of the instance group.
- Returns:
- The current status of the instance group.
-
withStatus
The current status of the instance group.
- Parameters:
status
- The current status of the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getConfigurations
Amazon EMR releases 4.x or later.
The list of configurations supplied for an EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
- Returns:
- Amazon EMR releases 4.x or later.
-
setConfigurations
Amazon EMR releases 4.x or later.
The list of configurations supplied for an EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
- Parameters:
configurations
- Amazon EMR releases 4.x or later.
-
withConfigurations
Amazon EMR releases 4.x or later.
The list of configurations supplied for an EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
NOTE: This method appends the values to the existing list (if any). Use
setConfigurations(java.util.Collection)
orwithConfigurations(java.util.Collection)
if you want to override the existing values.- Parameters:
configurations
- Amazon EMR releases 4.x or later.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withConfigurations
Amazon EMR releases 4.x or later.
The list of configurations supplied for an EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
- Parameters:
configurations
- Amazon EMR releases 4.x or later.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getEbsBlockDevices
The EBS block devices that are mapped to this instance group.
- Returns:
- The EBS block devices that are mapped to this instance group.
-
setEbsBlockDevices
The EBS block devices that are mapped to this instance group.
- Parameters:
ebsBlockDevices
- The EBS block devices that are mapped to this instance group.
-
withEbsBlockDevices
The EBS block devices that are mapped to this instance group.
NOTE: This method appends the values to the existing list (if any). Use
setEbsBlockDevices(java.util.Collection)
orwithEbsBlockDevices(java.util.Collection)
if you want to override the existing values.- Parameters:
ebsBlockDevices
- The EBS block devices that are mapped to this instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEbsBlockDevices
The EBS block devices that are mapped to this instance group.
- Parameters:
ebsBlockDevices
- The EBS block devices that are mapped to this instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEbsOptimized
If the instance group is EBS-optimized. An Amazon EBS–optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.
- Parameters:
ebsOptimized
- If the instance group is EBS-optimized. An Amazon EBS–optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.
-
getEbsOptimized
If the instance group is EBS-optimized. An Amazon EBS–optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.
- Returns:
- If the instance group is EBS-optimized. An Amazon EBS–optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.
-
withEbsOptimized
If the instance group is EBS-optimized. An Amazon EBS–optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.
- Parameters:
ebsOptimized
- If the instance group is EBS-optimized. An Amazon EBS–optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEbsOptimized
If the instance group is EBS-optimized. An Amazon EBS–optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.
- Returns:
- If the instance group is EBS-optimized. An Amazon EBS–optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.
-
setShrinkPolicy
Policy for customizing shrink operations.
- Parameters:
shrinkPolicy
- Policy for customizing shrink operations.
-
getShrinkPolicy
Policy for customizing shrink operations.
- Returns:
- Policy for customizing shrink operations.
-
withShrinkPolicy
Policy for customizing shrink operations.
- Parameters:
shrinkPolicy
- Policy for customizing shrink operations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-