public SolrClusterOptions(String clusterName,Integer clusterSize){
  this.clusterName=clusterName;
  if (clusterSize == null) {
    this.clusterSize=FREE_CLUSTER_SIZE;
  }
 else {
    Validator.isTrue((clusterSize > 0),"clusterSize cannot be lower than 0");
    this.clusterSize=clusterSize.toString();
  }
}

public SolrClusterOptions ( String clusterName , Integer clusterSize ) { this . clusterName = clusterName ; if ( clusterSize == null ) { this . clusterSize = FREE_CLUSTER_SIZE ; } else { Validator . isTrue ( ( clusterSize > 0 ) , "clusterSize cannot be lower than 0" ) ; this . clusterSize = clusterSize . toString ( ) ; } }
instantiates options to create a new solr cluster of the specified size .
