Examples of describeCacheClusters()


Examples of com.amazonaws.services.elasticache.AmazonElastiCacheClient.describeCacheClusters()

    private String getElastiCacheEndpoints(String clusterId) {
        AmazonElastiCacheClient elastiCacheClient = new AmazonElastiCacheClient(new BasicAWSCredentials(awsAccessKey, awsSecretKey));
        DescribeCacheClustersRequest request = new DescribeCacheClustersRequest();
        request.setCacheClusterId(clusterId);
        request.setShowCacheNodeInfo(true);
        DescribeCacheClustersResult result = elastiCacheClient.describeCacheClusters(request);
        List<String> endpoints = new ArrayList<String>();
        if (result != null) {
            for (CacheCluster cacheCluster : result.getCacheClusters()) {
                for (CacheNode node : cacheCluster.getCacheNodes()) {
                    endpoints.add(node.getEndpoint().getAddress() + ":" + node.getEndpoint().getPort());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.