|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.elasticmapreduce.model.JobFlowInstancesDetail
public class JobFlowInstancesDetail
Specify the type of Amazon EC2 instances to run the job flow on.
Constructor Summary | |
---|---|
JobFlowInstancesDetail()
Default constructor for a new JobFlowInstancesDetail object. |
|
JobFlowInstancesDetail(java.lang.String masterInstanceType,
java.lang.String slaveInstanceType,
java.lang.Integer instanceCount)
Constructs a new JobFlowInstancesDetail object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getEc2KeyName()
The name of an Amazon EC2 key pair that can be used to ssh to the master node of job flow. |
java.lang.String |
getEc2SubnetId()
For job flows launched within Amazon Virtual Private Cloud, this value specifies the identifier of the subnet where the job flow was launched. |
java.lang.String |
getHadoopVersion()
Specifies the Hadoop version for the job flow. |
java.lang.Integer |
getInstanceCount()
The number of Amazon EC2 instances in the cluster. |
java.util.List<InstanceGroupDetail> |
getInstanceGroups()
Details about the job flow's instance groups. |
java.lang.Boolean |
getKeepJobFlowAliveWhenNoSteps()
Specifies whether or not the job flow should terminate after completing all steps. |
java.lang.String |
getMasterInstanceId()
The Amazon EC2 instance identifier of the master node. |
java.lang.String |
getMasterInstanceType()
The Amazon EC2 master node instance type. |
java.lang.String |
getMasterPublicDnsName()
The DNS name of the master node. |
java.lang.Integer |
getNormalizedInstanceHours()
An approximation of the cost of the job flow, represented in m1.small/hours. |
PlacementType |
getPlacement()
Specifies the Amazon EC2 Availability Zone for the job flow. |
java.lang.String |
getSlaveInstanceType()
The Amazon EC2 slave node instance type. |
java.lang.Boolean |
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. |
int |
hashCode()
|
java.lang.Boolean |
isKeepJobFlowAliveWhenNoSteps()
Specifies whether or not the job flow should terminate after completing all steps. |
java.lang.Boolean |
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. |
void |
setEc2KeyName(java.lang.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(java.lang.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(java.lang.String hadoopVersion)
Specifies the Hadoop version for the job flow. |
void |
setInstanceCount(java.lang.Integer instanceCount)
The number of Amazon EC2 instances in the cluster. |
void |
setInstanceGroups(java.util.Collection<InstanceGroupDetail> instanceGroups)
Details about the job flow's instance groups. |
void |
setKeepJobFlowAliveWhenNoSteps(java.lang.Boolean keepJobFlowAliveWhenNoSteps)
Specifies whether or not the job flow should terminate after completing all steps. |
void |
setMasterInstanceId(java.lang.String masterInstanceId)
The Amazon EC2 instance identifier of the master node. |
void |
setMasterInstanceType(java.lang.String masterInstanceType)
The Amazon EC2 master node instance type. |
void |
setMasterPublicDnsName(java.lang.String masterPublicDnsName)
The DNS name of the master node. |
void |
setNormalizedInstanceHours(java.lang.Integer normalizedInstanceHours)
An approximation of the cost of the job flow, represented in m1.small/hours. |
void |
setPlacement(PlacementType placement)
Specifies the Amazon EC2 Availability Zone for the job flow. |
void |
setSlaveInstanceType(java.lang.String slaveInstanceType)
The Amazon EC2 slave node instance type. |
void |
setTerminationProtected(java.lang.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. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
JobFlowInstancesDetail |
withEc2KeyName(java.lang.String ec2KeyName)
The name of an Amazon EC2 key pair that can be used to ssh to the master node of job flow. |
JobFlowInstancesDetail |
withEc2SubnetId(java.lang.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. |
JobFlowInstancesDetail |
withHadoopVersion(java.lang.String hadoopVersion)
Specifies the Hadoop version for the job flow. |
JobFlowInstancesDetail |
withInstanceCount(java.lang.Integer instanceCount)
The number of Amazon EC2 instances in the cluster. |
JobFlowInstancesDetail |
withInstanceGroups(java.util.Collection<InstanceGroupDetail> instanceGroups)
Details about the job flow's instance groups. |
JobFlowInstancesDetail |
withInstanceGroups(InstanceGroupDetail... instanceGroups)
Details about the job flow's instance groups. |
JobFlowInstancesDetail |
withKeepJobFlowAliveWhenNoSteps(java.lang.Boolean keepJobFlowAliveWhenNoSteps)
Specifies whether or not the job flow should terminate after completing all steps. |
JobFlowInstancesDetail |
withMasterInstanceId(java.lang.String masterInstanceId)
The Amazon EC2 instance identifier of the master node. |
JobFlowInstancesDetail |
withMasterInstanceType(java.lang.String masterInstanceType)
The Amazon EC2 master node instance type. |
JobFlowInstancesDetail |
withMasterPublicDnsName(java.lang.String masterPublicDnsName)
The DNS name of the master node. |
JobFlowInstancesDetail |
withNormalizedInstanceHours(java.lang.Integer normalizedInstanceHours)
An approximation of the cost of the job flow, represented in m1.small/hours. |
JobFlowInstancesDetail |
withPlacement(PlacementType placement)
Specifies the Amazon EC2 Availability Zone for the job flow. |
JobFlowInstancesDetail |
withSlaveInstanceType(java.lang.String slaveInstanceType)
The Amazon EC2 slave node instance type. |
JobFlowInstancesDetail |
withTerminationProtected(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JobFlowInstancesDetail()
public JobFlowInstancesDetail(java.lang.String masterInstanceType, java.lang.String slaveInstanceType, java.lang.Integer instanceCount)
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 Detail |
---|
public java.lang.String getMasterInstanceType()
Constraints:
Length: 1 - 256
Pattern: [ -??-??-?\r\n\t]*
public void setMasterInstanceType(java.lang.String masterInstanceType)
Constraints:
Length: 1 - 256
Pattern: [ -??-??-?\r\n\t]*
masterInstanceType
- The Amazon EC2 master node instance type.public JobFlowInstancesDetail withMasterInstanceType(java.lang.String masterInstanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: [ -??-??-?\r\n\t]*
masterInstanceType
- The Amazon EC2 master node instance type.
public java.lang.String getMasterPublicDnsName()
Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*
public void setMasterPublicDnsName(java.lang.String masterPublicDnsName)
Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*
masterPublicDnsName
- The DNS name of the master node.public JobFlowInstancesDetail withMasterPublicDnsName(java.lang.String masterPublicDnsName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*
masterPublicDnsName
- The DNS name of the master node.
public java.lang.String getMasterInstanceId()
Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*
public void setMasterInstanceId(java.lang.String masterInstanceId)
Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*
masterInstanceId
- The Amazon EC2 instance identifier of the master node.public JobFlowInstancesDetail withMasterInstanceId(java.lang.String masterInstanceId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*
masterInstanceId
- The Amazon EC2 instance identifier of the master node.
public java.lang.String getSlaveInstanceType()
Constraints:
Length: 1 - 256
Pattern: [ -??-??-?\r\n\t]*
public void setSlaveInstanceType(java.lang.String slaveInstanceType)
Constraints:
Length: 1 - 256
Pattern: [ -??-??-?\r\n\t]*
slaveInstanceType
- The Amazon EC2 slave node instance type.public JobFlowInstancesDetail withSlaveInstanceType(java.lang.String slaveInstanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: [ -??-??-?\r\n\t]*
slaveInstanceType
- The Amazon EC2 slave node instance type.
public java.lang.Integer getInstanceCount()
public void setInstanceCount(java.lang.Integer instanceCount)
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.public JobFlowInstancesDetail withInstanceCount(java.lang.Integer instanceCount)
Returns a reference to this object so that method calls can be chained together.
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.
public java.util.List<InstanceGroupDetail> getInstanceGroups()
public void setInstanceGroups(java.util.Collection<InstanceGroupDetail> instanceGroups)
instanceGroups
- Details about the job flow's instance groups.public JobFlowInstancesDetail withInstanceGroups(InstanceGroupDetail... instanceGroups)
Returns a reference to this object so that method calls can be chained together.
instanceGroups
- Details about the job flow's instance groups.
public JobFlowInstancesDetail withInstanceGroups(java.util.Collection<InstanceGroupDetail> instanceGroups)
Returns a reference to this object so that method calls can be chained together.
instanceGroups
- Details about the job flow's instance groups.
public java.lang.Integer getNormalizedInstanceHours()
public void setNormalizedInstanceHours(java.lang.Integer normalizedInstanceHours)
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.public JobFlowInstancesDetail withNormalizedInstanceHours(java.lang.Integer normalizedInstanceHours)
Returns a reference to this object so that method calls can be chained together.
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.
public java.lang.String getEc2KeyName()
Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*
public void setEc2KeyName(java.lang.String ec2KeyName)
Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*
ec2KeyName
- The name of an Amazon EC2 key pair that can be used to ssh to the
master node of job flow.public JobFlowInstancesDetail withEc2KeyName(java.lang.String ec2KeyName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*
ec2KeyName
- The name of an Amazon EC2 key pair that can be used to ssh to the
master node of job flow.
public java.lang.String getEc2SubnetId()
Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*
public void setEc2SubnetId(java.lang.String ec2SubnetId)
Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*
ec2SubnetId
- For job flows launched within Amazon Virtual Private Cloud, this value
specifies the identifier of the subnet where the job flow was
launched.public JobFlowInstancesDetail withEc2SubnetId(java.lang.String ec2SubnetId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*
ec2SubnetId
- For job flows launched within Amazon Virtual Private Cloud, this value
specifies the identifier of the subnet where the job flow was
launched.
public PlacementType getPlacement()
public void setPlacement(PlacementType placement)
placement
- Specifies the Amazon EC2 Availability Zone for the job flow.public JobFlowInstancesDetail withPlacement(PlacementType placement)
Returns a reference to this object so that method calls can be chained together.
placement
- Specifies the Amazon EC2 Availability Zone for the job flow.
public java.lang.Boolean isKeepJobFlowAliveWhenNoSteps()
public void setKeepJobFlowAliveWhenNoSteps(java.lang.Boolean keepJobFlowAliveWhenNoSteps)
keepJobFlowAliveWhenNoSteps
- Specifies whether or not the job flow should terminate after
completing all steps.public JobFlowInstancesDetail withKeepJobFlowAliveWhenNoSteps(java.lang.Boolean keepJobFlowAliveWhenNoSteps)
Returns a reference to this object so that method calls can be chained together.
keepJobFlowAliveWhenNoSteps
- Specifies whether or not the job flow should terminate after
completing all steps.
public java.lang.Boolean getKeepJobFlowAliveWhenNoSteps()
public java.lang.Boolean isTerminationProtected()
public void setTerminationProtected(java.lang.Boolean terminationProtected)
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.public JobFlowInstancesDetail withTerminationProtected(java.lang.Boolean terminationProtected)
Returns a reference to this object so that method calls can be chained together.
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.
public java.lang.Boolean getTerminationProtected()
public java.lang.String getHadoopVersion()
Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*
public void setHadoopVersion(java.lang.String hadoopVersion)
Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*
hadoopVersion
- Specifies the Hadoop version for the job flow.public JobFlowInstancesDetail withHadoopVersion(java.lang.String hadoopVersion)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*
hadoopVersion
- Specifies the Hadoop version for the job flow.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |