diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-17 11:09:38 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-17 11:09:38 +0000 |
commit | 8435e4751b9caa6c3cc2d9c60e3fca5becf8b5bf (patch) | |
tree | db299833adf3b5a84117f675d43ea63116429c91 /sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/PerfTest.java | |
parent | 9365ad87df669a52da9f72adaab101071dec5be2 (diff) |
Merege the refactoring in nodeImpl2 back into NodeImpl
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1104140 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/PerfTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/PerfTest.java b/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/PerfTest.java index 4b889f56bc..97b3755f2e 100644 --- a/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/PerfTest.java +++ b/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/PerfTest.java @@ -39,15 +39,15 @@ public class PerfTest { Properties config = new Properties(); config.setProperty(RuntimeProperties.QUIET_LOGGING, "true"); Node node = TuscanyRuntime.newInstance(config).createNode(); - node.installContribution(null, "src/test/resources/sample-helloworld.jar", null, null, false); + node.installContribution(null, "src/test/resources/sample-helloworld.jar", null, null); validate(node); int count = 3000; long start = System.currentTimeMillis(); for (int i=0; i<count; i++) { - node.start("sample-helloworld", "helloworld.composite"); - node.stop("sample-helloworld", "helloworld.composite"); + node.startComposite("sample-helloworld", "helloworld.composite"); + node.stopComposite("sample-helloworld", "helloworld.composite"); } long total = System.currentTimeMillis() - start; System.out.println(count + " = " + total + " = " + total / (double)count); @@ -57,12 +57,12 @@ public class PerfTest { } private void validate(Node node) throws ActivationException, ValidationException, NoSuchServiceException, ContributionReadException { - node.start("sample-helloworld", "helloworld.composite"); + node.startComposite("sample-helloworld", "helloworld.composite"); Helloworld helloworldService = node.getService(Helloworld.class, "HelloworldComponent"); Assert.assertEquals("Hello petra", helloworldService.sayHello("petra")); - node.stop("sample-helloworld", "helloworld.composite"); + node.stopComposite("sample-helloworld", "helloworld.composite"); try { node.getService(Helloworld.class, "HelloworldComponent"); Assert.fail(); |