}
/*
* Check if we have a match in one of the sought after machine addresses
*/
if(!machineAddresses.isEmpty()) {
TCPConnectivity tcpConnectivity = getTCPConnectivity();
Result result = check(tcpConnectivity, machineAddresses);
if (!result.supported) {
String formattedComponents = formatSystemComponents(machineAddresses,
TCPConnectivity.HOST_NAME, TCPConnectivity.HOST_ADDRESS);
String failureReason;
if(result.excluded.isEmpty()) {
failureReason = String.format("The machine addresses being requested [%s] do not match the " +
"target resource's machine name/ip [%s/%s] for [%s]",
formattedComponents,
tcpConnectivity.getCapabilities().get(TCPConnectivity.HOST_NAME),
tcpConnectivity.getCapabilities().get(TCPConnectivity.HOST_ADDRESS),
LoggingUtil.getLoggingName(sElem));
} else {
failureReason = String.format("The target resource's machine name/ip [%s/%s] is on the exclusion list of [%s] for [%s]",
tcpConnectivity.getCapabilities().get(TCPConnectivity.HOST_NAME),
tcpConnectivity.getCapabilities().get(TCPConnectivity.HOST_ADDRESS),
formattedComponents,
LoggingUtil.getLoggingName(sElem));
}
if(logger.isWarnEnabled()) {
logger.warn(failureReason);