List of usage examples for com.amazonaws.services.elasticmapreduce AmazonElasticMapReduce listClusters
ListClustersResult listClusters();
From source file:rollsPOC2.util.AWSHelper.java
public static ClusterSummary findCluster(String clusterName, AmazonElasticMapReduce emr) { ListClustersResult clusters = emr.listClusters(); for (ClusterSummary clusterSummary : clusters.getClusters()) { if (clusterSummary.getName().equals(clusterName)) { return clusterSummary; }// www . j av a 2 s. c o m } return null; }