final Server[] servers = target.getServers();
final int numServers = servers.length;
ArrayList result = new ArrayList();
String serverName = null;
int status;
RuntimeStatusList statusList = null;
if (andStatus) {
//Fetch the status of all the server instances in parallel
statusList = getRuntimeStatus(servers);
}
for (int i = 0; i < numServers; i++) {
serverName = servers[i].getName();
if (andStatus) {
//Do not display the DAS as a server instance
if (!ServerHelper.isDAS(configContext, serverName)) {
result.add(stringMgr.getString("listInstanceElement", serverName,
statusList.getStatus(i).toShortString()));
}
} else {
result.add(serverName);
}
}