Package com.sun.enterprise.config.serverbeans

Examples of com.sun.enterprise.config.serverbeans.KeepAlive


       
        try {
            instanceConfig =
                    ServerBeansFactory.getConfigBean(instanceConfigContext);
            if (instanceConfig.getHttpService().getKeepAlive() != null) {
                KeepAlive keepAlive =
                        instanceConfig.getHttpService().getKeepAlive();
                keepAliveConnections =
                        Long.parseLong(keepAlive.getMaxConnections());
                keepAliveIdleTime =
                        Integer.parseInt(keepAlive.getTimeoutInSeconds());
            }
        } catch (Exception ex) {
            _logger.log(Level.WARNING, "clb.proxy.config_default");
            return;
        }
View Full Code Here


            ConfigContext configContext = arg0.getConfigContext();
            Config config = ServerBeansFactory.getConfigBean(configContext);
            if (config == null) {
                return;
            }
            KeepAlive keepAlive = config.getHttpService().getKeepAlive();
            connectionManager.setKeepAliveMaxConnections(
                    Long.parseLong(keepAlive.getMaxConnections()));  
            connectionManager.setKeepAliveTimeout(Integer.parseInt(
                    keepAlive.getTimeoutInSeconds()));
        } catch (Exception e) {
           throw new AdminEventListenerException(e);
        }
    }
View Full Code Here

            }
        }, httpService);
    }

    private void migrateKeepAlive(NetworkConfig config, HttpService httpService) throws TransactionFailure {
        final KeepAlive keepAlive = httpService.getKeepAlive();
        if (keepAlive == null) {
            return;
        }
        for (Protocol protocol : config.getProtocols().getProtocol()) {
            final Http http = protocol.getHttp();
            if(http != null) {
                ConfigSupport.apply(new SingleConfigCode<Http>() {
                    @Override
                    public Object run(Http param) {
                        param.setMaxConnections(keepAlive.getMaxConnections());
                        param.setTimeoutSeconds(keepAlive.getTimeoutInSeconds());
                        return null;
                    }
                }, http);
            }
        }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.serverbeans.KeepAlive

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.