List of usage examples for com.amazonaws.services.elasticache.model CacheCluster getCacheNodes
public java.util.List<CacheNode> getCacheNodes()
A list of cache nodes that are members of the cluster.
From source file:org.springframework.cloud.aws.cache.ElastiCacheFactoryBean.java
License:Apache License
private static Endpoint getEndpointForCache(CacheCluster cacheCluster) { if (cacheCluster.getConfigurationEndpoint() != null) { return cacheCluster.getConfigurationEndpoint(); }/*from w w w. j a va 2 s .c o m*/ if (!cacheCluster.getCacheNodes().isEmpty()) { return cacheCluster.getCacheNodes().get(0).getEndpoint(); } throw new IllegalArgumentException("No Configuration Endpoint or Cache Node available to " + "receive address information for cluster:'" + cacheCluster.getCacheClusterId() + "'"); }