public StandardFlowManager(final NiFiProperties nifiProperties, final SSLContext sslContext, final FlowController flowController, final FlowFileEventRepository flowFileEventRepository) { this.nifiProperties = nifiProperties; this.flowController = flowController; this.bulletinRepository = flowController.getBulletinRepository(); this.processScheduler = flowController.getProcessScheduler(); this.authorizer = flowController.getAuthorizer(); this.sslContext = sslContext; this.flowFileEventRepository = flowFileEventRepository; this.isSiteToSiteSecure = Boolean.TRUE.equals(nifiProperties.isSiteToSiteSecure()); }
if (isSiteToSiteSecure()) { if (StringUtils.isBlank(getProperty(NiFiProperties.WEB_HTTPS_PORT_FORWARDING))) { propertyKey = WEB_HTTPS_PORT; throw new RuntimeException("Remote input HTTP" + (isSiteToSiteSecure() ? "S" : "") + " is enabled but " + propertyKey + " is not specified.");
remoteInputHostVal = InetAddress.getLocalHost().getHostName(); final Boolean isSiteToSiteSecure = nifiProperties.isSiteToSiteSecure(); final Integer apiPort = isSiteToSiteSecure ? nifiProperties.getSslPort() : nifiProperties.getPort(); final NodeInformation self = new NodeInformation(remoteInputHostVal,
loadBalanceAddress.getHostName(), loadBalanceAddress.getPort(), nifiProperties.getRemoteInputHost(), nifiProperties.getRemoteInputPort(), nifiProperties.getRemoteInputHttpPort(), nifiProperties.isSiteToSiteSecure());
properties.getRemoteInputHttpPort(), properties.isSiteToSiteSecure());
final boolean isSiteToSiteSecure = Boolean.TRUE.equals(properties.isSiteToSiteSecure());
isSiteToSiteSecure = nifiProperties.isSiteToSiteSecure();
if (isSiteToSiteSecure()) { if (StringUtils.isBlank(getProperty(NiFiProperties.WEB_HTTPS_PORT_FORWARDING))) { propertyKey = WEB_HTTPS_PORT; throw new RuntimeException("Remote input HTTP" + (isSiteToSiteSecure() ? "S" : "") + " is enabled but " + propertyKey + " is not specified.");
remoteInputHostVal = InetAddress.getLocalHost().getHostName(); final Boolean isSiteToSiteSecure = nifiProperties.isSiteToSiteSecure(); final Integer apiPort = isSiteToSiteSecure ? nifiProperties.getSslPort() : nifiProperties.getPort(); final NodeInformation self = new NodeInformation(remoteInputHostVal,