Package com.sun.sgs.impl.service.nodemap

Examples of com.sun.sgs.impl.service.nodemap.NodeMappingServiceImpl$Context


    @Test
    public void testConstructor() {
        NodeMappingService nodemap = null;
        try {
            nodemap =
                new NodeMappingServiceImpl(
                            serviceProps, systemRegistry, txnProxy);
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            if (nodemap != null) { nodemap.shutdown(); }
View Full Code Here


    @Test(expected = NullPointerException.class)
    public void testConstructorNullProperties() throws Exception {
        NodeMappingService nodemap = null;
        try {
            nodemap =
                new NodeMappingServiceImpl(null, systemRegistry, txnProxy);
        } finally {
            if (nodemap != null) { nodemap.shutdown(); }
        }
    }
View Full Code Here

    @Test(expected = NullPointerException.class)
    public void testConstructorNullProxy() throws Exception {
        NodeMappingService nodemap = null;
        try {
            nodemap =
              new NodeMappingServiceImpl(serviceProps, systemRegistry, null);
        } finally {
            if (nodemap != null) { nodemap.shutdown(); }
        }
    }
View Full Code Here

                    serverNode,
                    SgsTestNode.DummyAppListener.class);
        props.remove(StandardProperties.SERVER_HOST);
 
        NodeMappingService nmap =
            new NodeMappingServiceImpl(props, systemRegistry, txnProxy);
    }
View Full Code Here

        Version version = new Version(MAJOR_VERSION, MINOR_VERSION);
        serverNode.getDataService()
                              .setServiceBinding(VERSION_KEY, version);
    }}, taskOwner);

  new NodeMappingServiceImpl(
      SgsTestNode.getDefaultProperties(
    "TestNodeMappingServiceImpl", serverNode, null),
      systemRegistry, txnProxy)
    }
View Full Code Here

      new Version(MAJOR_VERSION + 1, MINOR_VERSION);
        serverNode.getDataService()
                              .setServiceBinding(VERSION_KEY, version);
    }}, taskOwner);

        new NodeMappingServiceImpl(serviceProps, systemRegistry, txnProxy)
    }
View Full Code Here

      new Version(MAJOR_VERSION, MINOR_VERSION + 1);
        serverNode.getDataService()
                              .setServiceBinding(VERSION_KEY, version);
    }}, taskOwner);

        new NodeMappingServiceImpl(serviceProps, systemRegistry, txnProxy)
    }
View Full Code Here

    @Test
    public void testReady() throws Exception {
        NodeMappingService nodemap = null;
        try {
            nodemap =
                new NodeMappingServiceImpl(
        SgsTestNode.getDefaultProperties(
      "TestNodeMappingServiceImpl", serverNode, null),
        systemRegistry, txnProxy);
            TestListener listener = new TestListener();       
            nodemap.addNodeMappingListener(listener);
View Full Code Here

            throw new InvokerException(ioe.getMessage(), ioe.getCause());
        } catch (XMLStreamException xse) {
            throw new InvokerException(xse.getMessage(), xse.getCause());
        }
        executor = new SCXMLExecutor(evaluator, new SimpleDispatcher(), new SimpleErrorReporter());
        Context rootCtx = evaluator.newContext(null);
        for (Map.Entry<String, Object> entry : params.entrySet()) {
            rootCtx.setLocal(entry.getKey(), entry.getValue());
        }
        executor.setRootContext(rootCtx);
        try {
            executor.setStateMachine(scxml);
        }
View Full Code Here

     * {@inheritDoc}
     */
    @Override
    public Set<Entry<String, Object>> entrySet() {
        Set<Entry<String, Object>> entrySet = new HashSet<Entry<String, Object>>();
        Context current = leaf;
        while (current != null) {
            entrySet.addAll(current.getVars().entrySet());
            current = current.getParent();
        }
        return entrySet;
    }
View Full Code Here

TOP

Related Classes of com.sun.sgs.impl.service.nodemap.NodeMappingServiceImpl$Context

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.