All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.rubyeye.xmemcached.aws.ClusterConfiguration Maven / Gradle / Ivy

There is a newer version: 2.4.8
Show newest version
package net.rubyeye.xmemcached.aws;

import java.io.Serializable;
import java.util.List;

/**
 * Cluster configuration retrieved from ElasticCache.
 * 
 * @author dennis
 * 
 */
public class ClusterConfiguration implements Serializable {

  private static final long serialVersionUID = 6809891639636689050L;

  public int getVersion() {
    return version;
  }

  public void setVersion(int version) {
    this.version = version;
  }

  public List getNodeList() {
    return nodeList;
  }

  public void setNodeList(List nodeList) {
    this.nodeList = nodeList;
  }

  private int version;
  private List nodeList;

  public ClusterConfiguration(int version, List nodeList) {
    super();
    this.version = version;
    this.nodeList = nodeList;
  }

  public ClusterConfiguration() {
    super();
  }

  public String toString() {
    StringBuilder nodeList = new StringBuilder("{ Version: " + version + ", CacheNode List: ");
    nodeList.append(this.nodeList);
    nodeList.append("}");

    return nodeList.toString();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy