Package com.sun.sgs.kernel

Examples of com.sun.sgs.kernel.NodeType


    {
  super(accessCoordinator, logger, abortLogger);
  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


  shutdownController = ctrl;
 
  try {
      localHost = InetAddress.getLocalHost().getHostName();
               
            NodeType nodeType =
                wrappedProps.getEnumProperty(StandardProperties.NODE_TYPE,
                                             NodeType.class,
                                             NodeType.singleNode);
            boolean startServer = nodeType != NodeType.appNode;
            boolean isFullStack = nodeType != NodeType.coreServerNode;
View Full Code Here

    TRACK_STALE_OBJECTS_PROPERTY, Boolean.FALSE);
      TaskScheduler taskScheduler =
    systemRegistry.getComponent(TaskScheduler.class);
      Identity taskOwner = txnProxy.getCurrentOwner();
      scheduler = new DelegatingScheduler(taskScheduler, taskOwner);
            NodeType nodeType =
                wrappedProps.getEnumProperty(StandardProperties.NODE_TYPE,
                                             NodeType.class,
                                             NodeType.singleNode);

      AccessCoordinator accessCoordinator =
View Full Code Here

    private void fetchServices(StartupKernelContext startupContext)
       throws Exception
    {
        // 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);
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(
                appProperties.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

        } },  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

  shutdownController = ctrl;
 
  try {
      localHost = InetAddress.getLocalHost().getHostName();
               
            NodeType nodeType =
                wrappedProps.getEnumProperty(StandardProperties.NODE_TYPE,
                                             NodeType.class,
                                             NodeType.singleNode);
            boolean startServer = nodeType != NodeType.appNode;
            boolean isFullStack = nodeType != NodeType.coreServerNode;
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

    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

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.