Package com.yammer.dropwizard.config

Examples of com.yammer.dropwizard.config.ServerFactory


    configuration = (Configuration) factory.build(temporaryConfigFile);

    Environment environment = new Environment(service, configuration);
    service.initializeWithBundles(configuration, environment);

    server = new ServerFactory(configuration.getHttpConfiguration(),
        service.getName()).buildServer(environment);

    LOG.info("Starting embedded Jetty with configuration {}", configuration.toString());
    server.start();
  }
View Full Code Here


        throw new IllegalStateException("No connector named " + name);
    }

    private Server initializeServer(AbstractService<T> service, T configuration) throws Exception {
        Environment environment = getInitializedEnvironment(service, configuration);
        ServerFactory serverFactory = getServerFactory(service, configuration);

        return serverFactory.buildServer(environment);
    }
View Full Code Here

        return serverFactory.buildServer(environment);
    }

    private ServerFactory getServerFactory(AbstractService<T> service, T configuration) {
        HttpConfiguration httpConfig = configuration.getHttpConfiguration();
        return new ServerFactory(httpConfig, service.getName());
    }
View Full Code Here

        nonSSLConfig.setConnectorType(HttpConfiguration.ConnectorType.NONBLOCKING);

        final DebugServer debug = new DebugServer(configuration, nonSSLConfig.getPort(), nonSSLConfig.getRootPath());
        final int debugPort = debug.run();

        final Server server = new ServerFactory(nonSSLConfig,
                environment.getName()).buildServer(environment);

        logBanner(environment.getName(), logger);

        try {
View Full Code Here

TOP

Related Classes of com.yammer.dropwizard.config.ServerFactory

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.