Package com.sun.sgs.kernel

Examples of com.sun.sgs.kernel.NodeType


        String appListener = (String) mbsc.getAttribute(name, "AppListener");
        String appName = (String) mbsc.getAttribute(name, "AppName");
        String hostName = (String) mbsc.getAttribute(name, "HostName");
        String appRoot = (String) mbsc.getAttribute(name, "AppRoot");
        int jmxPort = (Integer) mbsc.getAttribute(name, "JmxPort");
        NodeType type = NodeType.valueOf(
                (String) mbsc.getAttribute(name, "NodeType"));
        String serverHost = (String) mbsc.getAttribute(name, "ServerHostName");
        long timeout = (Long) mbsc.getAttribute(name, "StandardTxnTimeout");
        String desc = (String) mbsc.getAttribute(name, "ProtocolDescriptor");
        System.out.println("This node's data:");
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

        new LoggerWrapper(Logger.getLogger(PACKAGE + ".client")),
        new LoggerWrapper(Logger.getLogger(PACKAGE + ".client.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

                                               DEFAULT_UPDATE_FREQ, 5, 65535);
        updatePeriod = updateSeconds * 1000L;
        taskScheduler = systemRegistry.getComponent(TaskScheduler.class);
        taskOwner = txnProxy.getCurrentOwner();

        NodeType type =
            NodeType.valueOf(
                properties.getProperty(StandardProperties.NODE_TYPE));
        String builderName = wrappedProps.getProperty(GRAPH_CLASS_PROPERTY);
        if (GRAPH_CLASS_NONE.equals(builderName)) {
            // do not instantiate anything
View Full Code Here

                DEFAULT_MAX_IO_ATTEMPTS, 0, Integer.MAX_VALUE);

        DataService dataService = txnProxy.getService(DataService.class);
        localNodeId = dataService.getLocalNodeId();

        NodeType nodeType =
                wrappedProps.getEnumProperty(StandardProperties.NODE_TYPE,
                                             NodeType.class,
                                             NodeType.singleNode);
        if (nodeType == NodeType.coreServerNode) {
            serverImpl =
View Full Code Here

    {
        super(properties);

        WatchdogService wdog = txnProxy.getService(WatchdogService.class);
        // Create the LPA algorithm pieces
        NodeType type =
            NodeType.valueOf(
                properties.getProperty(StandardProperties.NODE_TYPE));
        ProfileCollector col =
            systemRegistry.getComponent(ProfileCollector.class);
        if (type == NodeType.coreServerNode) {
View Full Code Here

        throws Exception
    {
        super(properties);
       
        // Create the LPA algorithm pieces
        NodeType type =
            NodeType.valueOf(
                wrappedProps.getProperty(StandardProperties.NODE_TYPE));
        ProfileCollector col =
            systemRegistry.getComponent(ProfileCollector.class);
        WatchdogService wdog = txnProxy.getService(WatchdogService.class);
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

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.