Class JobFlowInstancesDetail
- All Implemented Interfaces:
Serializable
,Cloneable
Specify the type of Amazon EC2 instances to run the job flow on.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for JobFlowInstancesDetail object.JobFlowInstancesDetail
(String masterInstanceType, String slaveInstanceType, Integer instanceCount) Constructs a new JobFlowInstancesDetail object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The name of an Amazon EC2 key pair that can be used to ssh to the master node of job flow.For job flows launched within Amazon Virtual Private Cloud, this value specifies the identifier of the subnet where the job flow was launched.The Hadoop version for the job flow.The number of Amazon EC2 instances in the cluster.Details about the job flow's instance groups.Specifies whether the job flow should terminate after completing all steps.The Amazon EC2 instance identifier of the master node.The Amazon EC2 master node instance type.The DNS name of the master node.An approximation of the cost of the job flow, represented in m1.small/hours.The Amazon EC2 Availability Zone for the job flow.The Amazon EC2 slave node instance type.Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user intervention, or in the event of a job flow error.int
hashCode()
Specifies whether the job flow should terminate after completing all steps.Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user intervention, or in the event of a job flow error.void
setEc2KeyName
(String ec2KeyName) The name of an Amazon EC2 key pair that can be used to ssh to the master node of job flow.void
setEc2SubnetId
(String ec2SubnetId) For job flows launched within Amazon Virtual Private Cloud, this value specifies the identifier of the subnet where the job flow was launched.void
setHadoopVersion
(String hadoopVersion) The Hadoop version for the job flow.void
setInstanceCount
(Integer instanceCount) The number of Amazon EC2 instances in the cluster.void
setInstanceGroups
(Collection<InstanceGroupDetail> instanceGroups) Details about the job flow's instance groups.void
setKeepJobFlowAliveWhenNoSteps
(Boolean keepJobFlowAliveWhenNoSteps) Specifies whether the job flow should terminate after completing all steps.void
setMasterInstanceId
(String masterInstanceId) The Amazon EC2 instance identifier of the master node.void
setMasterInstanceType
(String masterInstanceType) The Amazon EC2 master node instance type.void
setMasterPublicDnsName
(String masterPublicDnsName) The DNS name of the master node.void
setNormalizedInstanceHours
(Integer normalizedInstanceHours) An approximation of the cost of the job flow, represented in m1.small/hours.void
setPlacement
(PlacementType placement) The Amazon EC2 Availability Zone for the job flow.void
setSlaveInstanceType
(String slaveInstanceType) The Amazon EC2 slave node instance type.void
setTerminationProtected
(Boolean terminationProtected) Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user intervention, or in the event of a job flow error.toString()
Returns a string representation of this object; useful for testing and debugging.withEc2KeyName
(String ec2KeyName) The name of an Amazon EC2 key pair that can be used to ssh to the master node of job flow.withEc2SubnetId
(String ec2SubnetId) For job flows launched within Amazon Virtual Private Cloud, this value specifies the identifier of the subnet where the job flow was launched.withHadoopVersion
(String hadoopVersion) The Hadoop version for the job flow.withInstanceCount
(Integer instanceCount) The number of Amazon EC2 instances in the cluster.withInstanceGroups
(InstanceGroupDetail... instanceGroups) Details about the job flow's instance groups.withInstanceGroups
(Collection<InstanceGroupDetail> instanceGroups) Details about the job flow's instance groups.withKeepJobFlowAliveWhenNoSteps
(Boolean keepJobFlowAliveWhenNoSteps) Specifies whether the job flow should terminate after completing all steps.withMasterInstanceId
(String masterInstanceId) The Amazon EC2 instance identifier of the master node.withMasterInstanceType
(String masterInstanceType) The Amazon EC2 master node instance type.withMasterPublicDnsName
(String masterPublicDnsName) The DNS name of the master node.withNormalizedInstanceHours
(Integer normalizedInstanceHours) An approximation of the cost of the job flow, represented in m1.small/hours.withPlacement
(PlacementType placement) The Amazon EC2 Availability Zone for the job flow.withSlaveInstanceType
(String slaveInstanceType) The Amazon EC2 slave node instance type.withTerminationProtected
(Boolean terminationProtected) Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user intervention, or in the event of a job flow error.
-
Constructor Details
-
JobFlowInstancesDetail
public JobFlowInstancesDetail()Default constructor for JobFlowInstancesDetail object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
JobFlowInstancesDetail
public JobFlowInstancesDetail(String masterInstanceType, String slaveInstanceType, Integer instanceCount) Constructs a new JobFlowInstancesDetail object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
masterInstanceType
- The Amazon EC2 master node instance type.slaveInstanceType
- The Amazon EC2 slave node instance type.instanceCount
- The number of Amazon EC2 instances in the cluster. If the value is 1, the same instance serves as both the master and slave node. If the value is greater than 1, one instance is the master node and all others are slave nodes.
-
-
Method Details
-
setMasterInstanceType
The Amazon EC2 master node instance type.
- Parameters:
masterInstanceType
- The Amazon EC2 master node instance type.
-
getMasterInstanceType
The Amazon EC2 master node instance type.
- Returns:
- The Amazon EC2 master node instance type.
-
withMasterInstanceType
The Amazon EC2 master node instance type.
- Parameters:
masterInstanceType
- The Amazon EC2 master node instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMasterPublicDnsName
The DNS name of the master node.
- Parameters:
masterPublicDnsName
- The DNS name of the master node.
-
getMasterPublicDnsName
The DNS name of the master node.
- Returns:
- The DNS name of the master node.
-
withMasterPublicDnsName
The DNS name of the master node.
- Parameters:
masterPublicDnsName
- The DNS name of the master node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMasterInstanceId
The Amazon EC2 instance identifier of the master node.
- Parameters:
masterInstanceId
- The Amazon EC2 instance identifier of the master node.
-
getMasterInstanceId
The Amazon EC2 instance identifier of the master node.
- Returns:
- The Amazon EC2 instance identifier of the master node.
-
withMasterInstanceId
The Amazon EC2 instance identifier of the master node.
- Parameters:
masterInstanceId
- The Amazon EC2 instance identifier of the master node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSlaveInstanceType
The Amazon EC2 slave node instance type.
- Parameters:
slaveInstanceType
- The Amazon EC2 slave node instance type.
-
getSlaveInstanceType
The Amazon EC2 slave node instance type.
- Returns:
- The Amazon EC2 slave node instance type.
-
withSlaveInstanceType
The Amazon EC2 slave node instance type.
- Parameters:
slaveInstanceType
- The Amazon EC2 slave node instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceCount
The number of Amazon EC2 instances in the cluster. If the value is 1, the same instance serves as both the master and slave node. If the value is greater than 1, one instance is the master node and all others are slave nodes.
- Parameters:
instanceCount
- The number of Amazon EC2 instances in the cluster. If the value is 1, the same instance serves as both the master and slave node. If the value is greater than 1, one instance is the master node and all others are slave nodes.
-
getInstanceCount
The number of Amazon EC2 instances in the cluster. If the value is 1, the same instance serves as both the master and slave node. If the value is greater than 1, one instance is the master node and all others are slave nodes.
- Returns:
- The number of Amazon EC2 instances in the cluster. If the value is 1, the same instance serves as both the master and slave node. If the value is greater than 1, one instance is the master node and all others are slave nodes.
-
withInstanceCount
The number of Amazon EC2 instances in the cluster. If the value is 1, the same instance serves as both the master and slave node. If the value is greater than 1, one instance is the master node and all others are slave nodes.
- Parameters:
instanceCount
- The number of Amazon EC2 instances in the cluster. If the value is 1, the same instance serves as both the master and slave node. If the value is greater than 1, one instance is the master node and all others are slave nodes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getInstanceGroups
Details about the job flow's instance groups.
- Returns:
- Details about the job flow's instance groups.
-
setInstanceGroups
Details about the job flow's instance groups.
- Parameters:
instanceGroups
- Details about the job flow's instance groups.
-
withInstanceGroups
Details about the job flow's instance groups.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceGroups(java.util.Collection)
orwithInstanceGroups(java.util.Collection)
if you want to override the existing values.- Parameters:
instanceGroups
- Details about the job flow's instance groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withInstanceGroups
Details about the job flow's instance groups.
- Parameters:
instanceGroups
- Details about the job flow's instance groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNormalizedInstanceHours
An approximation of the cost of the job flow, represented in m1.small/hours. This value is incremented once for every hour an m1.small runs. Larger instances are weighted more, so an Amazon EC2 instance that is roughly four times more expensive would result in the normalized instance hours being incremented by four. This result is only an approximation and does not reflect the actual billing rate.
- Parameters:
normalizedInstanceHours
- An approximation of the cost of the job flow, represented in m1.small/hours. This value is incremented once for every hour an m1.small runs. Larger instances are weighted more, so an Amazon EC2 instance that is roughly four times more expensive would result in the normalized instance hours being incremented by four. This result is only an approximation and does not reflect the actual billing rate.
-
getNormalizedInstanceHours
An approximation of the cost of the job flow, represented in m1.small/hours. This value is incremented once for every hour an m1.small runs. Larger instances are weighted more, so an Amazon EC2 instance that is roughly four times more expensive would result in the normalized instance hours being incremented by four. This result is only an approximation and does not reflect the actual billing rate.
- Returns:
- An approximation of the cost of the job flow, represented in m1.small/hours. This value is incremented once for every hour an m1.small runs. Larger instances are weighted more, so an Amazon EC2 instance that is roughly four times more expensive would result in the normalized instance hours being incremented by four. This result is only an approximation and does not reflect the actual billing rate.
-
withNormalizedInstanceHours
An approximation of the cost of the job flow, represented in m1.small/hours. This value is incremented once for every hour an m1.small runs. Larger instances are weighted more, so an Amazon EC2 instance that is roughly four times more expensive would result in the normalized instance hours being incremented by four. This result is only an approximation and does not reflect the actual billing rate.
- Parameters:
normalizedInstanceHours
- An approximation of the cost of the job flow, represented in m1.small/hours. This value is incremented once for every hour an m1.small runs. Larger instances are weighted more, so an Amazon EC2 instance that is roughly four times more expensive would result in the normalized instance hours being incremented by four. This result is only an approximation and does not reflect the actual billing rate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEc2KeyName
The name of an Amazon EC2 key pair that can be used to ssh to the master node of job flow.
- Parameters:
ec2KeyName
- The name of an Amazon EC2 key pair that can be used to ssh to the master node of job flow.
-
getEc2KeyName
The name of an Amazon EC2 key pair that can be used to ssh to the master node of job flow.
- Returns:
- The name of an Amazon EC2 key pair that can be used to ssh to the master node of job flow.
-
withEc2KeyName
The name of an Amazon EC2 key pair that can be used to ssh to the master node of job flow.
- Parameters:
ec2KeyName
- The name of an Amazon EC2 key pair that can be used to ssh to the master node of job flow.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEc2SubnetId
For job flows launched within Amazon Virtual Private Cloud, this value specifies the identifier of the subnet where the job flow was launched.
- Parameters:
ec2SubnetId
- For job flows launched within Amazon Virtual Private Cloud, this value specifies the identifier of the subnet where the job flow was launched.
-
getEc2SubnetId
For job flows launched within Amazon Virtual Private Cloud, this value specifies the identifier of the subnet where the job flow was launched.
- Returns:
- For job flows launched within Amazon Virtual Private Cloud, this value specifies the identifier of the subnet where the job flow was launched.
-
withEc2SubnetId
For job flows launched within Amazon Virtual Private Cloud, this value specifies the identifier of the subnet where the job flow was launched.
- Parameters:
ec2SubnetId
- For job flows launched within Amazon Virtual Private Cloud, this value specifies the identifier of the subnet where the job flow was launched.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPlacement
The Amazon EC2 Availability Zone for the job flow.
- Parameters:
placement
- The Amazon EC2 Availability Zone for the job flow.
-
getPlacement
The Amazon EC2 Availability Zone for the job flow.
- Returns:
- The Amazon EC2 Availability Zone for the job flow.
-
withPlacement
The Amazon EC2 Availability Zone for the job flow.
- Parameters:
placement
- The Amazon EC2 Availability Zone for the job flow.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setKeepJobFlowAliveWhenNoSteps
Specifies whether the job flow should terminate after completing all steps.
- Parameters:
keepJobFlowAliveWhenNoSteps
- Specifies whether the job flow should terminate after completing all steps.
-
getKeepJobFlowAliveWhenNoSteps
Specifies whether the job flow should terminate after completing all steps.
- Returns:
- Specifies whether the job flow should terminate after completing all steps.
-
withKeepJobFlowAliveWhenNoSteps
Specifies whether the job flow should terminate after completing all steps.
- Parameters:
keepJobFlowAliveWhenNoSteps
- Specifies whether the job flow should terminate after completing all steps.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isKeepJobFlowAliveWhenNoSteps
Specifies whether the job flow should terminate after completing all steps.
- Returns:
- Specifies whether the job flow should terminate after completing all steps.
-
setTerminationProtected
Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user intervention, or in the event of a job flow error.
- Parameters:
terminationProtected
- Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user intervention, or in the event of a job flow error.
-
getTerminationProtected
Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user intervention, or in the event of a job flow error.
- Returns:
- Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user intervention, or in the event of a job flow error.
-
withTerminationProtected
Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user intervention, or in the event of a job flow error.
- Parameters:
terminationProtected
- Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user intervention, or in the event of a job flow error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isTerminationProtected
Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user intervention, or in the event of a job flow error.
- Returns:
- Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user intervention, or in the event of a job flow error.
-
setHadoopVersion
The Hadoop version for the job flow.
- Parameters:
hadoopVersion
- The Hadoop version for the job flow.
-
getHadoopVersion
The Hadoop version for the job flow.
- Returns:
- The Hadoop version for the job flow.
-
withHadoopVersion
The Hadoop version for the job flow.
- Parameters:
hadoopVersion
- The Hadoop version for the job flow.- 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
-