@Override public synchronized void init(Server server) { ModClusterLogger.LOGGER.init(Version.INSTANCE.toString()); this.server = server; this.mcmpHandler.init(this.mcmpConfig.getProxyConfigurations(), this); this.autoEnableContexts = this.mcmpConfig.isAutoEnableContexts(); this.excludedContexts.clear(); this.excludedContexts.putAll(this.mcmpConfig.getExcludedContextsPerHost()); this.resetRequestSource.init(server, this); this.loadBalanceFactorProvider = this.loadBalanceFactorProviderFactory.createLoadBalanceFactorProvider(); Boolean advertise = this.mcmpConfig.getAdvertise(); if (Boolean.TRUE.equals(advertise) || (advertise == null && this.mcmpConfig.getProxyConfigurations().isEmpty())) { try { this.advertiseListener = this.listenerFactory.createListener(this.mcmpHandler, this.advertiseConfig); } catch (IOException e) { ModClusterLogger.LOGGER.advertiseStartFailed(e); } } }
this.autoEnableContexts = this.mcmpConfig.isAutoEnableContexts(); this.excludedContexts.clear();
/** * @{inheritDoc * @see org.jboss.modcluster.ContainerEventHandler#init(java.lang.Object) */ @Override public synchronized void init(Server server) { ModClusterLogger.LOGGER.init(Version.INSTANCE.toString()); this.server = server; this.mcmpHandler.init(this.mcmpConfig.getProxyConfigurations(), this); this.autoEnableContexts = this.mcmpConfig.isAutoEnableContexts(); this.excludedContexts.clear(); this.excludedContexts.putAll(this.mcmpConfig.getExcludedContextsPerHost()); this.resetRequestSource.init(server, this); this.loadBalanceFactorProvider = this.loadBalanceFactorProviderFactory.createLoadBalanceFactorProvider(); Boolean advertise = this.mcmpConfig.getAdvertise(); if (Boolean.TRUE.equals(advertise) || (advertise == null && this.mcmpConfig.getProxyConfigurations().isEmpty())) { try { this.advertiseListener = this.listenerFactory.createListener(this.mcmpHandler, this.advertiseConfig); this.advertiseListener.start(); } catch (IOException e) { ModClusterLogger.LOGGER.advertiseStartFailed(e); } } }