private ServerPod[] buildServers(int serverCount){
  ArrayList<ServerPod> serversPod=new ArrayList<>();
  for (int i=0; i < serverCount; i++) {
    if (i < _serverList.size()) {
      serversPod.add(_serverList.get(i));
    }
 else {
      serversPod.add(new ServerPod(i));
    }
  }
  ServerPod[] serverArray=new ServerPod[serverCount];
  for (int i=0; i < serverCount; i++) {
    serverArray[i]=serversPod.get(i);
  }
  return serverArray;
}

private ServerPod [ ] buildServers ( int serverCount ) { ArrayList < ServerPod > serversPod = new ArrayList < > ( ) ; for ( int i = 0 ; i < serverCount ; i ++ ) { if ( i < _serverList . size ( ) ) { serversPod . add ( _serverList . get ( i ) ) ; } else { serversPod . add ( new ServerPod ( i ) ) ; } } ServerPod [ ] serverArray = new ServerPod [ serverCount ] ; for ( int i = 0 ; i < serverCount ; i ++ ) { serverArray [ i ] = serversPod . get ( i ) ; } return serverArray ; }
create cluster pods using the configuration as a hint . both the cluster and cluster_hub pods use this .
