Package com.sun.sgs.kernel

Examples of com.sun.sgs.kernel.NodeType


    DATA_STORE_CLASS_PROPERTY);
      optimisticWriteLocks = wrappedProps.getBooleanProperty(
    OPTIMISTIC_WRITE_LOCKS, Boolean.FALSE);
      trackStaleObjects = wrappedProps.getBooleanProperty(
    TRACK_STALE_OBJECTS_PROPERTY, Boolean.FALSE);
            NodeType nodeType =
                wrappedProps.getEnumProperty(StandardProperties.NODE_TYPE,
                                             NodeType.class,
                                             NodeType.singleNode);

      DataStore baseStore;
View Full Code Here


          TransactionProxy txnProxy)
  throws Exception
    {
  super(systemRegistry, txnProxy, logger, abortLogger);
  PropertiesWrapper wrappedProps = new PropertiesWrapper(properties);
  NodeType nodeType = wrappedProps.getEnumProperty(
      StandardProperties.NODE_TYPE, NodeType.class, NodeType.singleNode);
  boolean startServer = (nodeType != NodeType.appNode);
  int callbackPort = wrappedProps.getIntProperty(
      CALLBACK_PORT_PROPERTY, DEFAULT_CALLBACK_PORT, 0, 65535);
  int cacheSize = wrappedProps.getIntProperty(
View Full Code Here

        new LoggerWrapper(Logger.getLogger(CLASSNAME)),
        new LoggerWrapper(Logger.getLogger(CLASSNAME + ".abort")));
  logger.log(Level.CONFIG, "Creating DataStoreClient properties:{0}",
       properties);
  PropertiesWrapper wrappedProps = new PropertiesWrapper(properties);
        NodeType nodeType =
                wrappedProps.getEnumProperty(StandardProperties.NODE_TYPE,
                                             NodeType.class,
                                             NodeType.singleNode);
        boolean serverStart = nodeType != NodeType.appNode;
        if (serverStart) {
View Full Code Here

        } },  taskOwner);
                   
            // Find or create our server.  
            String localHost =
                    InetAddress.getLocalHost().getHostName();
            NodeType nodeType =
                wrappedProps.getEnumProperty(StandardProperties.NODE_TYPE,
                                             NodeType.class,
                                             NodeType.singleNode);
            boolean instantiateServer = nodeType != NodeType.appNode;
           
View Full Code Here

        List<String> allManagers = extensionManagers;
        allManagers.addAll(externalManagers);
        List<ServiceNodeTypes> allNodeTypes = extensionNodeTypes;
        allNodeTypes.addAll(externalNodeTypes);

        NodeType type =
            NodeType.valueOf(
                wrappedProperties.getProperty(StandardProperties.NODE_TYPE));

        loadCoreServices(type, startupContext);
        loadExternalServices(allServices,
View Full Code Here

    {
        // at this point the services are ready, so the final step
        // is to initialize the application by running a special
        // KernelRunnable in an unbounded transaction, unless we're
        // running without an application
        NodeType type =
            NodeType.valueOf(
                wrappedProperties.getProperty(StandardProperties.NODE_TYPE));
        if (!type.equals(NodeType.coreServerNode)) {
            try {
                if (logger.isLoggable(Level.CONFIG)) {
                    logger.log(Level.CONFIG, "{0}: starting application",
                               appName);
                }
View Full Code Here

            throw new IllegalArgumentException("Missing required property " +
                       StandardProperties.APP_ROOT + " for application: " +
                       appName);
        }
       
        NodeType type =
            NodeType.valueOf(
                appProperties.getProperty(StandardProperties.NODE_TYPE));
        if (!type.equals(NodeType.coreServerNode)) {
            if (appProperties.getProperty(StandardProperties.APP_LISTENER) ==
                null)
            {
                logger.log(Level.SEVERE, "Missing required property " +
                       StandardProperties.APP_LISTENER +
View Full Code Here

        List<String> allManagers = extensionManagers;
        allManagers.addAll(externalManagers);
        List<ServiceNodeTypes> allNodeTypes = extensionNodeTypes;
        allNodeTypes.addAll(externalNodeTypes);

        NodeType type =
            NodeType.valueOf(
                wrappedProperties.getProperty(StandardProperties.NODE_TYPE));

        loadCoreServices(type, startupContext);
        loadExternalServices(allServices,
View Full Code Here

    {
        // at this point the services are ready, so the final step
        // is to initialize the application by running a special
        // KernelRunnable in an unbounded transaction, unless we're
        // running without an application
        NodeType type =
            NodeType.valueOf(
                wrappedProperties.getProperty(StandardProperties.NODE_TYPE));
        if (!type.equals(NodeType.coreServerNode)) {
            try {
                if (logger.isLoggable(Level.CONFIG)) {
                    logger.log(Level.CONFIG, "{0}: starting application",
                               appName);
                }
View Full Code Here

            throw new IllegalArgumentException("Missing required property " +
                       StandardProperties.APP_ROOT + " for application: " +
                       appName);
        }
       
        NodeType type =
            NodeType.valueOf(
                appProperties.getProperty(StandardProperties.NODE_TYPE));
        if (!type.equals(NodeType.coreServerNode)) {
            if (appProperties.getProperty(StandardProperties.APP_LISTENER) ==
                null)
            {
                logger.log(Level.SEVERE, "Missing required property " +
                       StandardProperties.APP_LISTENER +
View Full Code Here

TOP

Related Classes of com.sun.sgs.kernel.NodeType

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.