Package com.foundationdb.server.service.servicemanager

Examples of com.foundationdb.server.service.servicemanager.GuicedServiceManager$CompositeConfigurationLoader


        throw e;
    }

    protected ServiceManager createServiceManager(Map<String, String> startupConfigProperties) {
        TestConfigService.setOverrides(startupConfigProperties);
        return new GuicedServiceManager(serviceBindingsProvider());
    }
View Full Code Here


            // Do not abort on error as init scripts handle this fine.
        }
    }

    private static void doStartup() throws Exception {
        final ServiceManager serviceManager = new GuicedServiceManager();

        Main.shutdownBean = new ShutdownMXBeanImpl(serviceManager);

        // JVM shutdown hook.
        // Register before startServices() so services are still brought down on startup error.
        Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
            @Override
            public void run() {
                shutdownBean.shutdown();
            }
        }, "ShutdownHook"));

        // Bring system up
        serviceManager.startServices();

        ObjectName name = new ObjectName(ShutdownMXBeanImpl.BEAN_NAME);
        ManagementFactory.getPlatformMBeanServer().registerMBean(shutdownBean, name);
    }
View Full Code Here

    }

    
    protected static ServiceManager createServiceManager()
    {
        return new GuicedServiceManager(serviceBindingsProvider());
    }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.service.servicemanager.GuicedServiceManager$CompositeConfigurationLoader

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.