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

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

Introduction

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

Prototype


public Integer getIops() 

Source Link

Document

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

Usage

From source file:org.finra.herd.dao.helper.EmrHelper.java

License:Apache License

/**
 * Returns EmrClusterVolumeSpecification
 *
 * @param volumeSpecification AWS object
 *
 * @return EmrClusterVolumeSpecification
 *//*from   w ww.ja  v  a 2 s .c  o m*/
protected EmrClusterVolumeSpecification getVolumeSpecification(VolumeSpecification volumeSpecification) {
    EmrClusterVolumeSpecification emrClusterVolumeSpecification = null;

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

    return emrClusterVolumeSpecification;
}