Package com.amazonaws.services.elasticache

Examples of com.amazonaws.services.elasticache.AmazonElastiCacheClient


            log.error("Error reading properties from Amazon S3.", e);
        }
    }

    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

Related Classes of com.amazonaws.services.elasticache.AmazonElastiCacheClient

Copyright © 2018 www.massapicom. 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.