+ state);
continue;
}
HostNamePair hostNamePair = getHostNamePair(instance);
if(hostNamePair == null) {
if(logger.isWarnEnabled())
logger.warn("Instance "
+ instance.getInstanceId()
+ " in running state, but missing external and/or internal host name");
continue;
}
hostNamePairs.add(hostNamePair);
if(logger.isInfoEnabled())
logger.info("Instance " + instance.getInstanceId()
+ " running with external host name: "
+ hostNamePair.getExternalHostName()
+ ", internal host name: "
+ hostNamePair.getInternalHostName());
instanceIds.remove(instance.getInstanceId());
}
}
}