Package org.apache.tuscany.sca.node

Examples of org.apache.tuscany.sca.node.Node.stop()


        lab = biochemicalCircle.getLaboratory("Lab2"); // here I have an exception posted below.

        //here I wait a moment before close scaDomain
        System.out.println(lab.getName());

        node.stop();

    }
}
View Full Code Here


        name.setLast("Haney");

        String value = helloWorldService.getGreetings(name);
        System.out.println(value);

        node.stop();
    }
}
View Full Code Here

            System.in.read();
        } catch (IOException e) {
            e.printStackTrace();
        }

        node.stop();
        System.out.println("HelloWorld server stopped");
    }

}
View Full Code Here

        Node node = factory.createNode(new File("src/main/resources/Client.composite").toURI().toURL().toString(),
                new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString()));
        node.start();
        Composer composer = ((Client)node).getService(Composer.class, "ClientComponent/Composer");
        System.out.println(composer.Compose("ABC"));
        node.stop();
    }

}
View Full Code Here

    }

    public static void stop(ServletContext servletContext) {
        Node node = (Node)servletContext.getAttribute(WebAppHelper.SCA_NODE_ATTRIBUTE);
        if (node != null) {
            node.stop();
            servletContext.setAttribute(WebAppHelper.SCA_NODE_ATTRIBUTE, null);
        }
    }
}
View Full Code Here

        Echo echoComponent = node.getService(Echo.class,"EchoComponentWithReference");
        String result = echoComponent.echo("ABC");
        Assert.assertEquals("echo: ABC", result);
        if (node != null) {
            node.stop();
        }
    }
}
View Full Code Here

        node.start();

        CustomerClient testService = node.getService(CustomerClient.class, "CustomerClient");
        testService.testCustomerCollection();

        node.stop();
    }
}
View Full Code Here

            System.in.read();
        } catch (IOException e) {
            e.printStackTrace();
        }

        node.stop();
    }
}
View Full Code Here

            synchronized (lock) {
                lock.wait();
            }
        }

        node.stop();
    }
}
View Full Code Here

    public void removeContribution(String uri) {
        if (!nodes.containsKey(uri)) {
            throw new IllegalArgumentException("contribution not found: " + uri);
        }
        Node node = nodes.remove(uri);
        node.stop();
    }

    public String getDomainName() {
        return domainName;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.