List<PubSubServer> serversList = new LinkedList<PubSubServer>();
// For the current region, create the necessary amount of hub
// servers. We will basically increment through the port numbers
// starting from the initial ones defined.
for (int j = 0; j < numServersPerRegion; j++) {
PubSubServer s = new PubSubServer(
getServerConfiguration(initialServerPort
+ (j + i * numServersPerRegion),
initialSSLServerPort + (j + i * numServersPerRegion),
regionName));
serversList.add(s);
s.start();
}
// Store this list of servers created for the current region
regionServersMap.put(regionName, serversList);
// Create a Hedwig Client that points to the first Hub server
// created in the loop above for the current region.