JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.elasticmapreduce.model

Class InstanceFleet

  • All Implemented Interfaces:
    StructuredPojo, Serializable, Cloneable


    @Generated(value="com.amazonaws:aws-java-sdk-code-generator")
    public class InstanceFleet
    extends Object
    implements Serializable, Cloneable, StructuredPojo 

    Describes an instance fleet, which is a group of Amazon EC2 instances that host a particular node type (master, core, or task) in an Amazon EMR cluster. Instance fleets can consist of a mix of instance types and On-Demand and Spot Instances, which are provisioned to meet a defined target capacity.

    The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions.

    See Also:
    AWS API Documentation, Serialized Form
    • Constructor Detail

      • InstanceFleet

        public InstanceFleet()
    • Method Detail

      • setId

        public void setId(String id)

        The unique identifier of the instance fleet.

        Parameters:
        id - The unique identifier of the instance fleet.
      • getId

        public String getId()

        The unique identifier of the instance fleet.

        Returns:
        The unique identifier of the instance fleet.
      • withId

        public InstanceFleet withId(String id)

        The unique identifier of the instance fleet.

        Parameters:
        id - The unique identifier of the instance fleet.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setName

        public void setName(String name)

        A friendly name for the instance fleet.

        Parameters:
        name - A friendly name for the instance fleet.
      • getName

        public String getName()

        A friendly name for the instance fleet.

        Returns:
        A friendly name for the instance fleet.
      • withName

        public InstanceFleet withName(String name)

        A friendly name for the instance fleet.

        Parameters:
        name - A friendly name for the instance fleet.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setStatus

        public void setStatus(InstanceFleetStatus status)

        The current status of the instance fleet.

        Parameters:
        status - The current status of the instance fleet.
      • getStatus

        public InstanceFleetStatus getStatus()

        The current status of the instance fleet.

        Returns:
        The current status of the instance fleet.
      • withStatus

        public InstanceFleet withStatus(InstanceFleetStatus status)

        The current status of the instance fleet.

        Parameters:
        status - The current status of the instance fleet.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setInstanceFleetType

        public void setInstanceFleetType(String instanceFleetType)

        The node type that the instance fleet hosts. Valid values are MASTER, CORE, or TASK.

        Parameters:
        instanceFleetType - The node type that the instance fleet hosts. Valid values are MASTER, CORE, or TASK.
        See Also:
        InstanceFleetType
      • getInstanceFleetType

        public String getInstanceFleetType()

        The node type that the instance fleet hosts. Valid values are MASTER, CORE, or TASK.

        Returns:
        The node type that the instance fleet hosts. Valid values are MASTER, CORE, or TASK.
        See Also:
        InstanceFleetType
      • withInstanceFleetType

        public InstanceFleet withInstanceFleetType(String instanceFleetType)

        The node type that the instance fleet hosts. Valid values are MASTER, CORE, or TASK.

        Parameters:
        instanceFleetType - The node type that the instance fleet hosts. Valid values are MASTER, CORE, or TASK.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InstanceFleetType
      • setInstanceFleetType

        public void setInstanceFleetType(InstanceFleetType instanceFleetType)

        The node type that the instance fleet hosts. Valid values are MASTER, CORE, or TASK.

        Parameters:
        instanceFleetType - The node type that the instance fleet hosts. Valid values are MASTER, CORE, or TASK.
        See Also:
        InstanceFleetType
      • withInstanceFleetType

        public InstanceFleet withInstanceFleetType(InstanceFleetType instanceFleetType)

        The node type that the instance fleet hosts. Valid values are MASTER, CORE, or TASK.

        Parameters:
        instanceFleetType - The node type that the instance fleet hosts. Valid values are MASTER, CORE, or TASK.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InstanceFleetType
      • setTargetOnDemandCapacity

        public void setTargetOnDemandCapacity(Integer targetOnDemandCapacity)

        The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand Instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand Instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When an On-Demand Instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units. You can use InstanceFleet$ProvisionedOnDemandCapacity to determine the Spot capacity units that have been provisioned for the instance fleet.

        If not specified or set to 0, only Spot Instances are provisioned for the instance fleet using TargetSpotCapacity. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.

        Parameters:
        targetOnDemandCapacity - The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand Instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand Instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When an On-Demand Instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units. You can use InstanceFleet$ProvisionedOnDemandCapacity to determine the Spot capacity units that have been provisioned for the instance fleet.

        If not specified or set to 0, only Spot Instances are provisioned for the instance fleet using TargetSpotCapacity. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.

      • getTargetOnDemandCapacity

        public Integer getTargetOnDemandCapacity()

        The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand Instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand Instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When an On-Demand Instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units. You can use InstanceFleet$ProvisionedOnDemandCapacity to determine the Spot capacity units that have been provisioned for the instance fleet.

        If not specified or set to 0, only Spot Instances are provisioned for the instance fleet using TargetSpotCapacity. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.

        Returns:
        The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand Instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand Instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When an On-Demand Instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units. You can use InstanceFleet$ProvisionedOnDemandCapacity to determine the Spot capacity units that have been provisioned for the instance fleet.

        If not specified or set to 0, only Spot Instances are provisioned for the instance fleet using TargetSpotCapacity. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.

      • withTargetOnDemandCapacity

        public InstanceFleet withTargetOnDemandCapacity(Integer targetOnDemandCapacity)

        The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand Instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand Instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When an On-Demand Instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units. You can use InstanceFleet$ProvisionedOnDemandCapacity to determine the Spot capacity units that have been provisioned for the instance fleet.

        If not specified or set to 0, only Spot Instances are provisioned for the instance fleet using TargetSpotCapacity. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.

        Parameters:
        targetOnDemandCapacity - The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand Instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand Instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When an On-Demand Instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units. You can use InstanceFleet$ProvisionedOnDemandCapacity to determine the Spot capacity units that have been provisioned for the instance fleet.

        If not specified or set to 0, only Spot Instances are provisioned for the instance fleet using TargetSpotCapacity. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setTargetSpotCapacity

        public void setTargetSpotCapacity(Integer targetSpotCapacity)

        The target capacity of Spot units for the instance fleet, which determines how many Spot Instances to provision. When the instance fleet launches, Amazon EMR tries to provision Spot Instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When a Spot instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units. You can use InstanceFleet$ProvisionedSpotCapacity to determine the Spot capacity units that have been provisioned for the instance fleet.

        If not specified or set to 0, only On-Demand Instances are provisioned for the instance fleet. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.

        Parameters:
        targetSpotCapacity - The target capacity of Spot units for the instance fleet, which determines how many Spot Instances to provision. When the instance fleet launches, Amazon EMR tries to provision Spot Instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When a Spot instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units. You can use InstanceFleet$ProvisionedSpotCapacity to determine the Spot capacity units that have been provisioned for the instance fleet.

        If not specified or set to 0, only On-Demand Instances are provisioned for the instance fleet. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.

      • getTargetSpotCapacity

        public Integer getTargetSpotCapacity()

        The target capacity of Spot units for the instance fleet, which determines how many Spot Instances to provision. When the instance fleet launches, Amazon EMR tries to provision Spot Instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When a Spot instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units. You can use InstanceFleet$ProvisionedSpotCapacity to determine the Spot capacity units that have been provisioned for the instance fleet.

        If not specified or set to 0, only On-Demand Instances are provisioned for the instance fleet. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.

        Returns:
        The target capacity of Spot units for the instance fleet, which determines how many Spot Instances to provision. When the instance fleet launches, Amazon EMR tries to provision Spot Instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When a Spot instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units. You can use InstanceFleet$ProvisionedSpotCapacity to determine the Spot capacity units that have been provisioned for the instance fleet.

        If not specified or set to 0, only On-Demand Instances are provisioned for the instance fleet. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.

      • withTargetSpotCapacity

        public InstanceFleet withTargetSpotCapacity(Integer targetSpotCapacity)

        The target capacity of Spot units for the instance fleet, which determines how many Spot Instances to provision. When the instance fleet launches, Amazon EMR tries to provision Spot Instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When a Spot instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units. You can use InstanceFleet$ProvisionedSpotCapacity to determine the Spot capacity units that have been provisioned for the instance fleet.

        If not specified or set to 0, only On-Demand Instances are provisioned for the instance fleet. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.

        Parameters:
        targetSpotCapacity - The target capacity of Spot units for the instance fleet, which determines how many Spot Instances to provision. When the instance fleet launches, Amazon EMR tries to provision Spot Instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When a Spot instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units. You can use InstanceFleet$ProvisionedSpotCapacity to determine the Spot capacity units that have been provisioned for the instance fleet.

        If not specified or set to 0, only On-Demand Instances are provisioned for the instance fleet. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setProvisionedOnDemandCapacity

        public void setProvisionedOnDemandCapacity(Integer provisionedOnDemandCapacity)

        The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.

        Parameters:
        provisionedOnDemandCapacity - The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
      • getProvisionedOnDemandCapacity

        public Integer getProvisionedOnDemandCapacity()

        The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.

        Returns:
        The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
      • withProvisionedOnDemandCapacity

        public InstanceFleet withProvisionedOnDemandCapacity(Integer provisionedOnDemandCapacity)

        The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.

        Parameters:
        provisionedOnDemandCapacity - The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setProvisionedSpotCapacity

        public void setProvisionedSpotCapacity(Integer provisionedSpotCapacity)

        The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.

        Parameters:
        provisionedSpotCapacity - The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
      • getProvisionedSpotCapacity

        public Integer getProvisionedSpotCapacity()

        The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.

        Returns:
        The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
      • withProvisionedSpotCapacity

        public InstanceFleet withProvisionedSpotCapacity(Integer provisionedSpotCapacity)

        The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.

        Parameters:
        provisionedSpotCapacity - The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getInstanceTypeSpecifications

        public List<InstanceTypeSpecification> getInstanceTypeSpecifications()

        An array of specifications for the instance types that comprise an instance fleet.

        Returns:
        An array of specifications for the instance types that comprise an instance fleet.
      • setInstanceTypeSpecifications

        public void setInstanceTypeSpecifications(Collection<InstanceTypeSpecification> instanceTypeSpecifications)

        An array of specifications for the instance types that comprise an instance fleet.

        Parameters:
        instanceTypeSpecifications - An array of specifications for the instance types that comprise an instance fleet.
      • withInstanceTypeSpecifications

        public InstanceFleet withInstanceTypeSpecifications(Collection<InstanceTypeSpecification> instanceTypeSpecifications)

        An array of specifications for the instance types that comprise an instance fleet.

        Parameters:
        instanceTypeSpecifications - An array of specifications for the instance types that comprise an instance fleet.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setLaunchSpecifications

        public void setLaunchSpecifications(InstanceFleetProvisioningSpecifications launchSpecifications)

        Describes the launch specification for an instance fleet.

        Parameters:
        launchSpecifications - Describes the launch specification for an instance fleet.
      • getLaunchSpecifications

        public InstanceFleetProvisioningSpecifications getLaunchSpecifications()

        Describes the launch specification for an instance fleet.

        Returns:
        Describes the launch specification for an instance fleet.
      • withLaunchSpecifications

        public InstanceFleet withLaunchSpecifications(InstanceFleetProvisioningSpecifications launchSpecifications)

        Describes the launch specification for an instance fleet.

        Parameters:
        launchSpecifications - Describes the launch specification for an instance fleet.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setResizeSpecifications

        public void setResizeSpecifications(InstanceFleetResizingSpecifications resizeSpecifications)

        The resize specification for the instance fleet.

        Parameters:
        resizeSpecifications - The resize specification for the instance fleet.
      • getResizeSpecifications

        public InstanceFleetResizingSpecifications getResizeSpecifications()

        The resize specification for the instance fleet.

        Returns:
        The resize specification for the instance fleet.
      • withResizeSpecifications

        public InstanceFleet withResizeSpecifications(InstanceFleetResizingSpecifications resizeSpecifications)

        The resize specification for the instance fleet.

        Parameters:
        resizeSpecifications - The resize specification for the instance fleet.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /