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

org.infinispan.client.hotrod.configuration.ClusterConfiguration Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.client.hotrod.configuration;

import java.util.List;

import org.infinispan.commons.util.Util;

/**
 * @since 8.1
 */
public class ClusterConfiguration {
   private final List serverCluster;
   private final String clusterName;
   private final ClientIntelligence intelligence;
   private final String sniHostName;

   public ClusterConfiguration(List serverCluster, String clusterName, ClientIntelligence intelligence, String sniHostName) {
      this.serverCluster = serverCluster;
      this.clusterName = clusterName;
      this.intelligence = intelligence;
      this.sniHostName = sniHostName;
   }

   public List getCluster() {
      return serverCluster;
   }

   public String getClusterName() {
      return clusterName;
   }

   public ClientIntelligence getClientIntelligence() {
      return intelligence;
   }

   public String sniHostName() {
      return sniHostName;
   }

   @Override
   public String toString() {
      return "ClusterConfiguration{" +
            "serverCluster=" + Util.toStr(serverCluster) +
            ", clusterName='" + clusterName + '\'' +
            ", intelligence=" + intelligence +
            ", sniHostName=" + sniHostName +
            '}';
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy