public class InstanceGroup extends Object implements 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.
Constructor and Description |
---|
InstanceGroup() |
Modifier and Type | Method and Description |
---|---|
InstanceGroup |
clone() |
boolean |
equals(Object obj) |
String |
getBidPrice()
The bid price for each EC2 instance in the instance group when
launching nodes as Spot Instances, expressed in USD.
|
List<Configuration> |
getConfigurations()
|
String |
getId()
The identifier of the instance group.
|
String |
getInstanceGroupType()
The type of the instance group.
|
String |
getInstanceType()
The EC2 instance type for all instances in the instance group.
|
String |
getMarket()
The marketplace to provision instances for this group.
|
String |
getName()
The name of the instance group.
|
Integer |
getRequestedInstanceCount()
The target number of instances for the instance group.
|
Integer |
getRunningInstanceCount()
The number of instances currently running in this instance group.
|
InstanceGroupStatus |
getStatus()
The current status of the instance group.
|
int |
hashCode() |
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 |
setId(String id)
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 |
setMarket(String market)
The marketplace to provision instances for this group.
|
void |
setName(String name)
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 |
setStatus(InstanceGroupStatus status)
The current status of the instance group.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceGroup |
withBidPrice(String bidPrice)
The bid price for each EC2 instance in the instance group when
launching nodes as Spot Instances, expressed in USD.
|
InstanceGroup |
withConfigurations(Collection<Configuration> configurations)
|
InstanceGroup |
withConfigurations(Configuration... configurations)
|
InstanceGroup |
withId(String id)
The identifier of the instance group.
|
InstanceGroup |
withInstanceGroupType(InstanceGroupType instanceGroupType)
The type of the instance group.
|
InstanceGroup |
withInstanceGroupType(String instanceGroupType)
The type of the instance group.
|
InstanceGroup |
withInstanceType(String instanceType)
The EC2 instance type for all instances in the instance group.
|
InstanceGroup |
withMarket(MarketType market)
The marketplace to provision instances for this group.
|
InstanceGroup |
withMarket(String market)
The marketplace to provision instances for this group.
|
InstanceGroup |
withName(String name)
The name of the instance group.
|
InstanceGroup |
withRequestedInstanceCount(Integer requestedInstanceCount)
The target number of instances for the instance group.
|
InstanceGroup |
withRunningInstanceCount(Integer runningInstanceCount)
The number of instances currently running in this instance group.
|
InstanceGroup |
withStatus(InstanceGroupStatus status)
The current status of the instance group.
|
public String getId()
public void setId(String id)
id
- The identifier of the instance group.public InstanceGroup withId(String id)
Returns a reference to this object so that method calls can be chained together.
id
- The identifier of the instance group.public String getName()
public void setName(String name)
name
- The name of the instance group.public InstanceGroup withName(String name)
Returns a reference to this object so that method calls can be chained together.
name
- The name of the instance group.public String getMarket()
Constraints:
Allowed Values: ON_DEMAND, SPOT
MarketType
public void setMarket(String market)
Constraints:
Allowed Values: ON_DEMAND, SPOT
market
- The marketplace to provision instances for this group. Valid values
are ON_DEMAND or SPOT.MarketType
public InstanceGroup withMarket(String market)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ON_DEMAND, SPOT
market
- The marketplace to provision instances for this group. Valid values
are ON_DEMAND or SPOT.MarketType
public void setMarket(MarketType market)
Constraints:
Allowed Values: ON_DEMAND, SPOT
market
- The marketplace to provision instances for this group. Valid values
are ON_DEMAND or SPOT.MarketType
public InstanceGroup withMarket(MarketType market)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ON_DEMAND, SPOT
market
- The marketplace to provision instances for this group. Valid values
are ON_DEMAND or SPOT.MarketType
public String getInstanceGroupType()
Constraints:
Allowed Values: MASTER, CORE, TASK
InstanceGroupType
public void setInstanceGroupType(String instanceGroupType)
Constraints:
Allowed Values: MASTER, CORE, TASK
instanceGroupType
- The type of the instance group. Valid values are MASTER, CORE or TASK.InstanceGroupType
public InstanceGroup withInstanceGroupType(String instanceGroupType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: MASTER, CORE, TASK
instanceGroupType
- The type of the instance group. Valid values are MASTER, CORE or TASK.InstanceGroupType
public void setInstanceGroupType(InstanceGroupType instanceGroupType)
Constraints:
Allowed Values: MASTER, CORE, TASK
instanceGroupType
- The type of the instance group. Valid values are MASTER, CORE or TASK.InstanceGroupType
public InstanceGroup withInstanceGroupType(InstanceGroupType instanceGroupType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: MASTER, CORE, TASK
instanceGroupType
- The type of the instance group. Valid values are MASTER, CORE or TASK.InstanceGroupType
public String getBidPrice()
public void setBidPrice(String bidPrice)
bidPrice
- The bid price for each EC2 instance in the instance group when
launching nodes as Spot Instances, expressed in USD.public InstanceGroup withBidPrice(String bidPrice)
Returns a reference to this object so that method calls can be chained together.
bidPrice
- The bid price for each EC2 instance in the instance group when
launching nodes as Spot Instances, expressed in USD.public String getInstanceType()
Constraints:
Length: 1 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setInstanceType(String instanceType)
Constraints:
Length: 1 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
instanceType
- The EC2 instance type for all instances in the instance group.public InstanceGroup withInstanceType(String instanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
instanceType
- The EC2 instance type for all instances in the instance group.public Integer getRequestedInstanceCount()
public void setRequestedInstanceCount(Integer requestedInstanceCount)
requestedInstanceCount
- The target number of instances for the instance group.public InstanceGroup withRequestedInstanceCount(Integer requestedInstanceCount)
Returns a reference to this object so that method calls can be chained together.
requestedInstanceCount
- The target number of instances for the instance group.public Integer getRunningInstanceCount()
public void setRunningInstanceCount(Integer runningInstanceCount)
runningInstanceCount
- The number of instances currently running in this instance group.public InstanceGroup withRunningInstanceCount(Integer runningInstanceCount)
Returns a reference to this object so that method calls can be chained together.
runningInstanceCount
- The number of instances currently running in this instance group.public InstanceGroupStatus getStatus()
public void setStatus(InstanceGroupStatus status)
status
- The current status of the instance group.public InstanceGroup withStatus(InstanceGroupStatus status)
Returns a reference to this object so that method calls can be chained together.
status
- The current status of the instance group.public List<Configuration> 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).
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).
public void setConfigurations(Collection<Configuration> configurations)
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).
configurations
- 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).
public InstanceGroup withConfigurations(Configuration... configurations)
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)
or withConfigurations(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
configurations
- 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).
public InstanceGroup withConfigurations(Collection<Configuration> configurations)
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 a reference to this object so that method calls can be chained together.
configurations
- 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).
public String toString()
toString
in class Object
Object.toString()
public InstanceGroup clone()
Copyright © 2015. All rights reserved.