for (String nodeIdString : nodeIdsStringArray) {
try {
int nodeId = Integer.parseInt(nodeIdString);
nodeIds.add(nodeId);
} catch (NumberFormatException ex) {
throw new ClusterJFatalUserException(local.message("ERR_Node_Ids_Format", nodeIdsProperty), ex);
}
}
// validate the size of the node ids with the connection pool size
if (connectionPoolSize != DEFAULT_PROPERTY_CONNECTION_POOL_SIZE) {
// both are specified; they must match or nodeIds size must be 1
if (nodeIds.size() ==1) {
// add new nodeIds to fill out array
for (int i = 1; i < connectionPoolSize; ++i) {
nodeIds.add(nodeIds.get(i - 1) + 1);
}
}
if (connectionPoolSize != nodeIds.size()) {
throw new ClusterJFatalUserException(
local.message("ERR_Node_Ids_Must_Match_Connection_Pool_Size",
nodeIdsProperty, connectionPoolSize));
}
} else {