Package com.sun.sgs.impl.kernel.StandardProperties

Examples of com.sun.sgs.impl.kernel.StandardProperties.StandardService


        // before we start, figure out if we're running with only a sub-set
        // of services, in which case there should be no external services
        NodeType type =
            NodeType.valueOf(
                appProperties.getProperty(StandardProperties.NODE_TYPE));
        StandardService finalStandardService = null;
        String externalServices =
            appProperties.getProperty(StandardProperties.SERVICES);
        String externalManagers =
            appProperties.getProperty(StandardProperties.MANAGERS);
       
        switch (type) {
            case appNode:
            case singleNode:
            default:
                finalStandardService = StandardService.LAST_SERVICE;
                break;
            case coreServerNode:
                if ((externalServices != null) || (externalManagers != null)) {
                    throw new IllegalArgumentException(
                        "Cannot specify external services for the core server");
                }

                finalStandardService = StandardService.TaskService;
                break;
        }
       
        final int finalServiceOrdinal = finalStandardService.ordinal();

        // load the data service

        String dataServiceClass =
            appProperties.getProperty(StandardProperties.DATA_SERVICE,
View Full Code Here


    /** Private helper used to load all core services and managers. */
    private void loadCoreServices(NodeType type,
                                  StartupKernelContext startupContext)
            throws Exception {
        StandardService finalStandardService = null;
        switch (type) {
            case appNode:
                finalStandardService = StandardService.LAST_APP_SERVICE;
                break;
            case singleNode:
                finalStandardService = StandardService.LAST_SINGLE_SERVICE;
                break;
            case coreServerNode:
                finalStandardService = StandardService.LAST_CORE_SERVICE;
                break;
            default:
                throw new IllegalArgumentException("Invalid node type : " +
                                                   type);
        }

        final int finalServiceOrdinal = finalStandardService.ordinal();

        // load the data service

        String dataServiceClass = wrappedProperties.getProperty(
                StandardProperties.DATA_SERVICE, DEFAULT_DATA_SERVICE);
View Full Code Here

    /** Private helper used to load all core services and managers. */
    private void loadCoreServices(NodeType type,
                                  StartupKernelContext startupContext)
            throws Exception {
        StandardService finalStandardService = null;
        switch (type) {
            case appNode:
                finalStandardService = StandardService.LAST_APP_SERVICE;
                break;
            case singleNode:
                finalStandardService = StandardService.LAST_SINGLE_SERVICE;
                break;
            case coreServerNode:
                finalStandardService = StandardService.LAST_CORE_SERVICE;
                break;
            default:
                throw new IllegalArgumentException("Invalid node type : " +
                                                   type);
        }

        final int finalServiceOrdinal = finalStandardService.ordinal();

        // load the data service

        String dataServiceClass = wrappedProperties.getProperty(
                StandardProperties.DATA_SERVICE, DEFAULT_DATA_SERVICE);
View Full Code Here

    /** Private helper used to load all core services and managers. */
    private void loadCoreServices(NodeType type,
                                  StartupKernelContext startupContext)
            throws Exception {
        StandardService finalStandardService = null;
        switch (type) {
            case appNode:
                finalStandardService = StandardService.LAST_APP_SERVICE;
                break;
            case singleNode:
                finalStandardService = StandardService.LAST_SINGLE_SERVICE;
                break;
            case coreServerNode:
                finalStandardService = StandardService.LAST_CORE_SERVICE;
                break;
            default:
                throw new IllegalArgumentException("Invalid node type : " +
                                                   type);
        }

        final int finalServiceOrdinal = finalStandardService.ordinal();

        // load the data service

        String dataServiceClass = wrappedProperties.getProperty(
                StandardProperties.DATA_SERVICE, DEFAULT_DATA_SERVICE);
View Full Code Here

TOP

Related Classes of com.sun.sgs.impl.kernel.StandardProperties.StandardService

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.