Example usage for com.amazonaws.services.elasticmapreduce.model VolumeSpecification setIops

List of usage examples for com.amazonaws.services.elasticmapreduce.model VolumeSpecification setIops

Introduction

In this page you can find the example usage for com.amazonaws.services.elasticmapreduce.model VolumeSpecification setIops.

Prototype


public void setIops(Integer iops) 

Source Link

Document

The number of I/O operations per second (IOPS) that the volume supports.

Usage

From source file:org.finra.herd.dao.impl.EmrDaoImpl.java

License:Apache License

/**
 * Creates an instance of {@link VolumeSpecification} from a given instance of {@link EmrClusterDefinitionVolumeSpecification}.
 *
 * @param emrClusterDefinitionVolumeSpecification the instance of {@link EmrClusterDefinitionVolumeSpecification}
 *
 * @return the instance of {@link VolumeSpecification}
 *///from  w w  w . j  av a2  s . co m
protected VolumeSpecification getVolumeSpecification(
        EmrClusterDefinitionVolumeSpecification emrClusterDefinitionVolumeSpecification) {
    VolumeSpecification volumeSpecification = null;

    if (emrClusterDefinitionVolumeSpecification != null) {
        volumeSpecification = new VolumeSpecification();
        volumeSpecification.setVolumeType(emrClusterDefinitionVolumeSpecification.getVolumeType());
        volumeSpecification.setIops(emrClusterDefinitionVolumeSpecification.getIops());
        volumeSpecification.setSizeInGB(emrClusterDefinitionVolumeSpecification.getSizeInGB());
    }

    return volumeSpecification;
}