Package com.facebook.swift.service.guice

Examples of com.facebook.swift.service.guice.ThriftServerModule


public class DummyHiveMetastoreServerModule implements Module
{
    @Override
    public void configure(final Binder binder)
    {
        binder.install (new ThriftServerModule());
        binder.bind(DummyHiveMetastore.class).in(Scopes.SINGLETON);
        thriftServerBinder(binder).exportThriftService(DummyHiveMetastore.class);
    }
View Full Code Here


        Injector injector = Guice.createInjector(
                Stage.PRODUCTION,
                new ConfigurationModule(new ConfigurationFactory(SERVER_CONFIGURATION)),
                new LifeCycleModule(),
                new ThriftCodecModule(),
                new ThriftServerModule(),
                new ThriftServerStatsModule(),
                new Fb303ServiceModule(App.class),
                new MBeanModule(),
                new JmxModule(),
                new HeaderServerModule(),
View Full Code Here

        Injector serverInjector = Guice.createInjector(
                Stage.PRODUCTION,
                new ConfigurationModule(new ConfigurationFactory(SERVER_CONFIGURATION)),
                new LifeCycleModule(),
                new ThriftCodecModule(),
                new ThriftServerModule(),
                new ThriftServerStatsModule(),
                new Fb303ServiceModule(App.class),
                new MBeanModule(),
                new JmxModule(),
                new HeaderServerModule(),
View Full Code Here

    {
        Injector injector = Guice.createInjector(
                Stage.DEVELOPMENT,
                new ConfigurationModule(new ConfigurationFactory(ImmutableMap.<String, String>of())),
                new ThriftCodecModule(),
                new ThriftServerModule(),
                new AbstractModule()
                {
                    @Override
                    protected void configure()
                    {
View Full Code Here

    {
        final int WORKER_THREAD_COUNT = 43;

        Bootstrap bootstrap = new Bootstrap(
                new ThriftCodecModule(),
                new ThriftServerModule(),
                new AbstractModule()
                {
                    @Override
                    protected void configure()
                    {
View Full Code Here

        final int WORKER_THREAD_COUNT = 44;
        final ExecutorService myExecutor = Executors.newFixedThreadPool(WORKER_THREAD_COUNT);

        Bootstrap bootstrap = new Bootstrap(
                new ThriftCodecModule(),
                new ThriftServerModule(),
                new AbstractModule()
                {
                    @Override
                    protected void configure()
                    {
View Full Code Here

     * for {@link com.facebook.swift.service.ThriftServerConfig} overridden to specify a specific
     * instance of {@link java.util.concurrent.ExecutorService} for the worker executor.
     */
    private Module overrideThriftServerModuleWithWorkerExecutorInstance(final ExecutorService myExecutor)
    {
        return Modules.override(new ThriftServerModule()).with(
                new AbstractModule()
                {
                    @Override
                    protected void configure()
                    {
View Full Code Here

TOP

Related Classes of com.facebook.swift.service.guice.ThriftServerModule

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.