final Integer apiPort = isSiteToSiteSecure ? nifiProperties.getSslPort() : nifiProperties.getPort(); final NodeInformation self = new NodeInformation(remoteInputHostVal, nifiProperties.getRemoteInputPort(), nifiProperties.getRemoteInputHttpPort(), apiPort != null ? apiPort : 0, // Avoid potential NullPointerException.
nodeSocketAddress.getHostName(), nodeSocketAddress.getPort(), loadBalanceAddress.getHostName(), loadBalanceAddress.getPort(), nifiProperties.getRemoteInputHost(), nifiProperties.getRemoteInputPort(), nifiProperties.getRemoteInputHttpPort(), nifiProperties.isSiteToSiteSecure());
remoteInputSocketPort = nifiProperties.getRemoteInputPort(); remoteInputHttpPort = nifiProperties.getRemoteInputHttpPort(); isSiteToSiteSecure = nifiProperties.isSiteToSiteSecure();
final Integer apiPort = isSiteToSiteSecure ? nifiProperties.getSslPort() : nifiProperties.getPort(); final NodeInformation self = new NodeInformation(remoteInputHostVal, nifiProperties.getRemoteInputPort(), nifiProperties.getRemoteInputHttpPort(), apiPort != null ? apiPort : 0, // Avoid potential NullPointerException.