diff options
author | dims <dims@13f79535-47bb-0310-9956-ffa450edef68> | 2008-06-17 00:23:01 +0000 |
---|---|---|
committer | dims <dims@13f79535-47bb-0310-9956-ffa450edef68> | 2008-06-17 00:23:01 +0000 |
commit | bdd0a41aed7edf21ec2a65cfa17a86af2ef8c48a (patch) | |
tree | 38a92061c0793434c4be189f1d70c3458b6bc41d /sandbox/slaws |
Move Tuscany from Incubator to top level.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@668359 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/slaws')
132 files changed, 14531 insertions, 0 deletions
diff --git a/sandbox/slaws/antbuild/createClasspath.sh b/sandbox/slaws/antbuild/createClasspath.sh new file mode 100644 index 0000000000..faad4b903c --- /dev/null +++ b/sandbox/slaws/antbuild/createClasspath.sh @@ -0,0 +1,8 @@ +# mvn -X > tmp1 +# awk /C:/ tmp1 | sed 's/C:\\Documents and Settings\\slaws\\.m2\\repository/\<include name="/g' | sed 's/\.jar/\.jar"\/\>/g' | sed 's/\:/\n/g' | sed 's/\\*.*\\//g' | sed 's/^/\<include name="/' > tmp2 +#awk /\\[DEBUG\\].Test.Classpath/,/\\[DEBUG\\].Setting.system.property/ tmp1 + +mvn -X > tmp1 +awk /\\[DEBUG\\]...C:/ tmp1 > tmp2 +awk /[DEBUG]/ tmp2 | sed 's/\[DEBUG\] C:\\Documents and Settings\\slaws\\.m2\\repository/\<pathelement location="\$\{m2\.repo\}/g' | sed 's/\.jar/\.jar"\/\>/g' | sed 's/\:/\n/g' > tmp2 + diff --git a/sandbox/slaws/antbuild/createWarContents.sh b/sandbox/slaws/antbuild/createWarContents.sh new file mode 100644 index 0000000000..8effe43eae --- /dev/null +++ b/sandbox/slaws/antbuild/createWarContents.sh @@ -0,0 +1,3 @@ +jar tvf sample-helloworld-ws-sdo-webapp.war | grep .jar | awk '{ printf "%s\n", $8 }' | sed -e "s/WEB-INF\/lib\///" | awk '{ printf "<include name=\"%s\"/>\n", $1 }' | grep tuscany + +jar tvf sample-helloworld-ws-sdo-webapp.war | grep .jar | awk '{ printf "%s\n", $8 }' | sed -e "s/WEB-INF\/lib\///" | awk '{ printf "<include name=\"%s\"/>\n", $1 }' | grep -v tuscany diff --git a/sandbox/slaws/blankcomposite.svg b/sandbox/slaws/blankcomposite.svg new file mode 100644 index 0000000000..98d59c167d --- /dev/null +++ b/sandbox/slaws/blankcomposite.svg @@ -0,0 +1,130 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://web.resource.org/cc/" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="1052.3622" + height="744.09448" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.44" + sodipodi:docbase="C:\simon\Projects\Tuscany\java\notes" + sodipodi:docname="blankcomposite.svg" + version="1.0"> + <defs + id="defs4" /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + gridtolerance="10000" + guidetolerance="10" + objecttolerance="10" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="1.4" + inkscape:cx="375" + inkscape:cy="414.63224" + inkscape:document-units="px" + inkscape:current-layer="layer1" + inkscape:window-width="1054" + inkscape:window-height="721" + inkscape:window-x="74" + inkscape:window-y="306" /> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1"> + <g + id="g2997"> + <rect + rx="15.307091" + ry="12.692303" + y="192.00233" + x="258.31146" + height="299.99988" + width="495.71429" + id="rect2067" + style="opacity:1;fill:#90baf4;fill-opacity:1;stroke:#060000;stroke-width:1.99999964;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + id="flowRoot2954" + xml:space="preserve"><flowRegion + id="flowRegion2956"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2958" /></flowRegion><flowPara + id="flowPara2960">Composite A</flowPara></flowRoot> </g> + <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2988" + width="115.66247" + height="85.862968" + x="339.91632" + y="310.73904" + rx="6.9961648" + ry="7.1230249" /> + <flowRoot + xml:space="preserve" + id="flowRoot2966" + transform="translate(72.32554,104.8005)"><flowRegion + id="flowRegion2968"><rect + id="rect2970" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2972">Component A</flowPara></flowRoot> <rect + style="opacity:1;fill:#fff62c;fill-opacity:1;stroke:#060000;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect3006" + width="21.718224" + height="20.708065" + x="385.87827" + y="295.08167" + rx="10.859112" + ry="0" /> + <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 322.76581,342.58603 L 356.10085,342.58603 L 362.16176,355.71801 L 355.0907,367.83985 L 322.76581,367.83985 L 330.34196,355.71801 L 322.76581,342.58603 z " + id="path3017" /> + <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 436.01825,340.74775 L 469.35329,340.74775 L 475.4142,353.87973 L 468.34314,366.00157 L 436.01825,366.00157 L 443.5944,353.87973 L 436.01825,340.74775 z " + id="path3019" /> + </g> +</svg> diff --git a/sandbox/slaws/classloader/pom.xml b/sandbox/slaws/classloader/pom.xml new file mode 100644 index 0000000000..12490917be --- /dev/null +++ b/sandbox/slaws/classloader/pom.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-sca</artifactId>
+ <version>1.0-incubating-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent>
+ <artifactId>sample-classloader</artifactId>
+ <name>Apache Tuscany Classloader Sample</name>
+
+ <repositories>
+ <repository>
+ <id>apache.incubator</id>
+ <url>http://people.apache.org/repo/m2-incubating-repository</url>
+ </repository>
+ </repositories>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.2</version>
+ <scope>test</scope>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+ <finalName>${artifactId}</finalName>
+ </build>
+</project>
diff --git a/sandbox/slaws/classloader/src/main/java/cl/CustomClassLoader.java b/sandbox/slaws/classloader/src/main/java/cl/CustomClassLoader.java new file mode 100644 index 0000000000..050b770eab --- /dev/null +++ b/sandbox/slaws/classloader/src/main/java/cl/CustomClassLoader.java @@ -0,0 +1,83 @@ +package cl;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+
+public class CustomClassLoader extends ClassLoader
+{
+ public CustomClassLoader(){
+ super(CustomClassLoader.class.getClassLoader());
+ }
+
+ public Class loadClass( String name, boolean resolve )
+ throws ClassNotFoundException {
+ // Our goal is to get a Class object
+ Class clazz = null;
+
+ // First, see if we've already dealt with this one
+ clazz = findLoadedClass(name);
+
+ String fileStub = name.replace( '.', '/' );
+ String classFilename = "target/classes/" + fileStub+".class";
+
+ try {
+ // read the bytes
+ byte raw[] = getBytes( classFilename );
+ // try to turn them into a class
+ clazz = defineClass( name, raw, 0, raw.length );
+ } catch( IOException ex ) {
+ // This is not a failure! If we reach here, it might
+ // mean that we are dealing with a class in a library,
+ // such as java.lang.Object
+ }
+
+ // Maybe the class is in a library -- try loading
+ // the normal way
+ if (clazz==null) {
+ clazz = findSystemClass( name );
+ }
+
+ // Resolve the class, if any, but only if the "resolve"
+ // flag is set to true
+ if (resolve && clazz != null) {
+ resolveClass( clazz );
+ }
+
+ // If we still don't have a class, it's an error
+ if (clazz == null) {
+ throw new ClassNotFoundException( name );
+ }
+
+ return clazz;
+ }
+
+ // Given a filename, read the entirety of that file from disk
+ // and return it as a byte array.
+ private byte[] getBytes( String filename ) throws IOException {
+ // Find out the length of the file
+ File file = new File( filename );
+ long len = file.length();
+
+ // Create an array that's just the right size for the file's
+ // contents
+ byte raw[] = new byte[(int)len];
+
+ // Open the file
+ FileInputStream fin = new FileInputStream( file );
+
+ // Read all of it into the array; if we don't get all,
+ // then it's an error.
+ int r = fin.read( raw );
+
+ if (r != len) {
+ throw new IOException( "Can't read all, "+r+" != "+len );
+ }
+
+ // Don't forget to close the file!
+ fin.close();
+
+ // And finally return the file contents as an array
+ return raw;
+ }
+}
diff --git a/sandbox/slaws/classloader/src/main/java/patha/SomeClassA.java b/sandbox/slaws/classloader/src/main/java/patha/SomeClassA.java new file mode 100644 index 0000000000..bf9c8f012f --- /dev/null +++ b/sandbox/slaws/classloader/src/main/java/patha/SomeClassA.java @@ -0,0 +1,15 @@ +package patha;
+
+
+
+public class SomeClassA {
+
+
+
+ public SomeClassA() {
+ }
+
+ public void doSomething(SomeClassB someClassB) {
+ System.out.println(someClassB.getSomeString());
+ }
+}
diff --git a/sandbox/slaws/classloader/src/main/java/patha/SomeClassB.java b/sandbox/slaws/classloader/src/main/java/patha/SomeClassB.java new file mode 100644 index 0000000000..e4b9302055 --- /dev/null +++ b/sandbox/slaws/classloader/src/main/java/patha/SomeClassB.java @@ -0,0 +1,21 @@ +package patha;
+
+
+
+public class SomeClassB {
+
+ String someString;
+
+ public SomeClassB() {
+ this.someString = "Default String";
+ }
+
+ public void setSomeString(String someString) {
+ this.someString = someString;
+ System.out.println(someString);
+ }
+
+ public String getSomeString() {
+ return someString;
+ }
+}
diff --git a/sandbox/slaws/classloader/src/test/java/test/ClassloaderTestCase.java b/sandbox/slaws/classloader/src/test/java/test/ClassloaderTestCase.java new file mode 100644 index 0000000000..65bfefb82a --- /dev/null +++ b/sandbox/slaws/classloader/src/test/java/test/ClassloaderTestCase.java @@ -0,0 +1,90 @@ +/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package test;
+
+import java.io.InputStream;
+import java.lang.reflect.Method;
+import java.util.logging.LogManager;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import cl.CustomClassLoader;
+
+import patha.SomeClassA;
+
+
+/**
+ * This shows how to test the Calculator service component.
+ */
+public class ClassloaderTestCase {
+
+
+
+ @Before
+ public void setUp() throws Exception {
+ }
+
+ @After
+ public void tearDown() throws Exception {
+
+ }
+
+ @Test
+ public void testClassloader() throws Exception {
+
+ try {
+ CustomClassLoader cl1 = new CustomClassLoader();
+
+ // get the class
+ Class classA1 = cl1.loadClass("patha.SomeClassA");
+ Class classB1 = cl1.loadClass("patha.SomeClassB");
+
+ // Find the doSomething method in the class
+ Method doSomething = classA1.getMethod( "doSomething", classB1 );
+
+ // create an instance of the class
+ Object instanceA1 = classA1.newInstance();
+ Object instanceB1 = classB1.newInstance();
+
+ // Create a list containing the arguments
+ Object argsArray1[] = { instanceB1 };
+
+ // Call the method
+ doSomething.invoke( instanceA1, argsArray1 );
+
+ // Set up a B with a new class loader
+ CustomClassLoader cl2 = new CustomClassLoader();
+ Class classB2 = cl2.loadClass("patha.SomeClassB");
+ Method setSomeString = classB2.getMethod( "setSomeString", String.class );
+ Object instanceB2 = classB2.newInstance();
+ Object argsArray2[] = { "B2 String" };
+ setSomeString.invoke( instanceB2, argsArray2 );
+
+ // try to pass it into A from the first class loader
+ Object argsArray3[] = { instanceB2 };
+ doSomething.invoke( instanceA1, argsArray3 );
+
+
+ } catch (Exception ex) {
+ System.err.println(ex.toString());
+ }
+ }
+}
diff --git a/sandbox/slaws/distributed-runtime/calculator-distributed.svg b/sandbox/slaws/distributed-runtime/calculator-distributed.svg new file mode 100644 index 0000000000..341af29994 --- /dev/null +++ b/sandbox/slaws/distributed-runtime/calculator-distributed.svg @@ -0,0 +1,403 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://web.resource.org/cc/" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="1052.3622" + height="744.09448" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.45.1" + sodipodi:docbase="C:\simon\tuscany\sandbox\slaws\distributed-runtime" + sodipodi:docname="calculator-distributed.svg" + version="1.0" + inkscape:export-filename="C:\simon\Tuscany\sandbox\slaws\distributed-runtime\calculator-distributed.png" + inkscape:export-xdpi="61.821354" + inkscape:export-ydpi="61.821354" + inkscape:output_extension="org.inkscape.output.svg.inkscape"> + <defs + id="defs4" /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + gridtolerance="10000" + guidetolerance="10" + objecttolerance="10" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="0.98994949" + inkscape:cx="555.3085" + inkscape:cy="427.81849" + inkscape:document-units="px" + inkscape:current-layer="layer1" + inkscape:window-width="1171" + inkscape:window-height="871" + inkscape:window-x="283" + inkscape:window-y="46" /> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1"> + <g + id="g2997" + transform="matrix(1,0,0,1.144214,0,-27.53557)"> + <rect + rx="15.307091" + ry="16.178549" + y="156.41957" + x="258.31146" + height="382.40201" + width="495.71429" + id="rect2067" + style="opacity:1;fill:#90baf4;fill-opacity:1;stroke:#060000;stroke-width:1.86971927;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + id="flowRoot2954" + xml:space="preserve" + transform="translate(-3.571429,-41.82534)"><flowRegion + id="flowRegion2956"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2958" /></flowRegion><flowPara + id="flowPara2960">Calculator</flowPara></flowRoot> </g> + <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:1.9999994;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2988" + width="115.66247" + height="191.57716" + x="339.91632" + y="262.1673" + rx="6.9961648" + ry="15.892869" /> + <flowRoot + xml:space="preserve" + id="flowRoot2966" + transform="translate(79.61125,62.65764)"><flowRegion + id="flowRegion2968"><rect + id="rect2970" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2972">Calculator</flowPara><flowPara + id="flowPara1895">Service</flowPara><flowPara + id="flowPara1897">Component</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 322.76581,342.58603 L 356.10085,342.58603 L 362.16176,355.71801 L 355.0907,367.83985 L 322.76581,367.83985 L 330.34196,355.71801 L 322.76581,342.58603 z " + id="path3017" /> + <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:0.99999982px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 431.01809,321.46204 L 471.00147,321.46204 L 478.27117,334.59402 L 469.78986,346.71586 L 431.01809,346.71586 L 440.10523,334.59402 L 431.01809,321.46204 z " + id="path3019" /> + <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.02102911px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 220.13929,328.62097 L 282.0098,328.62097 L 293.25897,355.48487 L 280.13494,380.28235 L 220.13929,380.28235 L 234.20077,355.48487 L 220.13929,328.62097 z " + id="path1883" /> + <flowRoot + xml:space="preserve" + id="flowRoot1885" + transform="translate(-46.16225,128.7269)" + style="font-family:Bitstream Vera Sans;font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal;font-size:11;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%"><flowRegion + id="flowRegion1887"><rect + id="rect1889" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" + style="font-family:Bitstream Vera Sans;font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal;font-size:11;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%" /></flowRegion><flowPara + id="flowPara1891">Calculator</flowPara><flowPara + id="flowPara1893">Service</flowPara></flowRoot> <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2.00000024;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect1899" + width="115.66247" + height="70.148659" + x="594.75488" + y="167.73451" + rx="6.9961648" + ry="5.8193965" /> + <flowRoot + xml:space="preserve" + id="flowRoot1901" + transform="translate(334.4498,-31.77519)"><flowRegion + id="flowRegion1903"><rect + id="rect1905" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara1907">Add</flowPara><flowPara + id="flowPara1909">Service</flowPara><flowPara + id="flowPara1911">Component</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 573.31867,190.29606 L 606.65371,190.29606 L 612.71462,203.42804 L 605.64356,215.54988 L 573.31867,215.54988 L 580.89482,203.42804 L 573.31867,190.29606 z " + id="path1913" /> + <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2.00000024;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect1917" + width="115.66247" + height="70.148659" + x="594.06543" + y="280.59158" + rx="6.9961648" + ry="5.8193965" /> + <flowRoot + xml:space="preserve" + id="flowRoot1919" + transform="translate(333.7604,81.08188)"><flowRegion + id="flowRegion1921"><rect + id="rect1923" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara1925">Subtract</flowPara><flowPara + id="flowPara1927">Service</flowPara><flowPara + id="flowPara1929">Component</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 572.62924,303.15313 L 605.96428,303.15313 L 612.02519,316.28511 L 604.95413,328.40695 L 572.62924,328.40695 L 580.20539,316.28511 L 572.62924,303.15313 z " + id="path1931" /> + <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2.00000024;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect1933" + width="115.66247" + height="70.148659" + x="594.77979" + y="391.87729" + rx="6.9961648" + ry="5.8193965" /> + <flowRoot + xml:space="preserve" + id="flowRoot1935" + transform="translate(334.4747,192.3676)"><flowRegion + id="flowRegion1937"><rect + id="rect1939" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara1941">Multiply</flowPara><flowPara + id="flowPara1943">Service</flowPara><flowPara + id="flowPara1945">Component</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 573.34352,414.43884 L 606.67856,414.43884 L 612.73947,427.57082 L 605.66841,439.69266 L 573.34352,439.69266 L 580.91967,427.57082 L 573.34352,414.43884 z " + id="path1947" /> + <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2.00000024;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect1949" + width="115.66247" + height="70.148659" + x="596.20831" + y="502.59158" + rx="6.9961648" + ry="5.8193965" /> + <flowRoot + xml:space="preserve" + id="flowRoot1951" + transform="translate(335.9032,303.0819)"><flowRegion + id="flowRegion1953"><rect + id="rect1955" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara1957">Divide</flowPara><flowPara + id="flowPara1959">Service</flowPara><flowPara + id="flowPara1961">Component</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 574.77209,525.15313 L 608.10713,525.15313 L 614.16804,538.28511 L 607.09698,550.40695 L 574.77209,550.40695 L 582.34824,538.28511 L 574.77209,525.15313 z " + id="path1963" /> + <flowRoot + xml:space="preserve" + id="flowRoot1965" + transform="translate(161.0221,114.967)" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"><flowRegion + id="flowRegion1967"><rect + id="rect1969" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans" /></flowRegion><flowPara + id="flowPara1973">add</flowPara><flowPara + id="flowPara1977">Service</flowPara></flowRoot> <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:0.99999982px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 430.65917,357.18186 L 470.64255,357.18186 L 477.91225,370.31384 L 469.43094,382.43568 L 430.65917,382.43568 L 439.74631,370.31384 L 430.65917,357.18186 z " + id="path1979" /> + <flowRoot + xml:space="preserve" + id="flowRoot1981" + transform="translate(160.6632,150.6868)" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"><flowRegion + id="flowRegion1983"><rect + id="rect1985" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans" /></flowRegion><flowPara + id="flowPara1987">subtract</flowPara><flowPara + id="flowPara1989">Service</flowPara></flowRoot> <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:0.99999982px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 431.37346,390.75329 L 471.35684,390.75329 L 478.62654,403.88527 L 470.14523,416.00711 L 431.37346,416.00711 L 440.4606,403.88527 L 431.37346,390.75329 z " + id="path1991" /> + <flowRoot + xml:space="preserve" + id="flowRoot1993" + transform="translate(161.3775,184.2583)" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"><flowRegion + id="flowRegion1995"><rect + id="rect1997" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans" /></flowRegion><flowPara + id="flowPara1999">multiply</flowPara><flowPara + id="flowPara2001">Service</flowPara></flowRoot> <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:0.99999982px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 429.94489,422.18186 L 469.92827,422.18186 L 477.19797,435.31384 L 468.71666,447.43568 L 429.94489,447.43568 L 439.03203,435.31384 L 429.94489,422.18186 z " + id="path2003" /> + <flowRoot + xml:space="preserve" + id="flowRoot2005" + transform="translate(159.9489,215.6868)" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"><flowRegion + id="flowRegion2007"><rect + id="rect2009" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans" /></flowRegion><flowPara + id="flowPara2011">divide</flowPara><flowPara + id="flowPara2013">Service</flowPara></flowRoot> <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:0.99999988px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 477.85714,335.52287 L 511.42857,335.52287 L 510.71429,202.66577 L 579.28571,202.66577" + id="path2015" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1.00000012px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 477.85714,369.80878 L 528.57143,369.80878 L 528.57143,315.52306 L 580,315.52306" + id="path2017" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1.00000012px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 475.71429,435.52318 L 509.28571,435.52318 L 510,539.09463 L 582.14286,537.65613" + id="path2021" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 292.85714,355.52305 L 330,354.80877" + id="path2023" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 477.14286,404.09448 L 527.85714,404.09448 L 527.85714,427.66591 L 580,426.95163" + id="path1950" /> + <rect + style="opacity:0.32777776;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:1.99999964;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:5.99999869, 1.99999955;stroke-dashoffset:0;stroke-opacity:1" + id="rect2844" + width="328.57144" + height="117.85712" + x="532.85712" + y="140.8802" + rx="6.9961648" + ry="2.4683809" /> + <rect + style="opacity:0.32777776;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:1.99999976;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:5.99999958, 1.99999985;stroke-dashoffset:0;stroke-opacity:1" + id="rect2846" + width="328.57144" + height="98.571434" + x="533.57147" + y="268.73746" + rx="6.9961648" + ry="2.0644646" /> + <flowRoot + xml:space="preserve" + id="flowRoot2860" + transform="translate(614.3034,-75.00004)"><flowRegion + id="flowRegion2862"><rect + id="rect2864" + width="75" + height="32.857143" + x="173.57143" + y="231.95163" /></flowRegion><flowPara + id="flowPara2866">nodeB</flowPara></flowRoot> <flowRoot + xml:space="preserve" + id="flowRoot2868" + transform="translate(616.0952,47.8571)"><flowRegion + id="flowRegion2870"><rect + id="rect2872" + width="75" + height="32.857143" + x="173.57143" + y="231.95163" /></flowRegion><flowPara + id="flowPara2874">nodeC</flowPara></flowRoot> <path + style="opacity:0.35555558;fill:#efacac;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.99341261;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:2.98023777, 2.98023777;stroke-dashoffset:0;stroke-opacity:1" + d="M 175.76325,221.84231 L 499.81263,221.84233 L 501.80637,382.45934 L 862.67356,381.44917 L 861.6767,604.69671 L 176.76012,604.6967 L 175.76325,221.84231 z " + id="path1975" + sodipodi:nodetypes="ccccccc" /> + <flowRoot + xml:space="preserve" + id="flowRoot2852" + transform="translate(8,0)"><flowRegion + id="flowRegion2854"><rect + id="rect2856" + width="75" + height="32.857143" + x="173.57143" + y="231.95163" /></flowRegion><flowPara + id="flowPara2858">nodeA</flowPara></flowRoot> <rect + style="opacity:0.32777776;fill:none;fill-opacity:1;stroke:#2e2424;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:6,2;stroke-dashoffset:0;stroke-opacity:1" + id="rect2253" + width="725.90381" + height="501.96472" + x="154.24622" + y="120.36581" + rx="15.456433" + ry="10.51307" /> + <flowRoot + xml:space="preserve" + id="flowRoot3227" + transform="translate(-5.4600562,-94.686056)"><flowRegion + id="flowRegion3229"><rect + id="rect3231" + width="75" + height="32.857143" + x="173.57143" + y="231.95163" /></flowRegion><flowPara + id="flowPara3233">Domain</flowPara></flowRoot> </g> +</svg> diff --git a/sandbox/slaws/distributed-runtime/calculator-standalone.svg b/sandbox/slaws/distributed-runtime/calculator-standalone.svg new file mode 100644 index 0000000000..40f782e4f1 --- /dev/null +++ b/sandbox/slaws/distributed-runtime/calculator-standalone.svg @@ -0,0 +1,370 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://web.resource.org/cc/" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="1052.3622" + height="744.09448" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.45.1" + sodipodi:docbase="C:\simon\tuscany\sandbox\slaws\distributed-runtime" + sodipodi:docname="calculator-standalone.svg" + version="1.0" + inkscape:export-filename="C:\simon\tuscany\sandbox\slaws\distributed-runtime\calculator-standalone.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" + inkscape:output_extension="org.inkscape.output.svg.inkscape"> + <defs + id="defs4" /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + gridtolerance="10000" + guidetolerance="10" + objecttolerance="10" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="1.4" + inkscape:cx="471.80491" + inkscape:cy="378.84265" + inkscape:document-units="px" + inkscape:current-layer="layer1" + inkscape:window-width="1236" + inkscape:window-height="811" + inkscape:window-x="59" + inkscape:window-y="79" /> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1"> + <g + id="g2997" + transform="matrix(1,0,0,1.144214,0,-27.53557)"> + <rect + rx="15.307091" + ry="12.692303" + y="192.00233" + x="258.31146" + height="299.99988" + width="495.71429" + id="rect2067" + style="opacity:1;fill:#90baf4;fill-opacity:1;stroke:#060000;stroke-width:1.86971939;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + id="flowRoot2954" + xml:space="preserve"><flowRegion + id="flowRegion2956"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2958" /></flowRegion><flowPara + id="flowPara2960">Calculator Composite</flowPara></flowRoot> </g> + <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:1.9999994;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2988" + width="115.66247" + height="191.57716" + x="339.91632" + y="262.1673" + rx="6.9961648" + ry="15.892869" /> + <flowRoot + xml:space="preserve" + id="flowRoot2966" + transform="translate(79.61125,62.65764)"><flowRegion + id="flowRegion2968"><rect + id="rect2970" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2972">Calculator</flowPara><flowPara + id="flowPara1895">Service</flowPara><flowPara + id="flowPara1897">Component</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 322.76581,342.58603 L 356.10085,342.58603 L 362.16176,355.71801 L 355.0907,367.83985 L 322.76581,367.83985 L 330.34196,355.71801 L 322.76581,342.58603 z " + id="path3017" /> + <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:0.99999982px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 431.01809,321.46204 L 471.00147,321.46204 L 478.27117,334.59402 L 469.78986,346.71586 L 431.01809,346.71586 L 440.10523,334.59402 L 431.01809,321.46204 z " + id="path3019" /> + <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.09095263px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 209.63328,328.65594 L 280.36391,328.65594 L 293.224,355.48347 L 278.22057,380.24738 L 209.63328,380.24738 L 225.70843,355.48347 L 209.63328,328.65594 z " + id="path1883" /> + <flowRoot + xml:space="preserve" + id="flowRoot1885" + transform="translate(-46.16225,128.7269)" + style="font-family:Bitstream Vera Sans;font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal;font-size:11;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%"><flowRegion + id="flowRegion1887"><rect + id="rect1889" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" + style="font-family:Bitstream Vera Sans;font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal;font-size:11;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%" /></flowRegion><flowPara + id="flowPara1891">Calculator</flowPara><flowPara + id="flowPara1893">Service</flowPara></flowRoot> <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2.00000024;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect1899" + width="115.66247" + height="70.148659" + x="594.75488" + y="209.73451" + rx="6.9961648" + ry="5.8193965" /> + <flowRoot + xml:space="preserve" + id="flowRoot1901" + transform="translate(334.4498,10.22481)"><flowRegion + id="flowRegion1903"><rect + id="rect1905" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara1907">Add</flowPara><flowPara + id="flowPara1909">Service</flowPara><flowPara + id="flowPara1911">Component</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 573.31867,232.29606 L 606.65371,232.29606 L 612.71462,245.42804 L 605.64356,257.54988 L 573.31867,257.54988 L 580.89482,245.42804 L 573.31867,232.29606 z " + id="path1913" /> + <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2.00000024;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect1917" + width="115.66247" + height="70.148659" + x="594.06543" + y="292.59158" + rx="6.9961648" + ry="5.8193965" /> + <flowRoot + xml:space="preserve" + id="flowRoot1919" + transform="translate(333.7604,93.08188)"><flowRegion + id="flowRegion1921"><rect + id="rect1923" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara1925">Subtract</flowPara><flowPara + id="flowPara1927">Service</flowPara><flowPara + id="flowPara1929">Component</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 572.62924,315.15313 L 605.96428,315.15313 L 612.02519,328.28511 L 604.95413,340.40695 L 572.62924,340.40695 L 580.20539,328.28511 L 572.62924,315.15313 z " + id="path1931" /> + <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2.00000024;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect1933" + width="115.66247" + height="70.148659" + x="594.77979" + y="371.87729" + rx="6.9961648" + ry="5.8193965" /> + <flowRoot + xml:space="preserve" + id="flowRoot1935" + transform="translate(334.4747,172.3676)"><flowRegion + id="flowRegion1937"><rect + id="rect1939" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara1941">Multiply</flowPara><flowPara + id="flowPara1943">Service</flowPara><flowPara + id="flowPara1945">Component</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 573.34352,394.43884 L 606.67856,394.43884 L 612.73947,407.57082 L 605.66841,419.69266 L 573.34352,419.69266 L 580.91967,407.57082 L 573.34352,394.43884 z " + id="path1947" /> + <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2.00000024;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect1949" + width="115.66247" + height="70.148659" + x="596.20831" + y="452.59158" + rx="6.9961648" + ry="5.8193965" /> + <flowRoot + xml:space="preserve" + id="flowRoot1951" + transform="translate(335.9032,253.0819)"><flowRegion + id="flowRegion1953"><rect + id="rect1955" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara1957">Divide</flowPara><flowPara + id="flowPara1959">Service</flowPara><flowPara + id="flowPara1961">Component</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 574.77209,475.15313 L 608.10713,475.15313 L 614.16804,488.28511 L 607.09698,500.40695 L 574.77209,500.40695 L 582.34824,488.28511 L 574.77209,475.15313 z " + id="path1963" /> + <flowRoot + xml:space="preserve" + id="flowRoot1965" + transform="translate(161.0221,114.967)" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"><flowRegion + id="flowRegion1967"><rect + id="rect1969" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans" /></flowRegion><flowPara + id="flowPara1973">add</flowPara><flowPara + id="flowPara1977">Service</flowPara></flowRoot> <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:0.99999982px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 430.65917,357.18186 L 470.64255,357.18186 L 477.91225,370.31384 L 469.43094,382.43568 L 430.65917,382.43568 L 439.74631,370.31384 L 430.65917,357.18186 z " + id="path1979" /> + <flowRoot + xml:space="preserve" + id="flowRoot1981" + transform="translate(160.6632,150.6868)" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"><flowRegion + id="flowRegion1983"><rect + id="rect1985" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans" /></flowRegion><flowPara + id="flowPara1987">subtract</flowPara><flowPara + id="flowPara1989">Service</flowPara></flowRoot> <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:0.99999982px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 431.37346,390.75329 L 471.35684,390.75329 L 478.62654,403.88527 L 470.14523,416.00711 L 431.37346,416.00711 L 440.4606,403.88527 L 431.37346,390.75329 z " + id="path1991" /> + <flowRoot + xml:space="preserve" + id="flowRoot1993" + transform="translate(161.3775,184.2583)" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"><flowRegion + id="flowRegion1995"><rect + id="rect1997" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans" /></flowRegion><flowPara + id="flowPara1999">multiply</flowPara><flowPara + id="flowPara2001">Service</flowPara></flowRoot> <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:0.99999982px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 429.94489,422.18186 L 469.92827,422.18186 L 477.19797,435.31384 L 468.71666,447.43568 L 429.94489,447.43568 L 439.03203,435.31384 L 429.94489,422.18186 z " + id="path2003" /> + <flowRoot + xml:space="preserve" + id="flowRoot2005" + transform="translate(159.9489,215.6868)" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"><flowRegion + id="flowRegion2007"><rect + id="rect2009" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans" /></flowRegion><flowPara + id="flowPara2011">divide</flowPara><flowPara + id="flowPara2013">Service</flowPara></flowRoot> <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 477.85714,335.52305 L 511.42857,335.52305 L 510.71429,245.52305 L 579.28571,245.52305" + id="path2015" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 477.85714,369.80877 L 528.57143,369.80877 L 528.57143,329.80877 L 580,329.80877" + id="path2017" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 478.57143,402.66591 L 528.57143,401.95163 L 528.57143,408.3802 L 580,407.66591" + id="path2019" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 475.71429,435.52305 L 509.28571,435.52305 L 510,486.95163 L 582.14286,486.23734" + id="path2021" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 292.85714,355.52305 L 330,354.80877" + id="path2023" /> + <rect + style="opacity:0.28888891;fill:#ec8f9b;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:6, 1;stroke-dashoffset:0;stroke-opacity:1" + id="rect2238" + width="526.42859" + height="394.28571" + x="240.71428" + y="170.52306" + rx="6.9961648" + ry="7.1230249" /> + <rect + style="opacity:0.28888891;fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.95462406;stroke-miterlimit:4;stroke-dasharray:5.72774401, 0.954624;stroke-dashoffset:0;stroke-opacity:1" + id="rect3214" + width="549.33105" + height="438.61682" + x="231.40588" + y="149.07179" + rx="6.3749943" + ry="7.1237621" /> + <flowRoot + xml:space="preserve" + id="flowRoot3216" + transform="translate(142.85714,-13.571429)"><flowRegion + id="flowRegion3218"><rect + id="rect3220" + width="87.85714" + height="22.142857" + x="108.57143" + y="187.66591" /></flowRegion><flowPara + id="flowPara3222">Node</flowPara></flowRoot> <flowRoot + xml:space="preserve" + id="flowRoot3224" + transform="translate(128.30552,-33.649754)" + inkscape:transform-center-x="67.857143" + inkscape:transform-center-y="52.142857"><flowRegion + id="flowRegion3226"><rect + id="rect3228" + width="87.85714" + height="22.142857" + x="108.57143" + y="187.66591" /></flowRegion><flowPara + id="flowPara3230">Domain</flowPara></flowRoot> </g> +</svg> diff --git a/sandbox/slaws/distributed-runtime/distributed-abstract.svg b/sandbox/slaws/distributed-runtime/distributed-abstract.svg new file mode 100644 index 0000000000..3f91a86484 --- /dev/null +++ b/sandbox/slaws/distributed-runtime/distributed-abstract.svg @@ -0,0 +1,570 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://web.resource.org/cc/" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="1052.3622" + height="744.09448" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.45.1" + sodipodi:docbase="C:\simon\tuscany\sandbox\slaws\distributed-runtime" + sodipodi:docname="distributed-abstract.svg" + version="1.0" + inkscape:export-filename="C:\simon\Tuscany\sandbox\slaws\distributed-runtime\distributed-abstract.png" + inkscape:export-xdpi="47.540001" + inkscape:export-ydpi="47.540001" + inkscape:output_extension="org.inkscape.output.svg.inkscape"> + <defs + id="defs4"> + <marker + inkscape:stockid="Arrow2Lend" + orient="auto" + refY="0.0" + refX="0.0" + id="Arrow2Lend" + style="overflow:visible;"> + <path + id="path3200" + style="font-size:12.0;fill-rule:evenodd;stroke-width:0.62500000;stroke-linejoin:round;" + d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z " + transform="scale(1.1) rotate(180) translate(1,0)" /> + </marker> + <marker + inkscape:stockid="Arrow1Lend" + orient="auto" + refY="0.0" + refX="0.0" + id="Arrow1Lend" + style="overflow:visible;"> + <path + id="path3182" + d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z " + style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt;marker-start:none;" + transform="scale(0.8) rotate(180) translate(12.5,0)" /> + </marker> + </defs> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + gridtolerance="10000" + guidetolerance="10" + objecttolerance="10" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="0.98994949" + inkscape:cx="502.39151" + inkscape:cy="370.48478" + inkscape:document-units="px" + inkscape:current-layer="layer1" + inkscape:window-width="1199" + inkscape:window-height="897" + inkscape:window-x="368" + inkscape:window-y="76" /> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1"> + <path + sodipodi:type="arc" + style="opacity:0.21666667;fill:#ececec;fill-opacity:1;stroke:#000000;stroke-width:1.85099995;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="path2224" + sodipodi:cx="340.92648" + sodipodi:cy="353.67053" + sodipodi:rx="198.49498" + sodipodi:ry="198.49498" + d="M 539.42146 353.67053 A 198.49498 198.49498 0 1 1 142.4315,353.67053 A 198.49498 198.49498 0 1 1 539.42146 353.67053 z" + transform="matrix(1.1241926,0,0,1.0860247,104.63665,-42.546227)" /> + <text + xml:space="preserve" + style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" + x="410.09799" + y="181.40942" + id="text3254"><tspan + sodipodi:role="line" + x="410.09799" + y="181.40942" + style="font-size:20px" + id="tspan2433">SCA Domain</tspan></text> + <path + sodipodi:type="arc" + style="opacity:0.55;fill:#931212;fill-opacity:1;stroke:#000000;stroke-width:1.85099995;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="path2437" + sodipodi:cx="340.92648" + sodipodi:cy="353.67053" + sodipodi:rx="198.49498" + sodipodi:ry="198.49498" + d="M 539.42146 353.67053 A 198.49498 198.49498 0 1 1 142.4315,353.67053 A 198.49498 198.49498 0 1 1 539.42146 353.67053 z" + transform="matrix(0.2173894,0,0,0.2173895,281.45989,183.34715)" /> + <text + xml:space="preserve" + style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" + x="330.82498" + y="243.56387" + id="text2439"><tspan + sodipodi:role="line" + id="tspan2441" + x="330.82498" + y="243.56387" + style="font-size:20px">Node</tspan></text> + <g + id="g2443" + inkscape:label="Layer 1" + transform="matrix(0.421449,0,0,0.4251546,183.81085,184.99345)"> + <rect + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + ry="7.1230249" + rx="6.9961648" + y="159.21616" + x="352.03815" + height="85.862968" + width="115.66247" + id="rect2445" + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + transform="translate(84.44737,-46.72238)" + id="flowRoot2447" + xml:space="preserve"><flowRegion + id="flowRegion2449"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2451" /></flowRegion><flowPara + id="flowPara2453">Component</flowPara><flowPara + id="flowPara2455" /></flowRoot> <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2457" + d="M 334.88764,191.06315 L 368.22268,191.06315 L 374.28359,204.19513 L 367.21253,216.31697 L 334.88764,216.31697 L 342.46379,204.19513 L 334.88764,191.06315 z " + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2459" + d="M 448.14008,189.22487 L 481.47512,189.22487 L 487.53603,202.35685 L 480.46497,214.47869 L 448.14008,214.47869 L 455.71623,202.35685 L 448.14008,189.22487 z " + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + </g> + <path + sodipodi:type="arc" + style="opacity:0.55;fill:#931212;fill-opacity:1;stroke:#000000;stroke-width:1.85099995;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="path2461" + sodipodi:cx="340.92648" + sodipodi:cy="353.67053" + sodipodi:rx="198.49498" + sodipodi:ry="198.49498" + d="M 539.42146 353.67053 A 198.49498 198.49498 0 1 1 142.4315,353.67053 A 198.49498 198.49498 0 1 1 539.42146 353.67053 z" + transform="matrix(0.2173894,0,0,0.2173895,277.41929,319.71774)" /> + <text + xml:space="preserve" + style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" + x="326.78433" + y="379.93445" + id="text2463"><tspan + sodipodi:role="line" + id="tspan2465" + x="326.78433" + y="379.93445" + style="font-size:20px">Node</tspan></text> + <g + id="g2467" + inkscape:label="Layer 1" + transform="matrix(0.421449,0,0,0.4251546,179.77025,321.36404)"> + <rect + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + ry="7.1230249" + rx="6.9961648" + y="159.21616" + x="352.03815" + height="85.862968" + width="115.66247" + id="rect2469" + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + transform="translate(84.44737,-46.72238)" + id="flowRoot2471" + xml:space="preserve"><flowRegion + id="flowRegion2473"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2475" /></flowRegion><flowPara + id="flowPara2477">Component</flowPara><flowPara + id="flowPara2479" /></flowRoot> <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2481" + d="M 334.88764,191.06315 L 368.22268,191.06315 L 374.28359,204.19513 L 367.21253,216.31697 L 334.88764,216.31697 L 342.46379,204.19513 L 334.88764,191.06315 z " + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2483" + d="M 448.14008,189.22487 L 481.47512,189.22487 L 487.53603,202.35685 L 480.46497,214.47869 L 448.14008,214.47869 L 455.71623,202.35685 L 448.14008,189.22487 z " + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + </g> + <path + sodipodi:type="arc" + style="opacity:0.55;fill:#931212;fill-opacity:1;stroke:#000000;stroke-width:1.85099995;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="path2485" + sodipodi:cx="340.92648" + sodipodi:cy="353.67053" + sodipodi:rx="198.49498" + sodipodi:ry="198.49498" + d="M 539.42146 353.67053 A 198.49498 198.49498 0 1 1 142.4315,353.67053 A 198.49498 198.49498 0 1 1 539.42146 353.67053 z" + transform="matrix(0.2173894,0,0,0.2173895,382.47516,228.80401)" /> + <text + xml:space="preserve" + style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" + x="431.84024" + y="289.02072" + id="text2487"><tspan + sodipodi:role="line" + id="tspan2489" + x="431.84024" + y="289.02072" + style="font-size:20px">Node</tspan></text> + <g + id="g2491" + inkscape:label="Layer 1" + transform="matrix(0.421449,0,0,0.4251546,284.82611,230.45031)"> + <rect + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + ry="7.1230249" + rx="6.9961648" + y="159.21616" + x="352.03815" + height="85.862968" + width="115.66247" + id="rect2493" + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + transform="translate(84.44737,-46.72238)" + id="flowRoot2495" + xml:space="preserve"><flowRegion + id="flowRegion2497"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2499" /></flowRegion><flowPara + id="flowPara2501">Component</flowPara><flowPara + id="flowPara2503" /></flowRoot> <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2505" + d="M 334.88764,191.06315 L 368.22268,191.06315 L 374.28359,204.19513 L 367.21253,216.31697 L 334.88764,216.31697 L 342.46379,204.19513 L 334.88764,191.06315 z " + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2507" + d="M 448.14008,189.22487 L 481.47512,189.22487 L 487.53603,202.35685 L 480.46497,214.47869 L 448.14008,214.47869 L 455.71623,202.35685 L 448.14008,189.22487 z " + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + </g> + <path + sodipodi:type="arc" + style="opacity:0.55;fill:#931212;fill-opacity:1;stroke:#000000;stroke-width:1.85099995;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="path2509" + sodipodi:cx="340.92648" + sodipodi:cy="353.67053" + sodipodi:rx="198.49498" + sodipodi:ry="198.49498" + d="M 539.42146 353.67053 A 198.49498 198.49498 0 1 1 142.4315,353.67053 A 198.49498 198.49498 0 1 1 539.42146 353.67053 z" + transform="matrix(0.2173894,0,0,0.2173895,394.59699,393.45888)" /> + <text + xml:space="preserve" + style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" + x="443.96201" + y="453.6756" + id="text2511"><tspan + sodipodi:role="line" + id="tspan2513" + x="443.96201" + y="453.6756" + style="font-size:20px">Node</tspan></text> + <g + id="g2515" + inkscape:label="Layer 1" + transform="matrix(0.421449,0,0,0.4251546,296.94794,395.10518)"> + <rect + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + ry="7.1230249" + rx="6.9961648" + y="159.21616" + x="352.03815" + height="85.862968" + width="115.66247" + id="rect2517" + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + transform="translate(84.44737,-46.72238)" + id="flowRoot2519" + xml:space="preserve"><flowRegion + id="flowRegion2521"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2523" /></flowRegion><flowPara + id="flowPara2525">Component</flowPara><flowPara + id="flowPara2527" /></flowRoot> <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2529" + d="M 334.88764,191.06315 L 368.22268,191.06315 L 374.28359,204.19513 L 367.21253,216.31697 L 334.88764,216.31697 L 342.46379,204.19513 L 334.88764,191.06315 z " + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2531" + d="M 448.14008,189.22487 L 481.47512,189.22487 L 487.53603,202.35685 L 480.46497,214.47869 L 448.14008,214.47869 L 455.71623,202.35685 L 448.14008,189.22487 z " + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + </g> + <path + sodipodi:type="arc" + style="opacity:0.55;fill:#931212;fill-opacity:1;stroke:#000000;stroke-width:1.85099995;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="path2533" + sodipodi:cx="340.92648" + sodipodi:cy="353.67053" + sodipodi:rx="198.49498" + sodipodi:ry="198.49498" + d="M 539.42146 353.67053 A 198.49498 198.49498 0 1 1 142.4315,353.67053 A 198.49498 198.49498 0 1 1 539.42146 353.67053 z" + transform="matrix(0.2173894,0,0,0.2173895,475.40919,316.68729)" /> + <text + xml:space="preserve" + style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" + x="524.77429" + y="376.90399" + id="text2535"><tspan + sodipodi:role="line" + id="tspan2537" + x="524.77429" + y="376.90399" + style="font-size:20px">Node</tspan></text> + <g + id="g2539" + inkscape:label="Layer 1" + transform="matrix(0.421449,0,0,0.4251546,377.76015,318.33359)"> + <rect + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + ry="7.1230249" + rx="6.9961648" + y="159.21616" + x="352.03815" + height="85.862968" + width="115.66247" + id="rect2541" + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + transform="translate(84.44737,-46.72238)" + id="flowRoot2543" + xml:space="preserve"><flowRegion + id="flowRegion2545"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2547" /></flowRegion><flowPara + id="flowPara2549">Component</flowPara><flowPara + id="flowPara2551" /></flowRoot> <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2553" + d="M 334.88764,191.06315 L 368.22268,191.06315 L 374.28359,204.19513 L 367.21253,216.31697 L 334.88764,216.31697 L 342.46379,204.19513 L 334.88764,191.06315 z " + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2555" + d="M 448.14008,189.22487 L 481.47512,189.22487 L 487.53603,202.35685 L 480.46497,214.47869 L 448.14008,214.47869 L 455.71623,202.35685 L 448.14008,189.22487 z " + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + </g> + <path + sodipodi:type="arc" + style="opacity:0.55;fill:#931212;fill-opacity:1;stroke:#000000;stroke-width:1.85099995;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="path2557" + sodipodi:cx="340.92648" + sodipodi:cy="353.67053" + sodipodi:rx="198.49498" + sodipodi:ry="198.49498" + d="M 539.42146 353.67053 A 198.49498 198.49498 0 1 1 142.4315,353.67053 A 198.49498 198.49498 0 1 1 539.42146 353.67053 z" + transform="matrix(0.2173894,0,0,0.2173895,516.82544,194.45883)" /> + <text + xml:space="preserve" + style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" + x="566.19055" + y="254.67557" + id="text2559"><tspan + sodipodi:role="line" + id="tspan2561" + x="566.19055" + y="254.67557" + style="font-size:20px">Node</tspan></text> + <g + id="g2563" + inkscape:label="Layer 1" + transform="matrix(0.421449,0,0,0.4251546,419.1764,196.10513)"> + <rect + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + ry="7.1230249" + rx="6.9961648" + y="159.21616" + x="352.03815" + height="85.862968" + width="115.66247" + id="rect2565" + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + transform="translate(84.44737,-46.72238)" + id="flowRoot2567" + xml:space="preserve"><flowRegion + id="flowRegion2569"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2571" /></flowRegion><flowPara + id="flowPara2573">Component</flowPara><flowPara + id="flowPara2575" /></flowRoot> <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2577" + d="M 334.88764,191.06315 L 368.22268,191.06315 L 374.28359,204.19513 L 367.21253,216.31697 L 334.88764,216.31697 L 342.46379,204.19513 L 334.88764,191.06315 z " + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2579" + d="M 448.14008,189.22487 L 481.47512,189.22487 L 487.53603,202.35685 L 480.46497,214.47869 L 448.14008,214.47869 L 455.71623,202.35685 L 448.14008,189.22487 z " + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + </g> + <path + sodipodi:type="arc" + style="opacity:0.55;fill:#931212;fill-opacity:1;stroke:#000000;stroke-width:1.85099995;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="path2581" + sodipodi:cx="340.92648" + sodipodi:cy="353.67053" + sodipodi:rx="198.49498" + sodipodi:ry="198.49498" + d="M 539.42146 353.67053 A 198.49498 198.49498 0 1 1 142.4315,353.67053 A 198.49498 198.49498 0 1 1 539.42146 353.67053 z" + transform="matrix(0.2173894,0,0,0.2173895,569.35337,325.77866)" /> + <text + xml:space="preserve" + style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" + x="618.71851" + y="385.99539" + id="text2583"><tspan + sodipodi:role="line" + id="tspan2585" + x="618.71851" + y="385.99539" + style="font-size:20px">Node</tspan></text> + <g + id="g2587" + inkscape:label="Layer 1" + transform="matrix(0.421449,0,0,0.4251546,471.70433,327.42496)"> + <rect + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + ry="7.1230249" + rx="6.9961648" + y="159.21616" + x="352.03815" + height="85.862968" + width="115.66247" + id="rect2589" + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + transform="translate(84.44737,-46.72238)" + id="flowRoot2591" + xml:space="preserve"><flowRegion + id="flowRegion2593"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2595" /></flowRegion><flowPara + id="flowPara2597">Component</flowPara><flowPara + id="flowPara2599" /></flowRoot> <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2601" + d="M 334.88764,191.06315 L 368.22268,191.06315 L 374.28359,204.19513 L 367.21253,216.31697 L 334.88764,216.31697 L 342.46379,204.19513 L 334.88764,191.06315 z " + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2603" + d="M 448.14008,189.22487 L 481.47512,189.22487 L 487.53603,202.35685 L 480.46497,214.47869 L 448.14008,214.47869 L 455.71623,202.35685 L 448.14008,189.22487 z " + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + </g> + </g> +</svg> diff --git a/sandbox/slaws/distributed-runtime/distributed-cardinality.svg b/sandbox/slaws/distributed-runtime/distributed-cardinality.svg new file mode 100644 index 0000000000..5a14ed4575 --- /dev/null +++ b/sandbox/slaws/distributed-runtime/distributed-cardinality.svg @@ -0,0 +1,471 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://web.resource.org/cc/" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="1052.3622" + height="744.09448" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.45.1" + sodipodi:docbase="C:\simon\tuscany\sandbox\slaws\distributed-runtime" + sodipodi:docname="distributed-cardinality.svg" + version="1.0" + inkscape:export-filename="C:\simon\Tuscany\sandbox\slaws\distributed-runtime\distributed-cardinality.png" + inkscape:export-xdpi="105.68515" + inkscape:export-ydpi="105.68515" + inkscape:output_extension="org.inkscape.output.svg.inkscape"> + <defs + id="defs4"> + <marker + inkscape:stockid="Arrow1Lend" + orient="auto" + refY="0.0" + refX="0.0" + id="Arrow1Lend" + style="overflow:visible;"> + <path + id="path3210" + d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z " + style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt;marker-start:none;" + transform="scale(0.8) rotate(180) translate(12.5,0)" /> + </marker> + </defs> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + gridtolerance="10000" + guidetolerance="10" + objecttolerance="10" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="0.98994949" + inkscape:cx="502.39151" + inkscape:cy="329.86088" + inkscape:document-units="px" + inkscape:current-layer="layer1" + inkscape:window-width="1602" + inkscape:window-height="964" + inkscape:window-x="70" + inkscape:window-y="52" /> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1"> + <rect + style="opacity:0.35555558;fill:#ececec;fill-opacity:1;stroke:#261c1c;stroke-width:1.851;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:7.404,1.851;stroke-dashoffset:0;stroke-opacity:1" + id="rect1938" + width="192.28979" + height="281.93597" + x="592.80554" + y="53.056503" + rx="8.9261026" + ry="15.625688" /> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="605.23724" + y="79.773918" + id="text1870" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan1872" + x="605.23724" + y="79.773918">LogicalDomain</tspan></text> + <rect + style="opacity:0.35555558;fill:#9a8787;fill-opacity:1;stroke:#261c1c;stroke-width:1.98191917;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect1874" + width="149.73236" + height="415.14508" + x="53.043877" + y="235.84761" + rx="6.9505839" + ry="23.008512" /> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="70.237511" + y="273.61115" + id="text1876" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan1878" + x="70.237511" + y="273.61115">TuscanyRuntime</tspan></text> + <rect + style="opacity:0.35555558;fill:#9a8787;fill-opacity:1;stroke:#261c1c;stroke-width:1.1708349;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect1880" + width="170.74649" + height="127.05252" + x="45.641045" + y="48.859726" + rx="7.9260616" + ry="7.0416098" /> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="85.555717" + y="77.345703" + id="text1882" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan1884" + x="85.555717" + y="77.345703">Node</tspan></text> + <rect + style="opacity:0.35555558;fill:#9a8787;fill-opacity:1;stroke:#261c1c;stroke-width:1.78771436;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2181" + width="176.19054" + height="287.0499" + x="295.94952" + y="53.453842" + rx="8.1787739" + ry="15.909116" /> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="308.97089" + y="81.907104" + id="text2183" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2185" + x="308.97089" + y="81.907104">Domain</tspan></text> + <rect + style="opacity:0.35555558;fill:#9a8787;fill-opacity:1;stroke:#261c1c;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2193" + width="150.71428" + height="105" + x="297.10687" + y="403.311" + rx="6.9961648" + ry="5.8193965" /> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="313.10455" + y="428.68039" + id="text2195" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2197" + x="313.10455" + y="428.68039">Domain</tspan><tspan + sodipodi:role="line" + x="313.10455" + y="444.68039" + id="tspan2222">Level</tspan><tspan + sodipodi:role="line" + x="313.10455" + y="460.68039" + id="tspan2224">Composite</tspan></text> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.87367702px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 217.89532,101.27428 C 295.31691,101.27428 295.31691,101.27428 295.31691,101.27428" + id="path2188" /> + <rect + style="opacity:0.35555558;fill:#9a8787;fill-opacity:1;stroke:#261c1c;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2204" + width="150.71428" + height="105" + x="298.5354" + y="550.4538" + rx="6.9961648" + ry="5.8193965" /> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="316.67596" + y="572.966" + id="text2206" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2208" + x="316.67596" + y="572.966">Component</tspan></text> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="279.34424" + y="116.94504" + id="text2210" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2212" + x="279.34424" + y="116.94504">n</tspan></text> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="221.55011" + y="119.16714" + id="text2214" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2216" + x="221.55011" + y="119.16714">1</tspan></text> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.11103559px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 368.35157,341.07609 C 368.35157,403.6778 368.35157,403.6778 368.35157,403.6778" + id="path2218" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 366.74969,509.38236 C 366.74969,550.81093 366.74969,550.09664 366.74969,550.09664" + id="path2220" /> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="373.78571" + y="397.82059" + id="text2226" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2228" + x="373.78571" + y="397.82059">1</tspan></text> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="374.50006" + y="355.28033" + id="text2230" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2232" + x="374.50006" + y="355.28033">1</tspan></text> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="370.75525" + y="522.27521" + id="text2234" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2236" + x="370.75525" + y="522.27521">1</tspan></text> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="372.32391" + y="545.7674" + id="text2238" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2240" + x="372.32391" + y="545.7674">n</tspan></text> + <rect + style="opacity:0.35555558;fill:#f5f5f5;fill-opacity:1;stroke:#261c1c;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:4, 1;stroke-dashoffset:0;stroke-opacity:1" + id="rect2321" + width="150.71428" + height="105" + x="603.76123" + y="407.26758" + rx="6.9961648" + ry="5.8193965" /> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="619.75891" + y="432.63696" + id="text2323" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2325" + x="619.75891" + y="432.63696">Logical</tspan><tspan + sodipodi:role="line" + x="619.75891" + y="448.63696" + id="tspan2259">Domain</tspan><tspan + sodipodi:role="line" + x="619.75891" + y="464.63696" + id="tspan2327">Level</tspan><tspan + sodipodi:role="line" + x="619.75891" + y="480.63696" + id="tspan2329">Composite</tspan></text> + <rect + style="opacity:0.35555558;fill:#f5f5f5;fill-opacity:1;stroke:#261c1c;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:4, 1;stroke-dashoffset:0;stroke-opacity:1" + id="rect2331" + width="150.71428" + height="105" + x="605.1897" + y="554.4104" + rx="6.9961648" + ry="5.8193965" /> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="623.33032" + y="576.92261" + id="text2333" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2335" + x="623.33032" + y="576.92261">Logical</tspan><tspan + sodipodi:role="line" + x="623.33032" + y="592.92261" + id="tspan2261">Component</tspan></text> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.20399487px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 675.00592,333.00973 C 675.00592,406.52534 675.00592,406.52534 675.00592,406.52534" + id="path2337" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 673.40412,513.33894 C 673.40412,554.76751 673.40412,554.05322 673.40412,554.05322" + id="path2339" /> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="680.44006" + y="401.77716" + id="text2341" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2343" + x="680.44006" + y="401.77716">1</tspan></text> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="681.1543" + y="348.12521" + id="text2345" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2347" + x="681.1543" + y="348.12521">1</tspan></text> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="677.40955" + y="526.23181" + id="text2349" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2351" + x="677.40955" + y="526.23181">1</tspan></text> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="678.97827" + y="549.724" + id="text2353" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2355" + x="678.97827" + y="549.724">n</tspan></text> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="278.41693" + y="592.77313" + id="text3352" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan3354" + x="278.41693" + y="592.77313">n</tspan></text> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.06608832px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 127.27922,177.36873 C 127.27922,235.00776 127.27922,235.00776 127.27922,235.00776" + id="path2242" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.37724116px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 202.8002,463.77715 C 295.205,463.77715 295.205,463.77715 295.205,463.77715" + id="path2244" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.95962566px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 203.81599,606.71374 C 297.21966,606.71374 297.21966,606.71374 297.21966,606.71374" + id="path2246" /> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="276.97089" + y="453.86981" + id="text2248" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2250" + x="276.97089" + y="453.86981">1</tspan></text> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="135.5495" + y="194.26059" + id="text2224" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2226" + x="135.5495" + y="194.26059">1</tspan></text> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="134.97528" + y="226.0878" + id="text2228" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2230" + x="134.97528" + y="226.0878">n</tspan></text> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.06655526px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow1Lend)" + d="M 474.66087,182.44966 C 590.03992,182.44966 590.03992,182.44966 590.03992,182.44966" + id="path2232" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.06655526px;stroke-linecap:butt;stroke-linejoin:miter;marker-end:url(#Arrow1Lend);stroke-opacity:1" + d="M 475.67102,456.201 C 591.05007,456.201 591.05007,456.201 591.05007,456.201" + id="path3402" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.06655526px;stroke-linecap:butt;stroke-linejoin:miter;marker-end:url(#Arrow1Lend);stroke-opacity:1" + d="M 477.69132,605.70358 C 593.07037,605.70358 593.07037,605.70358 593.07037,605.70358" + id="path3404" /> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="343.06973" + y="699.21967" + id="text3406" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan3408" + x="343.06973" + y="699.21967">The physical artifacts on the left represent the role this node</tspan><tspan + sodipodi:role="line" + x="343.06973" + y="715.21967" + id="tspan3410">plays in the wider (logical) domain</tspan></text> + </g> +</svg> diff --git a/sandbox/slaws/distributed-runtime/distributed-overview.svg b/sandbox/slaws/distributed-runtime/distributed-overview.svg new file mode 100644 index 0000000000..c8c32a35a8 --- /dev/null +++ b/sandbox/slaws/distributed-runtime/distributed-overview.svg @@ -0,0 +1,715 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://web.resource.org/cc/" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="1052.3622" + height="744.09448" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.45.1" + sodipodi:docbase="C:\simon\tuscany\sandbox\slaws\distributed-runtime" + sodipodi:docname="distributed-overview.svg" + version="1.0" + inkscape:export-filename="C:\simon\Tuscany\sandbox\slaws\distributed-runtime\distributed-overview.png" + inkscape:export-xdpi="55.263577" + inkscape:export-ydpi="55.263577" + inkscape:output_extension="org.inkscape.output.svg.inkscape"> + <defs + id="defs4"> + <marker + inkscape:stockid="Arrow1Lstart" + orient="auto" + refY="0.0" + refX="0.0" + id="Arrow1Lstart" + style="overflow:visible"> + <path + id="path4542" + d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z " + style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt;marker-start:none" + transform="scale(0.8) translate(12.5,0)" /> + </marker> + <marker + inkscape:stockid="Arrow1Lend" + orient="auto" + refY="0.0" + refX="0.0" + id="Arrow1Lend" + style="overflow:visible;"> + <path + id="path4545" + d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z " + style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt;marker-start:none;" + transform="scale(0.8) rotate(180) translate(12.5,0)" /> + </marker> + </defs> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + gridtolerance="10000" + guidetolerance="10" + objecttolerance="10" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="0.98994949" + inkscape:cx="311.21921" + inkscape:cy="337.49597" + inkscape:document-units="px" + inkscape:current-layer="layer1" + inkscape:window-width="1680" + inkscape:window-height="994" + inkscape:window-x="0" + inkscape:window-y="22" /> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1"> + <g + id="g2997" + transform="matrix(1.4431765,0,0,1.3023689,-29.397621,-21.63477)"> + <rect + rx="19.922808" + ry="12.137726" + y="294.34" + x="67.404816" + height="286.89166" + width="645.1925" + id="rect2067" + style="opacity:1;fill:#90baf4;fill-opacity:1;stroke:#060000;stroke-width:1.84758425;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + id="flowRoot2954" + xml:space="preserve" + transform="translate(-198.97686,89.113065)"><flowRegion + id="flowRegion2956"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2958" /></flowRegion><flowPara + id="flowPara2960">Calculator</flowPara></flowRoot> </g> + <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:1.9999994;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2988" + width="115.66247" + height="191.57716" + x="133.8452" + y="394.51248" + rx="6.9961648" + ry="15.892869" /> + <flowRoot + xml:space="preserve" + id="flowRoot2966" + transform="translate(-126.45987,195.00283)"><flowRegion + id="flowRegion2968"><rect + id="rect2970" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2972">Calculator</flowPara><flowPara + id="flowPara1895">Service</flowPara><flowPara + id="flowPara1897">Component</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 116.69469,474.93122 L 150.02973,474.93122 L 156.09064,488.0632 L 149.01958,500.18504 L 116.69469,500.18504 L 124.27084,488.0632 L 116.69469,474.93122 z " + id="path3017" /> + <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999982px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 224.94697,453.80723 L 264.93035,453.80723 L 272.20005,466.93921 L 263.71874,479.06105 L 224.94697,479.06105 L 234.03411,466.93921 L 224.94697,453.80723 z " + id="path3019" /> + <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000024px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 33.088111,460.95565 L 92.412176,460.95565 L 103.19836,487.83048 L 90.614486,512.63805 L 33.088111,512.63805 L 46.570861,487.83048 L 33.088111,460.95565 z " + id="path1883" /> + <flowRoot + xml:space="preserve" + id="flowRoot1885" + transform="translate(-236.23337,261.07209)" + style="font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"><flowRegion + id="flowRegion1887"><rect + id="rect1889" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" + style="font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans" /></flowRegion><flowPara + id="flowPara1891">Calculator</flowPara><flowPara + id="flowPara1893">Service</flowPara></flowRoot> <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2.00000024;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect1899" + width="115.66247" + height="70.148659" + x="565.46045" + y="394.02386" + rx="6.9961648" + ry="5.8193965" /> + <flowRoot + xml:space="preserve" + id="flowRoot1901" + transform="translate(314.24675,189.46342)"><flowRegion + id="flowRegion1903"><rect + id="rect1905" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara1907">Add</flowPara><flowPara + id="flowPara1909">Service</flowPara><flowPara + id="flowPara1911">Component</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 547.0547,413.55497 L 580.38974,413.55497 L 586.45065,426.68695 L 579.37959,438.80879 L 547.0547,438.80879 L 554.63085,426.68695 L 547.0547,413.55497 z " + id="path1913" /> + <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2.00000024;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect1917" + width="115.66247" + height="70.148659" + x="817.30908" + y="563.40894" + rx="6.9961648" + ry="5.8193965" /> + <flowRoot + xml:space="preserve" + id="flowRoot1919" + transform="translate(565.08535,363.89919)"><flowRegion + id="flowRegion1921"><rect + id="rect1923" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara1925">Subtract</flowPara><flowPara + id="flowPara1927">Service</flowPara><flowPara + id="flowPara1929">Component</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 793.85266,586.98059 L 827.1877,586.98059 L 833.24861,600.11257 L 826.17755,612.23441 L 793.85266,612.23441 L 801.42881,600.11257 L 793.85266,586.98059 z " + id="path1931" /> + <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2.00000024;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect1933" + width="115.66247" + height="70.148659" + x="322.0386" + y="524.22241" + rx="6.9961648" + ry="5.8193965" /> + <flowRoot + xml:space="preserve" + id="flowRoot1935" + transform="translate(61.733516,324.71279)"><flowRegion + id="flowRegion1937"><rect + id="rect1939" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara1941">Multiply</flowPara><flowPara + id="flowPara1943">Service</flowPara><flowPara + id="flowPara1945">Component</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 300.60234,546.78403 L 333.93738,546.78403 L 339.99829,559.91601 L 332.92723,572.03785 L 300.60234,572.03785 L 308.17849,559.91601 L 300.60234,546.78403 z " + id="path1947" /> + <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2.00000024;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect1949" + width="115.66247" + height="70.148659" + x="320.43668" + y="617.76422" + rx="6.9961648" + ry="5.8193965" /> + <flowRoot + xml:space="preserve" + id="flowRoot1951" + transform="translate(60.131556,418.2545)"><flowRegion + id="flowRegion1953"><rect + id="rect1955" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara1957">Divide</flowPara><flowPara + id="flowPara1959">Service</flowPara><flowPara + id="flowPara1961">Component</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 301.02076,639.31558 L 334.3558,639.31558 L 340.41671,652.44756 L 333.34565,664.5694 L 301.02076,664.5694 L 308.59691,652.44756 L 301.02076,639.31558 z " + id="path1963" /> + <flowRoot + xml:space="preserve" + id="flowRoot1965" + transform="translate(-45.04902,247.31219)" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"><flowRegion + id="flowRegion1967"><rect + id="rect1969" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans" /></flowRegion><flowPara + id="flowPara1973">add</flowPara><flowPara + id="flowPara1977">Service</flowPara></flowRoot> <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999982px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 224.58805,489.52705 L 264.57143,489.52705 L 271.84113,502.65903 L 263.35982,514.78087 L 224.58805,514.78087 L 233.67519,502.65903 L 224.58805,489.52705 z " + id="path1979" /> + <flowRoot + xml:space="preserve" + id="flowRoot1981" + transform="translate(-45.40792,283.03199)" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"><flowRegion + id="flowRegion1983"><rect + id="rect1985" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans" /></flowRegion><flowPara + id="flowPara1987">subtract</flowPara><flowPara + id="flowPara1989">Service</flowPara></flowRoot> <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999982px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 225.30234,523.09848 L 265.28572,523.09848 L 272.55542,536.23046 L 264.07411,548.3523 L 225.30234,548.3523 L 234.38948,536.23046 L 225.30234,523.09848 z " + id="path1991" /> + <flowRoot + xml:space="preserve" + id="flowRoot1993" + transform="translate(-44.69362,316.60349)" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"><flowRegion + id="flowRegion1995"><rect + id="rect1997" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans" /></flowRegion><flowPara + id="flowPara1999">multiply</flowPara><flowPara + id="flowPara2001">Service</flowPara></flowRoot> <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999982px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 223.87377,554.52705 L 263.85715,554.52705 L 271.12685,567.65903 L 262.64554,579.78087 L 223.87377,579.78087 L 232.96091,567.65903 L 223.87377,554.52705 z " + id="path2003" /> + <flowRoot + xml:space="preserve" + id="flowRoot2005" + transform="translate(-46.12222,348.03199)" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"><flowRegion + id="flowRegion2007"><rect + id="rect2009" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans" /></flowRegion><flowPara + id="flowPara2011">divide</flowPara><flowPara + id="flowPara2013">Service</flowPara></flowRoot> <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.5594694px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 267.4026,565.62779 L 280.08283,565.62779 L 280.35263,651.45703 L 307.60164,650.26495" + id="path2021" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.80857879px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 104.87306,487.96395 L 124.02459,487.05825" + id="path2023" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.62195635px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 268.86242,534.23034 L 287.38911,534.23034 L 287.38911,559.18996 L 306.43769,558.43362" + id="path1950" /> + <rect + style="opacity:0.32777776;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:2.77004623;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:8.31013853, 2.77004615;stroke-dashoffset:0;stroke-opacity:1" + id="rect2844" + width="224.70586" + height="330.58685" + x="499.94656" + y="197.59196" + rx="4.7845879" + ry="6.9237576" /> + <flowRoot + xml:space="preserve" + id="flowRoot2860" + transform="translate(427.42518,-27.507668)"><flowRegion + id="flowRegion2862"><rect + id="rect2864" + width="75" + height="32.857143" + x="173.57143" + y="231.95163" /></flowRegion><flowPara + id="flowPara2866">nodeB</flowPara></flowRoot> <rect + style="opacity:0.32777776;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:2.49609971;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:7.48829817, 2.49609941;stroke-dashoffset:0;stroke-opacity:1" + id="rect2255" + width="377.74945" + height="525.80743" + x="77.778885" + y="197.79099" + rx="8.0432968" + ry="11.012426" /> + <rect + style="opacity:0.32777776;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:3.36078119;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:10.08234317, 3.36078104;stroke-dashoffset:0;stroke-opacity:1" + id="rect2257" + width="214.99368" + height="508.60495" + x="764.2998" + y="202.49374" + rx="4.5777907" + ry="10.65214" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 270.72088,467.32789 C 483.86307,467.32789 483.86307,467.32789 483.86307,467.32789 L 482.85292,426.92179 L 553.5636,426.92179" + id="path2261" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 269.71073,503.69338 L 482.85292,502.68323 L 482.85292,598.64772 L 800.04082,598.64772" + id="path2265" /> + <flowRoot + xml:space="preserve" + id="flowRoot2852" + transform="translate(68.60915,-29.279218)"><flowRegion + id="flowRegion2854"><rect + id="rect2856" + width="75" + height="32.857143" + x="173.57143" + y="231.95163" /></flowRegion><flowPara + id="flowPara2858">nodeA</flowPara></flowRoot> <flowRoot + xml:space="preserve" + id="flowRoot2868" + transform="translate(676.96322,-25.584556)"><flowRegion + id="flowRegion2870"><rect + id="rect2872" + width="75" + height="32.857143" + x="173.57143" + y="231.95163" /></flowRegion><flowPara + id="flowPara2874">nodeC</flowPara></flowRoot> <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:1.9887569;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect3267" + width="109.6128" + height="73.190361" + x="201.12881" + y="222.90018" + rx="6.6302338" + ry="6.0717297" /> + <flowRoot + xml:space="preserve" + id="flowRoot3269" + transform="translate(-56.140205,16.325027)"><flowRegion + id="flowRegion3271"><rect + id="rect3273" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara3275">DomainNode</flowPara><flowPara + id="flowPara3528">Manager</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 181.71847,249.50795 L 215.05357,249.50795 L 221.11447,262.63993 L 214.04337,274.76177 L 181.71847,274.76177 L 189.29467,262.63993 L 181.71847,249.50795 z " + id="path3277" /> + <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.87813973px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 289.4192,247.81765 L 320.10352,247.81765 L 325.68249,261.013 L 319.1737,273.19333 L 289.4192,273.19333 L 296.39289,261.013 L 289.4192,247.81765 z " + id="path3313" /> + <rect + style="opacity:0.32777776;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:2.61889124;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:7.85667327, 2.61889106;stroke-dashoffset:0;stroke-opacity:1" + id="rect3337" + width="907.72009" + height="73.149063" + x="75.964958" + y="80.720291" + rx="19.327787" + ry="1.5320222" /> + <flowRoot + xml:space="preserve" + id="flowRoot3464" + transform="translate(-87.282412,-146.20384)"><flowRegion + id="flowRegion3466"><rect + id="rect3468" + width="125.50763" + height="30.836838" + x="173.57143" + y="231.95163" /></flowRegion><flowPara + id="flowPara3470">DistrubtedDomain</flowPara></flowRoot> <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.97449231px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 161.61165,169.56379 L 162.62279,262.52334 L 187.90114,262.52334" + id="path3472" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.97952515px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 325.25889,261.51066 L 346.49256,261.51066 L 346.49256,168.55616" + id="path3510" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow1Lend)" + d="M 225.26402,295.58675 C 225.26402,361.24667 225.26402,362.25682 225.26402,362.25682" + id="path3546" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:none;marker-start:url(#Arrow1Lstart)" + d="M 274.76149,296.5969 C 274.76149,362.25682 274.76149,363.26697 274.76149,363.26697" + id="path3550" /> + <flowRoot + xml:space="preserve" + id="flowRoot3552" + transform="translate(110.70749,90.17186)"><flowRegion + id="flowRegion3554"><rect + id="rect3556" + width="75" + height="32.857143" + x="173.57143" + y="231.95163" /></flowRegion><flowPara + id="flowPara3558">events</flowPara></flowRoot> <flowRoot + xml:space="preserve" + id="flowRoot3560" + transform="translate(-27.589665,86.03457)"><flowRegion + id="flowRegion3562"><rect + id="rect3564" + width="75" + height="32.857143" + x="173.57143" + y="231.95163" /></flowRegion><flowPara + id="flowPara3566">configuration</flowPara><flowPara + id="flowPara3568">changes</flowPara></flowRoot> <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:1.9887569;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect4747" + width="109.6128" + height="73.190361" + x="562.52869" + y="222.77074" + rx="6.6302338" + ry="6.0717297" /> + <flowRoot + xml:space="preserve" + id="flowRoot4749" + transform="translate(305.25967,16.195596)"><flowRegion + id="flowRegion4751"><rect + id="rect4753" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara4755">DomainNode</flowPara><flowPara + id="flowPara4757">Manager</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 543.11835,249.37852 L 576.45345,249.37852 L 582.51435,262.5105 L 575.44325,274.63234 L 543.11835,274.63234 L 550.69455,262.5105 L 543.11835,249.37852 z " + id="path4759" /> + <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.87813973px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 650.81908,247.68822 L 681.5034,247.68822 L 687.08237,260.88357 L 680.57358,273.0639 L 650.81908,273.0639 L 657.79277,260.88357 L 650.81908,247.68822 z " + id="path4761" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.96930611px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 523.00894,169.43177 L 524.02028,261.38635 L 549.30361,261.38635" + id="path4763" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.96911496px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 686.65356,261.38644 L 707.89764,261.38644 L 707.89764,170.44182" + id="path4765" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;marker-end:url(#Arrow1Lend);stroke-opacity:1" + d="M 586.6639,295.45732 C 586.6639,361.11724 586.6639,362.12739 586.6639,362.12739" + id="path4767" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;marker-start:url(#Arrow1Lstart);marker-end:none;stroke-opacity:1" + d="M 636.16137,296.46747 C 636.16137,362.12739 636.16137,363.13754 636.16137,363.13754" + id="path4769" /> + <flowRoot + xml:space="preserve" + id="flowRoot4771" + transform="translate(472.10736,90.042429)"><flowRegion + id="flowRegion4773"><rect + id="rect4775" + width="75" + height="32.857143" + x="173.57143" + y="231.95163" /></flowRegion><flowPara + id="flowPara4777">events</flowPara></flowRoot> <flowRoot + xml:space="preserve" + id="flowRoot4779" + transform="translate(333.81021,85.905139)"><flowRegion + id="flowRegion4781"><rect + id="rect4783" + width="75" + height="32.857143" + x="173.57143" + y="231.95163" /></flowRegion><flowPara + id="flowPara4785">configuration</flowPara><flowPara + id="flowPara4787">changes</flowPara></flowRoot> <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:1.9887569;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect4797" + width="109.6128" + height="73.190361" + x="814.05664" + y="220.75044" + rx="6.6302338" + ry="6.0717297" /> + <flowRoot + xml:space="preserve" + id="flowRoot4799" + transform="translate(556.78766,14.175292)"><flowRegion + id="flowRegion4801"><rect + id="rect4803" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara4805">DomainNode</flowPara><flowPara + id="flowPara4807">Manager</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 794.64633,247.35821 L 827.98143,247.35821 L 834.04233,260.49019 L 826.97123,272.61203 L 794.64633,272.61203 L 802.22253,260.49019 L 794.64633,247.35821 z " + id="path4809" /> + <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.87813973px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 902.34706,245.66791 L 933.03138,245.66791 L 938.61035,258.86326 L 932.10156,271.04359 L 902.34706,271.04359 L 909.32075,258.86326 L 902.34706,245.66791 z " + id="path4811" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.95884526px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 774.53169,170.43668 L 775.54342,260.38142 L 800.83682,260.38142" + id="path4813" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.95858449px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 938.17628,259.37139 L 959.43089,259.37139 L 959.43089,170.43655" + id="path4815" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;marker-end:url(#Arrow1Lend);stroke-opacity:1" + d="M 838.19188,293.43701 C 838.19188,359.09693 838.19188,360.10708 838.19188,360.10708" + id="path4817" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;marker-start:url(#Arrow1Lstart);marker-end:none;stroke-opacity:1" + d="M 887.68935,294.44716 C 887.68935,360.10708 887.68935,361.11723 887.68935,361.11723" + id="path4819" /> + <flowRoot + xml:space="preserve" + id="flowRoot4821" + transform="translate(723.63535,88.022124)"><flowRegion + id="flowRegion4823"><rect + id="rect4825" + width="75" + height="32.857143" + x="173.57143" + y="231.95163" /></flowRegion><flowPara + id="flowPara4827">events</flowPara></flowRoot> <flowRoot + xml:space="preserve" + id="flowRoot4829" + transform="translate(585.3382,83.884835)" + inkscape:export-xdpi="104.05" + inkscape:export-ydpi="104.05"><flowRegion + id="flowRegion4831"><rect + id="rect4833" + width="75" + height="32.857143" + x="173.57143" + y="231.95163" /></flowRegion><flowPara + id="flowPara4835">configuration</flowPara><flowPara + id="flowPara4837">changes</flowPara></flowRoot> <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:1.82906461;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2325" + width="144.11769" + height="47.08609" + x="412.81436" + y="92.236557" + rx="8.7173567" + ry="3.9061701" /> + <flowRoot + xml:space="preserve" + id="flowRoot2327" + transform="translate(256.16945,-128.02109)"><flowRegion + id="flowRegion2329"><rect + id="rect2331" + width="124.49747" + height="31.846991" + x="173.57143" + y="231.95163" /></flowRegion><flowPara + id="flowPara2333">DistributedDomain</flowPara><flowPara + id="flowPara2335">Manager</flowPara></flowRoot> <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 41.497475,170.32783 L 1009.2236,170.32783" + id="path2339" /> + <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 388.40363,102.14253 L 421.73873,102.14253 L 427.79963,115.27451 L 420.72853,127.39635 L 388.40363,127.39635 L 395.97983,115.27451 L 388.40363,102.14253 z " + id="path2341" /> + <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.87813973px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 539.47257,102.0816 L 570.15689,102.0816 L 575.73586,115.27695 L 569.22707,127.45728 L 539.47257,127.45728 L 546.44626,115.27695 L 539.47257,102.0816 z " + id="path2343" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 575.78695,114.76944 L 632.3555,114.76944 L 632.3555,169.31768" + id="path2347" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 394.96965,115.7796 L 328.29958,115.7796 L 328.29958,169.31768" + id="path2349" /> + <flowRoot + xml:space="preserve" + id="flowRoot2361" + transform="translate(192.64053,204.79134)"><flowRegion + id="flowRegion2363"><rect + id="rect2365" + width="121.46702" + height="41.948517" + x="173.57143" + y="231.95163" /></flowRegion><flowPara + id="flowPara2367">Distributed</flowPara><flowPara + id="flowPara2369">SCA Binding</flowPara></flowRoot> <flowRoot + xml:space="preserve" + id="flowRoot2346" + transform="translate(49.077038,380.55787)"><flowRegion + id="flowRegion2348"><rect + id="rect2350" + width="75" + height="32.857143" + x="173.57143" + y="231.95163" /></flowRegion><flowPara + id="flowPara2352">LocalSCA</flowPara><flowPara + id="flowPara2354">Binding</flowPara></flowRoot> <flowRoot + xml:space="preserve" + id="flowRoot2356" + transform="translate(99.303394,275.52231)"><flowRegion + id="flowRegion2358"><rect + id="rect2360" + width="75" + height="32.857143" + x="173.57143" + y="231.95163" /></flowRegion><flowPara + id="flowPara2362">LocalSCA</flowPara><flowPara + id="flowPara2364">Binding</flowPara></flowRoot> <flowRoot + xml:space="preserve" + id="flowRoot2372" + transform="translate(374.36545,368.3628)"><flowRegion + id="flowRegion2374"><rect + id="rect2376" + width="121.46702" + height="41.948517" + x="173.57143" + y="231.95163" /></flowRegion><flowPara + id="flowPara2378">Distributed</flowPara><flowPara + id="flowPara2380">SCA Binding</flowPara></flowRoot> </g> +</svg> diff --git a/sandbox/slaws/distributed-runtime/distribution1.svg b/sandbox/slaws/distributed-runtime/distribution1.svg new file mode 100644 index 0000000000..9fef91247c --- /dev/null +++ b/sandbox/slaws/distributed-runtime/distribution1.svg @@ -0,0 +1,276 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://web.resource.org/cc/" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="1052.3622" + height="744.09448" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.44" + sodipodi:docbase="C:\simon\Projects\Tuscany\java\notes\distribution" + sodipodi:docname="distribution1.svg" + version="1.0" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"> + <defs + id="defs4" /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + gridtolerance="10000" + guidetolerance="10" + objecttolerance="10" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="0.7" + inkscape:cx="502.39151" + inkscape:cy="379.12175" + inkscape:document-units="px" + inkscape:current-layer="layer1" + inkscape:window-width="1054" + inkscape:window-height="721" + inkscape:window-x="82" + inkscape:window-y="40" /> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1"> + <g + id="g2997" + transform="matrix(1,0,0,0.699118,18.18275,-57.71181)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"> + <rect + rx="15.307091" + ry="12.692303" + y="192.00233" + x="258.31146" + height="299.99988" + width="495.71429" + id="rect2067" + style="opacity:1;fill:#90baf4;fill-opacity:1;stroke:#060000;stroke-width:2.39196491;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + id="flowRoot2954" + xml:space="preserve"><flowRegion + id="flowRegion2956"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2958" /></flowRegion><flowPara + id="flowPara2960">Composite A</flowPara></flowRoot> </g> + <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2988" + width="115.66247" + height="85.862968" + x="352.03815" + y="159.21616" + rx="6.9961648" + ry="7.1230249" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <flowRoot + xml:space="preserve" + id="flowRoot2966" + transform="translate(84.44737,-46.72238)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"><flowRegion + id="flowRegion2968"><rect + id="rect2970" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2972">ComponentA</flowPara><flowPara + id="flowPara2911">(CA)</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 334.88764,191.06315 L 368.22268,191.06315 L 374.28359,204.19513 L 367.21253,216.31697 L 334.88764,216.31697 L 342.46379,204.19513 L 334.88764,191.06315 z " + id="path3017" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 448.14008,189.22487 L 481.47512,189.22487 L 487.53603,202.35685 L 480.46497,214.47869 L 448.14008,214.47869 L 455.71623,202.35685 L 448.14008,189.22487 z " + id="path3019" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect1948" + width="115.66247" + height="85.862968" + x="593.38483" + y="157.70093" + rx="6.9961648" + ry="7.1230249" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <flowRoot + xml:space="preserve" + id="flowRoot1950" + transform="translate(325.7941,-48.2376)" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png"><flowRegion + id="flowRegion1952"><rect + id="rect1954" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara1956">ComponentB</flowPara><flowPara + id="flowPara2913">(CB)</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 576.23434,189.54793 L 609.56938,189.54793 L 615.63029,202.67991 L 608.55923,214.80175 L 576.23434,214.80175 L 583.81049,202.67991 L 576.23434,189.54793 z " + id="path1958" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 689.48678,187.70965 L 722.82182,187.70965 L 728.88273,200.84163 L 721.81167,212.96347 L 689.48678,212.96347 L 697.06293,200.84163 L 689.48678,187.70965 z " + id="path1960" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 484.87322,200.63241 L 581.84787,200.63241" + id="path1962" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="opacity:1;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect1964" + width="124.28571" + height="112.85714" + x="347.14285" + y="365.52307" + rx="6.9961648" + ry="7.1230249" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="opacity:1;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2853" + width="124.28571" + height="112.85714" + x="595" + y="364.80878" + rx="6.9961648" + ry="7.1230249" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <flowRoot + xml:space="preserve" + id="flowRoot2855" + transform="translate(83.12343,169.4412)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"><flowRegion + id="flowRegion2857"><rect + id="rect2859" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2863">Node1 </flowPara><flowPara + id="flowPara2907">(N1)</flowPara></flowRoot> <flowRoot + xml:space="preserve" + id="flowRoot2867" + transform="translate(330.9176,170.7098)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"><flowRegion + id="flowRegion2869"><rect + id="rect2871" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2873">Node2 </flowPara><flowPara + id="flowPara2909">(N2)</flowPara></flowRoot> <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 124.28571,309.80877 C 957.14286,305.52305 960,305.52305 960,305.52305" + id="path2879" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 119.28571,556.23734 C 952.14287,551.95162 955.00001,551.95162 955.00001,551.95162" + id="path2881" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <flowRoot + xml:space="preserve" + id="flowRoot2883" + transform="translate(-197.6539,-39.29026)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"><flowRegion + id="flowRegion2885"><rect + id="rect2887" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2889">SCA Model</flowPara></flowRoot> <flowRoot + xml:space="preserve" + id="flowRoot2891" + transform="translate(-194.7967,200.7098)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"><flowRegion + id="flowRegion2893"><rect + id="rect2895" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2897">Runtime Nodes</flowPara></flowRoot> <flowRoot + xml:space="preserve" + id="flowRoot2899" + transform="translate(-187.6539,419.2812)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"><flowRegion + id="flowRegion2901"><rect + id="rect2903" + width="352.85715" + height="67.142853" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2905">Physical - I think we can ignore for the time being</flowPara></flowRoot> </g> +</svg> diff --git a/sandbox/slaws/distributed-runtime/distribution2.svg b/sandbox/slaws/distributed-runtime/distribution2.svg new file mode 100644 index 0000000000..e341fa62f6 --- /dev/null +++ b/sandbox/slaws/distributed-runtime/distribution2.svg @@ -0,0 +1,367 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://web.resource.org/cc/" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="1052.3622" + height="744.09448" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.44" + sodipodi:docbase="C:\simon\Projects\Tuscany\java\notes\distribution" + sodipodi:docname="distribution2.svg" + version="1.0" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"> + <defs + id="defs4" /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + gridtolerance="10000" + guidetolerance="10" + objecttolerance="10" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="0.7" + inkscape:cx="502.39151" + inkscape:cy="424.28967" + inkscape:document-units="px" + inkscape:current-layer="layer1" + inkscape:window-width="1054" + inkscape:window-height="721" + inkscape:window-x="82" + inkscape:window-y="40" /> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1"> + <g + id="g2997" + transform="matrix(1,0,0,0.97276,11.03989,-50.50246)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" + style="stroke:black;stroke-width:0.99971008;stroke-miterlimit:4;stroke-dasharray:5.99826037, 0.99971006;stroke-dashoffset:0;stroke-opacity:1"> + <rect + rx="15.307091" + ry="7.850184" + y="296.80783" + x="258.31146" + height="185.5498" + width="495.71429" + id="rect2067" + style="opacity:1;fill:#90baf4;fill-opacity:1;stroke:black;stroke-width:0.99971008;stroke-miterlimit:4;stroke-dasharray:5.99826037, 0.99971006;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + id="flowRoot2954" + xml:space="preserve" + transform="translate(0,107.206)" + style="stroke:black;stroke-width:0.99971008;stroke-miterlimit:4;stroke-dasharray:5.99826037, 0.99971006;stroke-dashoffset:0;stroke-opacity:1"><flowRegion + id="flowRegion2956"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2958" + style="stroke:black;stroke-width:0.99971008;stroke-miterlimit:4;stroke-dasharray:5.99826037, 0.99971006;stroke-dashoffset:0;stroke-opacity:1" /></flowRegion><flowPara + id="flowPara2960">Composite A</flowPara></flowRoot> </g> + <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2988" + width="115.66247" + height="85.862968" + x="344.89529" + y="292.0733" + rx="6.9961648" + ry="7.1230249" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <flowRoot + xml:space="preserve" + id="flowRoot2966" + transform="translate(77.30451,86.13476)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"><flowRegion + id="flowRegion2968"><rect + id="rect2970" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2972">ComponentA</flowPara><flowPara + id="flowPara2911">(CA)</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 327.74478,323.92029 L 361.07982,323.92029 L 367.14073,337.05227 L 360.06967,349.17411 L 327.74478,349.17411 L 335.32093,337.05227 L 327.74478,323.92029 z " + id="path3017" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 440.99722,322.08201 L 474.33226,322.08201 L 480.39317,335.21399 L 473.32211,347.33583 L 440.99722,347.33583 L 448.57337,335.21399 L 440.99722,322.08201 z " + id="path3019" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect1948" + width="115.66247" + height="85.862968" + x="586.24194" + y="290.55807" + rx="6.9961648" + ry="7.1230249" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <flowRoot + xml:space="preserve" + id="flowRoot1950" + transform="translate(318.6512,84.61954)" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png"><flowRegion + id="flowRegion1952"><rect + id="rect1954" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara1956">ComponentB</flowPara><flowPara + id="flowPara2913">(CB)</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 569.09148,322.40507 L 602.42652,322.40507 L 608.48743,335.53705 L 601.41637,347.65889 L 569.09148,347.65889 L 576.66763,335.53705 L 569.09148,322.40507 z " + id="path1958" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 682.34392,320.56679 L 715.67896,320.56679 L 721.73987,333.69877 L 714.66881,345.82061 L 682.34392,345.82061 L 689.92007,333.69877 L 682.34392,320.56679 z " + id="path1960" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 477.73036,333.48955 L 574.70501,333.48955" + id="path1962" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="opacity:0.36111109;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:1.0000006;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2853" + width="251.42867" + height="237.14296" + x="550.71442" + y="199.09457" + rx="14.153168" + ry="14.967377" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <flowRoot + xml:space="preserve" + id="flowRoot2855" + transform="translate(-28.30514,-9.130257)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"><flowRegion + id="flowRegion2857"><rect + id="rect2859" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2863">Node1 </flowPara><flowPara + id="flowPara2907">(N1)</flowPara></flowRoot> <flowRoot + xml:space="preserve" + id="flowRoot2867" + transform="translate(282.3461,-7.861657)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"><flowRegion + id="flowRegion2869"><rect + id="rect2871" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2873">Node2 </flowPara><flowPara + id="flowPara2909">(N2)</flowPara></flowRoot> <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 748.87345,321.46757 L 782.2085,321.46757 L 788.26941,334.59955 L 781.19835,346.72139 L 748.87345,346.72139 L 756.44961,334.59955 L 748.87345,321.46757 z " + id="path2805" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 248.87345,322.89614 L 282.20849,322.89614 L 288.2694,336.02812 L 281.19834,348.14996 L 248.87345,348.14996 L 256.4496,336.02812 L 248.87345,322.89614 z " + id="path2807" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 285.71428,336.95162 C 332.85714,336.95162 332.85714,336.95162 332.85714,336.95162" + id="path2809" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 720,332.66591 C 754.28571,332.66591 754.28571,332.66591 754.28571,332.66591" + id="path2811" /> + <rect + style="opacity:0.36111109;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:1.00000048;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2813" + width="251.42867" + height="242.85715" + x="241.42854" + y="192.66588" + rx="14.153168" + ry="15.328031" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="opacity:0.36111109;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:1.00000095;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2815" + width="62.857338" + height="60.000072" + x="557.14307" + y="484.80869" + rx="3.5383015" + ry="3.7869294" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="opacity:0.36111109;fill:none;fill-opacity:1;stroke:black;stroke-width:0.98600018;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2817" + width="655.71429" + height="408.57153" + x="194.28572" + y="166.95163" + rx="14.153168" + ry="11.211811" /> + <rect + style="opacity:0.36111109;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:1.00000095;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2825" + width="62.857338" + height="60.000072" + x="639.99988" + y="485.52304" + rx="3.5383015" + ry="3.7869294" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="opacity:0.36111109;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:1.00000095;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2827" + width="62.857338" + height="60.000072" + x="725.71417" + y="485.52301" + rx="3.5383015" + ry="3.7869294" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="opacity:0.36111109;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:1.00000095;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2829" + width="62.857338" + height="60.000072" + x="252.85724" + y="483.73727" + rx="3.5383015" + ry="3.7869294" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="opacity:0.36111109;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:1.00000095;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2831" + width="62.857338" + height="60.000072" + x="335.71405" + y="484.45163" + rx="3.5383015" + ry="3.7869294" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="opacity:0.36111109;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:1.00000095;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2833" + width="62.857338" + height="60.000072" + x="421.42834" + y="484.4516" + rx="3.5383015" + ry="3.7869294" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <flowRoot + xml:space="preserve" + id="flowRoot2835" + transform="translate(-75.71536,-37.49626)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"><flowRegion + id="flowRegion2837"><rect + id="rect2839" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2843">Domain</flowPara></flowRoot> <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1.00000024px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 451.42875,485.5231 C 368.57157,432.66595 368.57157,432.66595 368.57157,432.66595" + id="path2849" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 368.57143,485.52305 L 368.57143,434.09448" + id="path2851" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 284.28571,482.66591 L 367.14285,435.52305" + id="path2853" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1.00000024px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 749.2858,486.23734 C 666.42862,433.38019 666.42862,433.38019 666.42862,433.38019" + id="path2855" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 666.42848,486.23729 L 666.42848,434.80872" + id="path2857" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 582.14276,483.38015 L 664.9999,436.23729" + id="path2859" /> + </g> +</svg> diff --git a/sandbox/slaws/distributed-runtime/distribution3.svg b/sandbox/slaws/distributed-runtime/distribution3.svg new file mode 100644 index 0000000000..48e071f7b2 --- /dev/null +++ b/sandbox/slaws/distributed-runtime/distribution3.svg @@ -0,0 +1,736 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://web.resource.org/cc/" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="1052.3622" + height="744.09448" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.44" + sodipodi:docbase="C:\simon\Projects\Tuscany\java\sandbox\slaws\distributed-runtime" + sodipodi:docname="distribution3.svg" + version="1.0" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution3.png" + inkscape:export-xdpi="102.65" + inkscape:export-ydpi="102.65"> + <defs + id="defs4" /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + gridtolerance="10000" + guidetolerance="10" + objecttolerance="10" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="0.98994949" + inkscape:cx="622.42505" + inkscape:cy="572.97216" + inkscape:document-units="px" + inkscape:current-layer="layer1" + inkscape:window-width="1106" + inkscape:window-height="790" + inkscape:window-x="42" + inkscape:window-y="21" /> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1"> + <g + id="g2997" + transform="matrix(1,0,0,0.97276,11.03989,-50.50246)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" + style="stroke:black;stroke-width:0.99971008;stroke-miterlimit:4;stroke-dasharray:5.99826037, 0.99971006;stroke-dashoffset:0;stroke-opacity:1"> + <rect + rx="15.307091" + ry="7.850184" + y="296.80783" + x="258.31146" + height="185.5498" + width="495.71429" + id="rect2067" + style="opacity:1;fill:#90baf4;fill-opacity:1;stroke:black;stroke-width:0.99971008;stroke-miterlimit:4;stroke-dasharray:5.99826037, 0.99971006;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + id="flowRoot2954" + xml:space="preserve" + transform="translate(0,107.206)" + style="stroke:black;stroke-width:0.99971008;stroke-miterlimit:4;stroke-dasharray:5.99826037, 0.99971006;stroke-dashoffset:0;stroke-opacity:1"><flowRegion + id="flowRegion2956"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2958" + style="stroke:black;stroke-width:0.99971008;stroke-miterlimit:4;stroke-dasharray:5.99826037, 0.99971006;stroke-dashoffset:0;stroke-opacity:1" /></flowRegion><flowPara + id="flowPara2960">Composite A</flowPara></flowRoot> </g> + <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2988" + width="115.66247" + height="85.862968" + x="344.89529" + y="292.0733" + rx="6.9961648" + ry="7.1230249" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <flowRoot + xml:space="preserve" + id="flowRoot2966" + transform="translate(77.30451,86.13476)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"><flowRegion + id="flowRegion2968"><rect + id="rect2970" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2972">ComponentA</flowPara><flowPara + id="flowPara2911">(CA)</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 327.74478,323.92029 L 361.07982,323.92029 L 367.14073,337.05227 L 360.06967,349.17411 L 327.74478,349.17411 L 335.32093,337.05227 L 327.74478,323.92029 z " + id="path3017" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 440.99722,322.08201 L 474.33226,322.08201 L 480.39317,335.21399 L 473.32211,347.33583 L 440.99722,347.33583 L 448.57337,335.21399 L 440.99722,322.08201 z " + id="path3019" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect1948" + width="115.66247" + height="85.862968" + x="586.24194" + y="290.55807" + rx="6.9961648" + ry="7.1230249" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <flowRoot + xml:space="preserve" + id="flowRoot1950" + transform="translate(318.6512,84.61954)" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png"><flowRegion + id="flowRegion1952"><rect + id="rect1954" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara1956">ComponentB</flowPara><flowPara + id="flowPara2913">(CB)</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 569.09148,322.40507 L 602.42652,322.40507 L 608.48743,335.53705 L 601.41637,347.65889 L 569.09148,347.65889 L 576.66763,335.53705 L 569.09148,322.40507 z " + id="path1958" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 682.34392,320.56679 L 715.67896,320.56679 L 721.73987,333.69877 L 714.66881,345.82061 L 682.34392,345.82061 L 689.92007,333.69877 L 682.34392,320.56679 z " + id="path1960" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 477.73036,333.48955 L 574.70501,333.48955" + id="path1962" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 748.87345,321.46757 L 782.2085,321.46757 L 788.26941,334.59955 L 781.19835,346.72139 L 748.87345,346.72139 L 756.44961,334.59955 L 748.87345,321.46757 z " + id="path2805" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 248.87345,322.89614 L 282.20849,322.89614 L 288.2694,336.02812 L 281.19834,348.14996 L 248.87345,348.14996 L 256.4496,336.02812 L 248.87345,322.89614 z " + id="path2807" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 285.71428,336.95162 C 332.85714,336.95162 332.85714,336.95162 332.85714,336.95162" + id="path2809" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 720,332.66591 C 754.28571,332.66591 754.28571,332.66591 754.28571,332.66591" + id="path2811" /> + <rect + style="opacity:0.36666667;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:1.00000095;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2815" + width="62.857338" + height="60.000072" + x="573.14307" + y="589.4679" + rx="3.5383015" + ry="3.7869294" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="opacity:0.36111109;fill:none;fill-opacity:1;stroke:black;stroke-width:0.9859997;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2817" + width="632.85742" + height="475.33035" + x="192.85722" + y="202.66568" + rx="13.659817" + ry="13.043773" /> + <rect + style="opacity:0.36666667;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:1.00000095;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2825" + width="62.857338" + height="60.000072" + x="648.85699" + y="590.18225" + rx="3.5383015" + ry="3.7869294" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="opacity:0.36666667;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:1.00000095;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2827" + width="62.857338" + height="60.000072" + x="721.71417" + y="590.18225" + rx="3.5383015" + ry="3.7869294" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="opacity:0.36666667;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:1.00000095;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2829" + width="62.857338" + height="60.000072" + x="253.54108" + y="589.17236" + rx="3.5383015" + ry="3.7869294" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="opacity:0.36666667;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:1.00000095;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2831" + width="62.857338" + height="60.000072" + x="327.82645" + y="588.45813" + rx="3.5383015" + ry="3.7869294" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="opacity:0.36666667;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:1.00000095;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2833" + width="62.857338" + height="60.000072" + x="402.11218" + y="588.45813" + rx="3.5383015" + ry="3.7869294" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <flowRoot + xml:space="preserve" + id="flowRoot2835" + transform="translate(-78.5725,-3.210543)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"><flowRegion + id="flowRegion2837"><rect + id="rect2839" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2843">Domain</flowPara></flowRoot> <flowRoot + xml:space="preserve" + id="flowRoot2826" + transform="matrix(1.180636,0,0,1.649294,-180.3899,-2.816854)"><flowRegion + id="flowRegion2828"><rect + id="rect2830" + width="130.43715" + height="52.992573" + x="871.42859" + y="208.3802" /></flowRegion><flowPara + id="flowPara2832">2. Components</flowPara><flowPara + id="flowPara2824">associated with</flowPara><flowPara + id="flowPara2828">runtimes</flowPara></flowRoot> <flowRoot + xml:space="preserve" + id="flowRoot2834" + transform="matrix(1.180636,0,0,1.649294,-182.415,181.8249)"><flowRegion + id="flowRegion2836"><rect + id="rect2838" + width="130.43715" + height="52.992573" + x="871.42859" + y="208.3802" /></flowRegion><flowPara + id="flowPara2840">3. Instance creation and execution</flowPara></flowRoot> <rect + style="opacity:0.28333333;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:1.0000006;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2842" + width="210.00009" + height="462.85721" + x="254.94893" + y="48.379944" + rx="11.821112" + ry="29.213425" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 282.1124,588.10103 C 282.1124,588.10103 282.1124,588.10103 359.25526,512.38674 C 360.68383,586.67246 360.68383,586.67246 360.68383,586.67246" + id="path2852" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 359.25526,513.81531 C 429.25526,588.10103 429.25526,588.10103 429.25526,588.10103" + id="path2854" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 605.71428,590.18225 C 605.71428,590.18225 605.71428,590.18225 678.57142,511.61082 C 680,590.18225 680,590.18225 680,590.18225" + id="path2856" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 678.57142,511.61082 C 748.57142,590.18225 748.57142,590.18225 748.57142,590.18225" + id="path2858" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1.00000024;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:6.00000152, 1.00000026;stroke-dashoffset:0;stroke-opacity:1" + d="M 984.2862,175.52306 C 175.71437,174.09449 175.71437,174.09449 175.71437,174.09449" + id="path2862" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1.00000024;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:6.00000117, 1.00000019;stroke-dashoffset:0;stroke-opacity:1" + d="M 982.16422,430.94869 C 166.44966,429.52012 166.44966,429.52012 166.44966,429.52012" + id="path2864" /> + <rect + style="opacity:0.28333333;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:1.00000072;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2812" + width="195.71443" + height="462.85721" + x="577.85693" + y="46.951591" + rx="11.016959" + ry="29.213425" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <flowRoot + xml:space="preserve" + id="flowRoot2814" + transform="matrix(1.180636,0,0,1.649294,-176.7007,-248.4746)"><flowRegion + id="flowRegion2816"><rect + id="rect2818" + width="137.69716" + height="52.992573" + x="871.42859" + y="208.3802" /></flowRegion><flowPara + id="flowPara2820">1. Runtimes started</flowPara><flowPara + id="flowPara2830">on physical processors</flowPara></flowRoot> <g + id="g2847" + transform="translate(617.6331,-72.19362)"> + <a + style="fill:black;fill-opacity:1;stroke:black;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + id="a2836"> + <rect + style="opacity:0.28333333;fill:black;fill-opacity:1;stroke:black;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2834" + width="48.57143" + height="48.57143" + x="38.57143" + y="156.95163" + rx="13.659817" + ry="9.8005285" /> + </a> + <path + id="path2843" + d="M 32.857143,213.3802 L 23.571429,223.3802 L 101.42857,222.66591 L 92.142857,211.23734 L 92.142857,151.95162 L 33.571429,151.95162 L 32.857143,213.3802 z " + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + id="path2845" + d="M 32.857143,211.95162 L 92.142857,211.23734" + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + </g> + <g + id="g2853" + transform="translate(293.2143,-68.57143)"> + <a + style="fill:black;fill-opacity:1;stroke:black;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + id="a2855"> + <rect + style="opacity:0.28333333;fill:black;fill-opacity:1;stroke:black;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2857" + width="48.57143" + height="48.57143" + x="38.57143" + y="156.95163" + rx="13.659817" + ry="9.8005285" /> + </a> + <path + id="path2859" + d="M 32.857143,213.3802 L 23.571429,223.3802 L 101.42857,222.66591 L 92.142857,211.23734 L 92.142857,151.95162 L 33.571429,151.95162 L 32.857143,213.3802 z " + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + id="path2861" + d="M 32.857143,211.95162 L 92.142857,211.23734" + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + </g> + <flowRoot + xml:space="preserve" + id="flowRoot2863" + transform="translate(-6.800862,-153.4086)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"><flowRegion + id="flowRegion2865"><rect + id="rect2867" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2869">RuntimeNode</flowPara></flowRoot> <flowRoot + xml:space="preserve" + id="flowRoot2871" + transform="translate(305.0978,-156.4391)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"><flowRegion + id="flowRegion2873"><rect + id="rect2875" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2877">RuntimeNode</flowPara></flowRoot> <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2883" + width="32.829983" + height="35.355366" + x="335.19931" + y="448.70605" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2885" + width="32.829983" + height="35.355366" + x="331.1384" + y="443.63501" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2887" + width="32.829983" + height="35.355366" + x="327.09778" + y="439.59439" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2889" + width="32.829983" + height="35.355366" + x="269.46832" + y="601.6731" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2891" + width="32.829983" + height="35.355366" + x="265.40741" + y="596.60205" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2893" + width="32.829983" + height="35.355366" + x="261.36679" + y="592.56146" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2895" + width="32.829983" + height="35.355366" + x="341.18918" + y="602.68329" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2897" + width="32.829983" + height="35.355366" + x="337.12827" + y="597.61224" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2899" + width="32.829983" + height="35.355366" + x="333.08765" + y="593.57159" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2901" + width="32.829983" + height="35.355366" + x="418.97092" + y="602.68323" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2903" + width="32.829983" + height="35.355366" + x="414.91" + y="597.61218" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2905" + width="32.829983" + height="35.355366" + x="410.86938" + y="593.57159" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2907" + width="32.829983" + height="35.355366" + x="666.45831" + y="449.14005" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2909" + width="32.829983" + height="35.355366" + x="662.3974" + y="444.069" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2911" + width="32.829983" + height="35.355366" + x="658.35675" + y="440.02838" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2913" + width="32.829983" + height="35.355366" + x="591.70697" + y="605.71375" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2915" + width="32.829983" + height="35.355366" + x="587.64606" + y="600.6427" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2917" + width="32.829983" + height="35.355366" + x="583.60547" + y="596.60205" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2919" + width="32.829983" + height="35.355366" + x="671.50903" + y="604.70355" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2921" + width="32.829983" + height="35.355366" + x="667.44812" + y="599.63251" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2923" + width="32.829983" + height="35.355366" + x="663.40753" + y="595.59192" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2925" + width="32.829983" + height="35.355366" + x="741.20959" + y="603.69342" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2927" + width="32.829983" + height="35.355366" + x="737.14868" + y="598.62238" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#fffcff;fill-opacity:1;stroke:#261c1c;stroke-width:2.00000143;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2929" + width="32.829983" + height="35.355366" + x="733.10803" + y="594.58179" + rx="1.9858124" + ry="2.9330122" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + </g> +</svg> diff --git a/sandbox/slaws/distributed-runtime/distribution4.svg b/sandbox/slaws/distributed-runtime/distribution4.svg new file mode 100644 index 0000000000..f453bfea67 --- /dev/null +++ b/sandbox/slaws/distributed-runtime/distribution4.svg @@ -0,0 +1,374 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://web.resource.org/cc/" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="1052.3622" + height="744.09448" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.44" + sodipodi:docbase="C:\simon\Projects\Tuscany\java\sandbox\slaws\distributed-runtime" + sodipodi:docname="distribution4.svg" + version="1.0" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution4.png" + inkscape:export-xdpi="105.68515" + inkscape:export-ydpi="105.68515"> + <defs + id="defs4" /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + gridtolerance="10000" + guidetolerance="10" + objecttolerance="10" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="1.4" + inkscape:cx="502.39151" + inkscape:cy="395.14083" + inkscape:document-units="px" + inkscape:current-layer="layer1" + inkscape:window-width="1280" + inkscape:window-height="964" + inkscape:window-x="-4" + inkscape:window-y="-4" /> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1"> + <g + id="g2997" + transform="matrix(1,0,0,0.97276,11.03989,-50.50246)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" + style="stroke:black;stroke-width:0.99971008;stroke-miterlimit:4;stroke-dasharray:5.99826037, 0.99971006;stroke-dashoffset:0;stroke-opacity:1"> + <rect + rx="15.307091" + ry="7.850184" + y="296.80783" + x="258.31146" + height="185.5498" + width="495.71429" + id="rect2067" + style="opacity:1;fill:#90baf4;fill-opacity:1;stroke:black;stroke-width:0.99971008;stroke-miterlimit:4;stroke-dasharray:5.99826037, 0.99971006;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + id="flowRoot2954" + xml:space="preserve" + transform="translate(0,107.206)" + style="stroke:black;stroke-width:0.99971008;stroke-miterlimit:4;stroke-dasharray:5.99826037, 0.99971006;stroke-dashoffset:0;stroke-opacity:1"><flowRegion + id="flowRegion2956"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2958" + style="stroke:black;stroke-width:0.99971008;stroke-miterlimit:4;stroke-dasharray:5.99826037, 0.99971006;stroke-dashoffset:0;stroke-opacity:1" /></flowRegion><flowPara + id="flowPara2960">Composite A</flowPara></flowRoot> </g> + <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2988" + width="115.66247" + height="85.862968" + x="344.89529" + y="292.0733" + rx="6.9961648" + ry="7.1230249" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <flowRoot + xml:space="preserve" + id="flowRoot2966" + transform="translate(77.30451,86.13476)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"><flowRegion + id="flowRegion2968"><rect + id="rect2970" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2972">ComponentA</flowPara><flowPara + id="flowPara2911">(CA)</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 327.74478,323.92029 L 361.07982,323.92029 L 367.14073,337.05227 L 360.06967,349.17411 L 327.74478,349.17411 L 335.32093,337.05227 L 327.74478,323.92029 z " + id="path3017" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 440.99722,322.08201 L 474.33226,322.08201 L 480.39317,335.21399 L 473.32211,347.33583 L 440.99722,347.33583 L 448.57337,335.21399 L 440.99722,322.08201 z " + id="path3019" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect1948" + width="115.66247" + height="85.862968" + x="586.24194" + y="290.55807" + rx="6.9961648" + ry="7.1230249" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <flowRoot + xml:space="preserve" + id="flowRoot1950" + transform="translate(318.6512,84.61954)" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png"><flowRegion + id="flowRegion1952"><rect + id="rect1954" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara1956">ComponentB</flowPara><flowPara + id="flowPara2913">(CB)</flowPara></flowRoot> <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 569.09148,322.40507 L 602.42652,322.40507 L 608.48743,335.53705 L 601.41637,347.65889 L 569.09148,347.65889 L 576.66763,335.53705 L 569.09148,322.40507 z " + id="path1958" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 682.34392,320.56679 L 715.67896,320.56679 L 721.73987,333.69877 L 714.66881,345.82061 L 682.34392,345.82061 L 689.92007,333.69877 L 682.34392,320.56679 z " + id="path1960" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 477.73036,333.48955 L 574.70501,333.48955" + id="path1962" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <path + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 748.87345,321.46757 L 782.2085,321.46757 L 788.26941,334.59955 L 781.19835,346.72139 L 748.87345,346.72139 L 756.44961,334.59955 L 748.87345,321.46757 z " + id="path2805" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <path + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 248.87345,322.89614 L 282.20849,322.89614 L 288.2694,336.02812 L 281.19834,348.14996 L 248.87345,348.14996 L 256.4496,336.02812 L 248.87345,322.89614 z " + id="path2807" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 285.71428,336.95162 C 332.85714,336.95162 332.85714,336.95162 332.85714,336.95162" + id="path2809" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 720,332.66591 C 754.28571,332.66591 754.28571,332.66591 754.28571,332.66591" + id="path2811" /> + <rect + style="opacity:0.36111109;fill:none;fill-opacity:1;stroke:black;stroke-width:0.98599982;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2817" + width="790" + height="417.14273" + x="58.571442" + y="142.6658" + rx="17.051638" + ry="11.447018" /> + <flowRoot + xml:space="preserve" + id="flowRoot2835" + transform="translate(-207.1439,-58.92483)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"><flowRegion + id="flowRegion2837"><rect + id="rect2839" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2843">Domain</flowPara></flowRoot> <rect + style="opacity:0.24444444;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:1.00000095;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2842" + width="134.2859" + height="228.57147" + x="335.71426" + y="216.95145" + rx="7.5590863" + ry="14.426383" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="opacity:0.24444442;fill:#f19a9a;fill-opacity:1;stroke:#2e2424;stroke-width:1.00000095;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2867" + width="134.2859" + height="228.57147" + x="572.85706" + y="216.9516" + rx="7.5590863" + ry="14.426383" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84" /> + <rect + style="opacity:1;fill:#91ff91;fill-opacity:1;stroke:#261c1c;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2869" + width="107.14286" + height="160" + x="102.85714" + y="248.38019" + rx="17.051638" + ry="11.447018" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none" + d="M 103.57143,188.3802 C 777.14286,188.3802 777.14286,188.3802 777.14286,188.3802" + id="path2875" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="M 85.357143,476.95162 C 758.92857,476.95162 758.92857,476.95162 758.92857,476.95162" + id="path2879" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:3.99999976;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="M 284.21067,506.95162 C 812.21793,506.95162 812.21793,506.95162 812.21793,506.95162" + id="path2881" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 156.71429,189.80877 C 156.71429,247.66591 156.71429,247.66591 156.71429,247.66591" + id="path2883" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 403.57143,189.09448 C 403.57143,216.95163 403.57143,216.95163 403.57143,216.95163" + id="path2885" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 640.71429,187.66591 C 640.71429,216.23734 640.71429,216.23734 640.71429,216.23734" + id="path2887" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 154.28571,407.66591 C 153.57143,476.23734 153.57143,476.23734 153.57143,476.23734" + id="path2889" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 379.42857,446.23734 C 379.42857,478.3802 379.42857,478.3802 379.42857,478.3802" + id="path2893" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 603.85714,445.52305 C 603.85714,477.66591 603.85714,477.66591 603.85714,477.66591" + id="path2895" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 421.42857,445.52305 C 420.71429,506.95163 420.71429,506.95163 420.71429,506.95163" + id="path2899" /> + <path + style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 660.71429,444.80877 C 660.71429,506.95163 660.71429,506.95163 660.71429,506.95163" + id="path2901" /> + <flowRoot + xml:space="preserve" + id="flowRoot2903" + transform="translate(61.63266,9.281203)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"><flowRegion + id="flowRegion2905"><rect + id="rect2907" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2909">RuntimeNodeA</flowPara></flowRoot> <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:black;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="577.14288" + y="232.66591" + id="text2911" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2913" + x="577.14288" + y="232.66591" + style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Arial">RuntimeNodeB</tspan></text> + <flowRoot + xml:space="preserve" + id="flowRoot2915" + transform="translate(502.3469,-31.43308)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"><flowRegion + id="flowRegion2917"><rect + id="rect2919" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2921">Events</flowPara></flowRoot> <flowRoot + xml:space="preserve" + id="flowRoot2923" + transform="translate(540.7947,289.8109)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"><flowRegion + id="flowRegion2925"><rect + id="rect2927" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2929">Messages</flowPara></flowRoot> <flowRoot + xml:space="preserve" + id="flowRoot2931" + transform="translate(490.0804,259.0966)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"><flowRegion + id="flowRegion2933"><rect + id="rect2935" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara2939">Configuration</flowPara></flowRoot> <flowRoot + xml:space="preserve" + id="flowRoot1933" + transform="translate(-166.2245,64.2812)" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution4.png" + inkscape:export-xdpi="52.84" + inkscape:export-ydpi="52.84"><flowRegion + id="flowRegion1935"><rect + id="rect1937" + width="170" + height="61.42857" + x="281.42856" + y="212.66591" /></flowRegion><flowPara + id="flowPara1939">Domain</flowPara><flowPara + id="flowPara1941">Configuration</flowPara></flowRoot> </g> +</svg> diff --git a/sandbox/slaws/distributed-runtime/distributionCardinality.svg b/sandbox/slaws/distributed-runtime/distributionCardinality.svg new file mode 100644 index 0000000000..5e09bcbe2a --- /dev/null +++ b/sandbox/slaws/distributed-runtime/distributionCardinality.svg @@ -0,0 +1,335 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://web.resource.org/cc/" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="1052.3622" + height="744.09448" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.45.1" + sodipodi:docbase="C:\simon\tuscany\sandbox\slaws\distributed-runtime" + sodipodi:docname="distributionCardinality.svg" + version="1.0" + inkscape:export-filename="C:\simon\Tuscany\sandbox\slaws\distributed-runtime\distributionCardinality.png" + inkscape:export-xdpi="67.510796" + inkscape:export-ydpi="67.510796" + inkscape:output_extension="org.inkscape.output.svg.inkscape"> + <defs + id="defs4"> + <marker + inkscape:stockid="Arrow1Lend" + orient="auto" + refY="0.0" + refX="0.0" + id="Arrow1Lend" + style="overflow:visible;"> + <path + id="path3235" + d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z " + style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt;marker-start:none;" + transform="scale(0.8) rotate(180) translate(12.5,0)" /> + </marker> + </defs> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + gridtolerance="10000" + guidetolerance="10" + objecttolerance="10" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="0.98994949" + inkscape:cx="502.39151" + inkscape:cy="214.239" + inkscape:document-units="px" + inkscape:current-layer="layer1" + inkscape:window-width="1602" + inkscape:window-height="964" + inkscape:window-x="34" + inkscape:window-y="41" /> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1"> + <rect + style="opacity:0.35555558;fill:#9a8787;fill-opacity:1;stroke:#261c1c;stroke-width:1.28752136;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect1938" + width="192.85316" + height="136.02721" + x="43.0009" + y="169.95251" + rx="8.9522543" + ry="7.5390124" /> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="55.714283" + y="196.95161" + id="text1870" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan1872" + x="55.714283" + y="196.95161">Domain</tspan></text> + <rect + style="opacity:0.35555558;fill:#9a8787;fill-opacity:1;stroke:#261c1c;stroke-width:1.21612716;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect1880" + width="170.7012" + height="137.10876" + x="537.60797" + y="173.13115" + rx="7.9239593" + ry="7.5989547" /> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="577.5" + y="201.59447" + id="text1882" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan1884" + x="577.5" + y="201.59447">Node</tspan></text> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="515.71429" + y="239.80875" + id="text1892" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan1894" + x="515.71429" + y="239.80875">n</tspan></text> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.31738484px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 238.12818,222.8246 C 534.84131,222.8246 534.84131,223.22151 534.84131,223.22151" + id="path1904" /> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="244.55386" + y="240.77539" + id="text1906" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan1908" + x="244.55386" + y="240.77539">1</tspan></text> + <rect + style="opacity:0.35555558;fill:#9a8787;fill-opacity:1;stroke:#261c1c;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2193" + width="150.71428" + height="105" + x="60.731182" + y="356.84396" + rx="6.9961648" + ry="5.8193965" /> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="76.728859" + y="382.21335" + id="text2195" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2197" + x="76.728859" + y="382.21335">Domain</tspan><tspan + sodipodi:role="line" + x="76.728859" + y="398.21335" + id="tspan2222">Level</tspan><tspan + sodipodi:role="line" + x="76.728859" + y="414.21335" + id="tspan2224">Composite</tspan></text> + <rect + style="opacity:0.35555558;fill:#9a8787;fill-opacity:1;stroke:#261c1c;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2204" + width="150.71428" + height="105" + x="547.03296" + y="501.96649" + rx="6.9961648" + ry="5.8193965" /> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="565.17352" + y="524.4787" + id="text2206" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2208" + x="565.17352" + y="524.4787">Component</tspan></text> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.92912143px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 617.85926,310.7687 C 617.85926,354.54865 617.85926,354.54865 617.85926,354.54865" + id="path2218" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 615.24723,460.89504 C 615.24723,502.32361 615.24723,501.60932 615.24723,501.60932" + id="path2220" /> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="623.2934" + y="349.51599" + id="text2226" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2228" + x="623.2934" + y="349.51599">1</tspan></text> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="624.00769" + y="322.12802" + id="text2230" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2232" + x="624.00769" + y="322.12802">1</tspan></text> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="620.82147" + y="497.28009" + id="text2238" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2240" + x="620.82147" + y="497.28009">n</tspan></text> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 131.54385,306.52967 C 131.54385,357.24395 131.54385,357.24395 131.54385,357.24395" + id="path2337" /> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="135.9679" + y="353.28986" + id="text2341" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2343" + x="135.9679" + y="353.28986">1</tspan></text> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="137.69228" + y="319.84094" + id="text2345" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2347" + x="137.69228" + y="319.84094">1</tspan></text> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="620.42273" + y="479.1236" + id="text3328" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan3330" + x="620.42273" + y="479.1236">1</tspan></text> + <rect + style="opacity:0.35555558;fill:#9a8787;fill-opacity:1;stroke:#261c1c;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect2242" + width="150.71428" + height="105" + x="546.89685" + y="355.39642" + rx="6.9961648" + ry="5.8193965" /> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="579.88525" + y="379.8707" + id="text2244" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan2246" + x="579.88525" + y="379.8707">Node</tspan><tspan + sodipodi:role="line" + x="579.88525" + y="395.8707" + id="tspan2248">Level</tspan><tspan + sodipodi:role="line" + x="579.88525" + y="411.8707" + id="tspan2250">Composite</tspan></text> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 127.27922,462.26192 L 127.27922,551.15535 L 546.49253,550.14519" + id="path2252" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow1Lend);stroke-miterlimit:4;stroke-dasharray:4,4;stroke-dashoffset:0" + d="M 545.48238,415.7949 L 210.11173,415.7949" + id="path2254" /> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="344.14386" + y="405.88712" + id="text4396" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan4398" + x="344.14386" + y="405.88712">Subset Of</tspan></text> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="526.91443" + y="542.26556" + id="text4400" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan4402" + x="526.91443" + y="542.26556">n</tspan></text> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial" + x="133.52919" + y="481.14389" + id="text4404" + sodipodi:linespacing="100%"><tspan + sodipodi:role="line" + id="tspan4406" + x="133.52919" + y="481.14389">1</tspan></text> + </g> +</svg> diff --git a/sandbox/slaws/distributed-runtime/multi-node-abstract.svg b/sandbox/slaws/distributed-runtime/multi-node-abstract.svg new file mode 100644 index 0000000000..f770e3e5f3 --- /dev/null +++ b/sandbox/slaws/distributed-runtime/multi-node-abstract.svg @@ -0,0 +1,579 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://web.resource.org/cc/" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="1052.3622" + height="744.09448" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.45.1" + sodipodi:docbase="C:\simon\tuscany\sandbox\slaws\distributed-runtime" + sodipodi:docname="multi-node-abstract.svg" + version="1.0" + inkscape:export-filename="C:\simon\Tuscany\sandbox\slaws\distributed-runtime\multi-node-abstract.png" + inkscape:export-xdpi="28.526064" + inkscape:export-ydpi="28.526064" + inkscape:output_extension="org.inkscape.output.svg.inkscape"> + <defs + id="defs4"> + <marker + inkscape:stockid="Arrow2Lend" + orient="auto" + refY="0.0" + refX="0.0" + id="Arrow2Lend" + style="overflow:visible;"> + <path + id="path3200" + style="font-size:12.0;fill-rule:evenodd;stroke-width:0.62500000;stroke-linejoin:round;" + d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z " + transform="scale(1.1) rotate(180) translate(1,0)" /> + </marker> + <marker + inkscape:stockid="Arrow1Lend" + orient="auto" + refY="0.0" + refX="0.0" + id="Arrow1Lend" + style="overflow:visible;"> + <path + id="path3182" + d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z " + style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt;marker-start:none;" + transform="scale(0.8) rotate(180) translate(12.5,0)" /> + </marker> + </defs> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + gridtolerance="10000" + guidetolerance="10" + objecttolerance="10" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="0.98994949" + inkscape:cx="502.39151" + inkscape:cy="370.48478" + inkscape:document-units="px" + inkscape:current-layer="layer1" + inkscape:window-width="1199" + inkscape:window-height="897" + inkscape:window-x="368" + inkscape:window-y="76" /> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1"> + <path + sodipodi:type="arc" + style="opacity:0.21666667;fill:#ececec;fill-opacity:1;stroke:#000000;stroke-width:1.85099995;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="path2224" + sodipodi:cx="340.92648" + sodipodi:cy="353.67053" + sodipodi:rx="198.49498" + sodipodi:ry="198.49498" + d="M 539.42146 353.67053 A 198.49498 198.49498 0 1 1 142.4315,353.67053 A 198.49498 198.49498 0 1 1 539.42146 353.67053 z" + transform="matrix(1.1241926,0,0,1.0860247,100.59604,-51.6376)" /> + <text + xml:space="preserve" + style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" + x="372.72235" + y="173.3282" + id="text3254"><tspan + sodipodi:role="line" + x="372.72235" + y="173.3282" + style="font-size:20px" + id="tspan2433">Distributed SCA Domain</tspan></text> + <rect + style="opacity:0.37222224;fill:none;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect5423" + width="945.50281" + height="507.09659" + x="40.406101" + y="89.515633" + rx="8.9261026" + ry="15.625688" /> + <path + sodipodi:type="arc" + style="opacity:0.55;fill:#931212;fill-opacity:1;stroke:#000000;stroke-width:1.85099995;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="path2437" + sodipodi:cx="340.92648" + sodipodi:cy="353.67053" + sodipodi:rx="198.49498" + sodipodi:ry="198.49498" + d="M 539.42146 353.67053 A 198.49498 198.49498 0 1 1 142.4315,353.67053 A 198.49498 198.49498 0 1 1 539.42146 353.67053 z" + transform="matrix(0.2173894,0,0,0.2173895,277.41928,174.25578)" /> + <text + xml:space="preserve" + style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" + x="326.78436" + y="234.4725" + id="text2439"><tspan + sodipodi:role="line" + id="tspan2441" + x="326.78436" + y="234.4725" + style="font-size:20px">Node</tspan></text> + <g + id="g2443" + inkscape:label="Layer 1" + transform="matrix(0.421449,0,0,0.4251546,179.77024,175.90208)"> + <rect + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + ry="7.1230249" + rx="6.9961648" + y="159.21616" + x="352.03815" + height="85.862968" + width="115.66247" + id="rect2445" + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + transform="translate(84.44737,-46.72238)" + id="flowRoot2447" + xml:space="preserve"><flowRegion + id="flowRegion2449"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2451" /></flowRegion><flowPara + id="flowPara2453">Component</flowPara><flowPara + id="flowPara2455" /></flowRoot> <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2457" + d="M 334.88764,191.06315 L 368.22268,191.06315 L 374.28359,204.19513 L 367.21253,216.31697 L 334.88764,216.31697 L 342.46379,204.19513 L 334.88764,191.06315 z " + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2459" + d="M 448.14008,189.22487 L 481.47512,189.22487 L 487.53603,202.35685 L 480.46497,214.47869 L 448.14008,214.47869 L 455.71623,202.35685 L 448.14008,189.22487 z " + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + </g> + <path + sodipodi:type="arc" + style="opacity:0.55;fill:#931212;fill-opacity:1;stroke:#000000;stroke-width:1.85099995;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="path2461" + sodipodi:cx="340.92648" + sodipodi:cy="353.67053" + sodipodi:rx="198.49498" + sodipodi:ry="198.49498" + d="M 539.42146 353.67053 A 198.49498 198.49498 0 1 1 142.4315,353.67053 A 198.49498 198.49498 0 1 1 539.42146 353.67053 z" + transform="matrix(0.2173894,0,0,0.2173895,273.37868,310.62637)" /> + <text + xml:space="preserve" + style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" + x="322.74371" + y="370.84308" + id="text2463"><tspan + sodipodi:role="line" + id="tspan2465" + x="322.74371" + y="370.84308" + style="font-size:20px">Node</tspan></text> + <g + id="g2467" + inkscape:label="Layer 1" + transform="matrix(0.421449,0,0,0.4251546,175.72964,312.27267)"> + <rect + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + ry="7.1230249" + rx="6.9961648" + y="159.21616" + x="352.03815" + height="85.862968" + width="115.66247" + id="rect2469" + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + transform="translate(84.44737,-46.72238)" + id="flowRoot2471" + xml:space="preserve"><flowRegion + id="flowRegion2473"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2475" /></flowRegion><flowPara + id="flowPara2477">Component</flowPara><flowPara + id="flowPara2479" /></flowRoot> <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2481" + d="M 334.88764,191.06315 L 368.22268,191.06315 L 374.28359,204.19513 L 367.21253,216.31697 L 334.88764,216.31697 L 342.46379,204.19513 L 334.88764,191.06315 z " + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2483" + d="M 448.14008,189.22487 L 481.47512,189.22487 L 487.53603,202.35685 L 480.46497,214.47869 L 448.14008,214.47869 L 455.71623,202.35685 L 448.14008,189.22487 z " + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + </g> + <path + sodipodi:type="arc" + style="opacity:0.55;fill:#931212;fill-opacity:1;stroke:#000000;stroke-width:1.85099995;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="path2485" + sodipodi:cx="340.92648" + sodipodi:cy="353.67053" + sodipodi:rx="198.49498" + sodipodi:ry="198.49498" + d="M 539.42146 353.67053 A 198.49498 198.49498 0 1 1 142.4315,353.67053 A 198.49498 198.49498 0 1 1 539.42146 353.67053 z" + transform="matrix(0.2173894,0,0,0.2173895,378.43455,219.71264)" /> + <text + xml:space="preserve" + style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" + x="427.79962" + y="279.92935" + id="text2487"><tspan + sodipodi:role="line" + id="tspan2489" + x="427.79962" + y="279.92935" + style="font-size:20px">Node</tspan></text> + <g + id="g2491" + inkscape:label="Layer 1" + transform="matrix(0.421449,0,0,0.4251546,280.7855,221.35894)"> + <rect + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + ry="7.1230249" + rx="6.9961648" + y="159.21616" + x="352.03815" + height="85.862968" + width="115.66247" + id="rect2493" + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + transform="translate(84.44737,-46.72238)" + id="flowRoot2495" + xml:space="preserve"><flowRegion + id="flowRegion2497"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2499" /></flowRegion><flowPara + id="flowPara2501">Component</flowPara><flowPara + id="flowPara2503" /></flowRoot> <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2505" + d="M 334.88764,191.06315 L 368.22268,191.06315 L 374.28359,204.19513 L 367.21253,216.31697 L 334.88764,216.31697 L 342.46379,204.19513 L 334.88764,191.06315 z " + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2507" + d="M 448.14008,189.22487 L 481.47512,189.22487 L 487.53603,202.35685 L 480.46497,214.47869 L 448.14008,214.47869 L 455.71623,202.35685 L 448.14008,189.22487 z " + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + </g> + <path + sodipodi:type="arc" + style="opacity:0.55;fill:#931212;fill-opacity:1;stroke:#000000;stroke-width:1.85099995;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="path2509" + sodipodi:cx="340.92648" + sodipodi:cy="353.67053" + sodipodi:rx="198.49498" + sodipodi:ry="198.49498" + d="M 539.42146 353.67053 A 198.49498 198.49498 0 1 1 142.4315,353.67053 A 198.49498 198.49498 0 1 1 539.42146 353.67053 z" + transform="matrix(0.2173894,0,0,0.2173895,390.55638,384.36751)" /> + <text + xml:space="preserve" + style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" + x="439.92139" + y="444.58423" + id="text2511"><tspan + sodipodi:role="line" + id="tspan2513" + x="439.92139" + y="444.58423" + style="font-size:20px">Node</tspan></text> + <g + id="g2515" + inkscape:label="Layer 1" + transform="matrix(0.421449,0,0,0.4251546,292.90733,386.01381)"> + <rect + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + ry="7.1230249" + rx="6.9961648" + y="159.21616" + x="352.03815" + height="85.862968" + width="115.66247" + id="rect2517" + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + transform="translate(84.44737,-46.72238)" + id="flowRoot2519" + xml:space="preserve"><flowRegion + id="flowRegion2521"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2523" /></flowRegion><flowPara + id="flowPara2525">Component</flowPara><flowPara + id="flowPara2527" /></flowRoot> <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2529" + d="M 334.88764,191.06315 L 368.22268,191.06315 L 374.28359,204.19513 L 367.21253,216.31697 L 334.88764,216.31697 L 342.46379,204.19513 L 334.88764,191.06315 z " + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2531" + d="M 448.14008,189.22487 L 481.47512,189.22487 L 487.53603,202.35685 L 480.46497,214.47869 L 448.14008,214.47869 L 455.71623,202.35685 L 448.14008,189.22487 z " + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + </g> + <path + sodipodi:type="arc" + style="opacity:0.55;fill:#931212;fill-opacity:1;stroke:#000000;stroke-width:1.85099995;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="path2533" + sodipodi:cx="340.92648" + sodipodi:cy="353.67053" + sodipodi:rx="198.49498" + sodipodi:ry="198.49498" + d="M 539.42146 353.67053 A 198.49498 198.49498 0 1 1 142.4315,353.67053 A 198.49498 198.49498 0 1 1 539.42146 353.67053 z" + transform="matrix(0.2173894,0,0,0.2173895,471.36858,307.59592)" /> + <text + xml:space="preserve" + style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" + x="520.73364" + y="367.81262" + id="text2535"><tspan + sodipodi:role="line" + id="tspan2537" + x="520.73364" + y="367.81262" + style="font-size:20px">Node</tspan></text> + <g + id="g2539" + inkscape:label="Layer 1" + transform="matrix(0.421449,0,0,0.4251546,373.71954,309.24222)"> + <rect + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + ry="7.1230249" + rx="6.9961648" + y="159.21616" + x="352.03815" + height="85.862968" + width="115.66247" + id="rect2541" + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + transform="translate(84.44737,-46.72238)" + id="flowRoot2543" + xml:space="preserve"><flowRegion + id="flowRegion2545"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2547" /></flowRegion><flowPara + id="flowPara2549">Component</flowPara><flowPara + id="flowPara2551" /></flowRoot> <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2553" + d="M 334.88764,191.06315 L 368.22268,191.06315 L 374.28359,204.19513 L 367.21253,216.31697 L 334.88764,216.31697 L 342.46379,204.19513 L 334.88764,191.06315 z " + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2555" + d="M 448.14008,189.22487 L 481.47512,189.22487 L 487.53603,202.35685 L 480.46497,214.47869 L 448.14008,214.47869 L 455.71623,202.35685 L 448.14008,189.22487 z " + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + </g> + <path + sodipodi:type="arc" + style="opacity:0.55;fill:#931212;fill-opacity:1;stroke:#000000;stroke-width:1.85099995;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="path2557" + sodipodi:cx="340.92648" + sodipodi:cy="353.67053" + sodipodi:rx="198.49498" + sodipodi:ry="198.49498" + d="M 539.42146 353.67053 A 198.49498 198.49498 0 1 1 142.4315,353.67053 A 198.49498 198.49498 0 1 1 539.42146 353.67053 z" + transform="matrix(0.2173894,0,0,0.2173895,512.78483,185.36746)" /> + <text + xml:space="preserve" + style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" + x="562.1499" + y="245.5842" + id="text2559"><tspan + sodipodi:role="line" + id="tspan2561" + x="562.1499" + y="245.5842" + style="font-size:20px">Node</tspan></text> + <g + id="g2563" + inkscape:label="Layer 1" + transform="matrix(0.421449,0,0,0.4251546,415.13579,187.01376)"> + <rect + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + ry="7.1230249" + rx="6.9961648" + y="159.21616" + x="352.03815" + height="85.862968" + width="115.66247" + id="rect2565" + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + transform="translate(84.44737,-46.72238)" + id="flowRoot2567" + xml:space="preserve"><flowRegion + id="flowRegion2569"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2571" /></flowRegion><flowPara + id="flowPara2573">Component</flowPara><flowPara + id="flowPara2575" /></flowRoot> <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2577" + d="M 334.88764,191.06315 L 368.22268,191.06315 L 374.28359,204.19513 L 367.21253,216.31697 L 334.88764,216.31697 L 342.46379,204.19513 L 334.88764,191.06315 z " + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2579" + d="M 448.14008,189.22487 L 481.47512,189.22487 L 487.53603,202.35685 L 480.46497,214.47869 L 448.14008,214.47869 L 455.71623,202.35685 L 448.14008,189.22487 z " + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + </g> + <path + sodipodi:type="arc" + style="opacity:0.55;fill:#931212;fill-opacity:1;stroke:#000000;stroke-width:1.85099995;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="path2581" + sodipodi:cx="340.92648" + sodipodi:cy="353.67053" + sodipodi:rx="198.49498" + sodipodi:ry="198.49498" + d="M 539.42146 353.67053 A 198.49498 198.49498 0 1 1 142.4315,353.67053 A 198.49498 198.49498 0 1 1 539.42146 353.67053 z" + transform="matrix(0.2173894,0,0,0.2173895,565.31276,316.68729)" /> + <text + xml:space="preserve" + style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" + x="614.67786" + y="376.90402" + id="text2583"><tspan + sodipodi:role="line" + id="tspan2585" + x="614.67786" + y="376.90402" + style="font-size:20px">Node</tspan></text> + <g + id="g2587" + inkscape:label="Layer 1" + transform="matrix(0.421449,0,0,0.4251546,467.66372,318.33359)"> + <rect + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + ry="7.1230249" + rx="6.9961648" + y="159.21616" + x="352.03815" + height="85.862968" + width="115.66247" + id="rect2589" + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + transform="translate(84.44737,-46.72238)" + id="flowRoot2591" + xml:space="preserve"><flowRegion + id="flowRegion2593"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2595" /></flowRegion><flowPara + id="flowPara2597">Component</flowPara><flowPara + id="flowPara2599" /></flowRoot> <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2601" + d="M 334.88764,191.06315 L 368.22268,191.06315 L 374.28359,204.19513 L 367.21253,216.31697 L 334.88764,216.31697 L 342.46379,204.19513 L 334.88764,191.06315 z " + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path2603" + d="M 448.14008,189.22487 L 481.47512,189.22487 L 487.53603,202.35685 L 480.46497,214.47869 L 448.14008,214.47869 L 455.71623,202.35685 L 448.14008,189.22487 z " + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + </g> + </g> +</svg> diff --git a/sandbox/slaws/distributed-runtime/single-node-abstract.svg b/sandbox/slaws/distributed-runtime/single-node-abstract.svg new file mode 100644 index 0000000000..60392a2636 --- /dev/null +++ b/sandbox/slaws/distributed-runtime/single-node-abstract.svg @@ -0,0 +1,188 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://web.resource.org/cc/" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="1052.3622" + height="744.09448" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.45.1" + sodipodi:docbase="C:\simon\tuscany\sandbox\slaws\distributed-runtime" + sodipodi:docname="single-node-abstract.svg" + version="1.0" + inkscape:export-filename="C:\simon\Tuscany\sandbox\slaws\distributed-runtime\sinle-node-abstract.png" + inkscape:export-xdpi="28.526064" + inkscape:export-ydpi="28.526064" + inkscape:output_extension="org.inkscape.output.svg.inkscape"> + <defs + id="defs4"> + <marker + inkscape:stockid="Arrow2Lend" + orient="auto" + refY="0.0" + refX="0.0" + id="Arrow2Lend" + style="overflow:visible;"> + <path + id="path3200" + style="font-size:12.0;fill-rule:evenodd;stroke-width:0.62500000;stroke-linejoin:round;" + d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z " + transform="scale(1.1) rotate(180) translate(1,0)" /> + </marker> + <marker + inkscape:stockid="Arrow1Lend" + orient="auto" + refY="0.0" + refX="0.0" + id="Arrow1Lend" + style="overflow:visible;"> + <path + id="path3182" + d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z " + style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt;marker-start:none;" + transform="scale(0.8) rotate(180) translate(12.5,0)" /> + </marker> + </defs> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + gridtolerance="10000" + guidetolerance="10" + objecttolerance="10" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="0.98994949" + inkscape:cx="502.39151" + inkscape:cy="370.48478" + inkscape:document-units="px" + inkscape:current-layer="layer1" + inkscape:window-width="1199" + inkscape:window-height="897" + inkscape:window-x="368" + inkscape:window-y="76" /> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1"> + <path + sodipodi:type="arc" + style="opacity:0.21666667;fill:#ececec;fill-opacity:1;stroke:#000000;stroke-width:1.85099995;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="path3240" + sodipodi:cx="340.92648" + sodipodi:cy="353.67053" + sodipodi:rx="198.49498" + sodipodi:ry="198.49498" + d="M 539.42146 353.67053 A 198.49498 198.49498 0 1 1 142.4315,353.67053 A 198.49498 198.49498 0 1 1 539.42146 353.67053 z" + transform="matrix(0.4731418,0,0,0.4960424,350.84082,161.06231)" /> + <text + xml:space="preserve" + style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" + x="454.34354" + y="281.41452" + id="text3258"><tspan + sodipodi:role="line" + id="tspan3260" + x="454.34354" + y="281.41452" + style="font-size:20px">Standalone</tspan><tspan + sodipodi:role="line" + x="454.34354" + y="306.41452" + style="font-size:20px" + id="tspan2431">SCA Domain</tspan></text> + <path + sodipodi:type="arc" + style="opacity:0.55;fill:#931212;fill-opacity:1;stroke:#000000;stroke-width:1.85099995;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="path2184" + sodipodi:cx="340.92648" + sodipodi:cy="353.67053" + sodipodi:rx="198.49498" + sodipodi:ry="198.49498" + d="M 539.42146 353.67053 A 198.49498 198.49498 0 1 1 142.4315,353.67053 A 198.49498 198.49498 0 1 1 539.42146 353.67053 z" + transform="matrix(0.2173894,0,0,0.2173895,439.54876,279.8167)" /> + <text + xml:space="preserve" + style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" + x="488.91382" + y="340.03342" + id="text2186"><tspan + sodipodi:role="line" + id="tspan2188" + x="488.91382" + y="340.03342" + style="font-size:20px">Node</tspan></text> + <rect + style="opacity:0.37222224;fill:none;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect5423" + width="945.50281" + height="507.09659" + x="40.406101" + y="89.515633" + rx="8.9261026" + ry="15.625688" /> + <g + id="g2398" + inkscape:label="Layer 1" + transform="matrix(0.421449,0,0,0.4251546,341.89971,281.463)"> + <rect + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + ry="7.1230249" + rx="6.9961648" + y="159.21616" + x="352.03815" + height="85.862968" + width="115.66247" + id="rect2988" + style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + <flowRoot + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + transform="translate(84.44737,-46.72238)" + id="flowRoot2966" + xml:space="preserve"><flowRegion + id="flowRegion2968"><rect + y="212.66591" + x="281.42856" + height="61.42857" + width="170" + id="rect2970" /></flowRegion><flowPara + id="flowPara2972">Component</flowPara><flowPara + id="flowPara2911" /></flowRoot> <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path3017" + d="M 334.88764,191.06315 L 368.22268,191.06315 L 374.28359,204.19513 L 367.21253,216.31697 L 334.88764,216.31697 L 342.46379,204.19513 L 334.88764,191.06315 z " + style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + inkscape:export-ydpi="52.84" + inkscape:export-xdpi="52.84" + inkscape:export-filename="C:\simon\Projects\Tuscany\java\notes\distribution\distribution1.png" + id="path3019" + d="M 448.14008,189.22487 L 481.47512,189.22487 L 487.53603,202.35685 L 480.46497,214.47869 L 448.14008,214.47869 L 455.71623,202.35685 L 448.14008,189.22487 z " + style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + </g> + </g> +</svg> diff --git a/sandbox/slaws/httpserver.php/README b/sandbox/slaws/httpserver.php/README new file mode 100644 index 0000000000..b318a289f2 --- /dev/null +++ b/sandbox/slaws/httpserver.php/README @@ -0,0 +1,28 @@ +Alert Aggregator - PHP Display Component
+========================================
+
+This httpserver configuration includes a PHP implementation of the
+feed aggregator display component
+
+The startserver script can be used to start up an HTTPD server
+configured to run the display component. It relies on two environment
+variables being correctl configured. See the top of startserver.bat.
+
+PHP must be configured to include the PHP SCA_SDO v1.2.1 extension from PECL.
+
+http://pecl.php.net/package/sca_sdo
+
+This provides the SCA and SDO support that the display component relies on.
+
+To run the display component on windows.
+
+> cd httpserver.php
+
+fix up the paths at the top of startserver.bat and then
+
+> startserver.bat
+
+then point your browser at
+
+http://localhost:9091/index.html
+
diff --git a/sandbox/slaws/httpserver.php/conf/httpd.conf b/sandbox/slaws/httpserver.php/conf/httpd.conf new file mode 100644 index 0000000000..92026c9717 --- /dev/null +++ b/sandbox/slaws/httpserver.php/conf/httpd.conf @@ -0,0 +1,28 @@ +# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# This is the main Apache HTTP server configuration file. It contains the
+# configuration directives that give the server its instructions.
+# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
+
+Listen 9091
+
+# Generated by the startserver script
+Include conf/base.conf
+
+# SCA rest module not required for the PHP part
+# Include conf/tuscany_sca_mod_rest.conf
diff --git a/sandbox/slaws/httpserver.php/conf/mime.types b/sandbox/slaws/httpserver.php/conf/mime.types new file mode 100644 index 0000000000..4279f51bca --- /dev/null +++ b/sandbox/slaws/httpserver.php/conf/mime.types @@ -0,0 +1,607 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# This file controls what Internet media types are sent to the client for +# given file extension(s). Sending the correct media type to the client +# is important so they know how to handle the content of the file. +# Extra types can either be added here or by using an AddType directive +# in your config files. For more information about Internet media types, +# please read RFC 2045, 2046, 2047, 2048, and 2077. The Internet media type +# registry is at <http://www.iana.org/assignments/media-types/>. + +# MIME type Extensions +application/activemessage +application/andrew-inset ez +application/applefile +application/atom+xml atom +application/atomicmail +application/batch-smtp +application/beep+xml +application/cals-1840 +application/cnrp+xml +application/commonground +application/cpl+xml +application/cybercash +application/dca-rft +application/dec-dx +application/dvcs +application/edi-consent +application/edifact +application/edi-x12 +application/eshop +application/font-tdpfr +application/http +application/hyperstudio +application/iges +application/index +application/index.cmd +application/index.obj +application/index.response +application/index.vnd +application/iotp +application/ipp +application/isup +application/mac-binhex40 hqx +application/mac-compactpro cpt +application/macwriteii +application/marc +application/mathematica +application/mathml+xml mathml +application/msword doc +application/news-message-id +application/news-transmission +application/ocsp-request +application/ocsp-response +application/octet-stream bin dms lha lzh exe class so dll dmg +application/oda oda +application/ogg ogg +application/parityfec +application/pdf pdf +application/pgp-encrypted +application/pgp-keys +application/pgp-signature +application/pkcs10 +application/pkcs7-mime +application/pkcs7-signature +application/pkix-cert +application/pkix-crl +application/pkixcmp +application/postscript ai eps ps +application/prs.alvestrand.titrax-sheet +application/prs.cww +application/prs.nprend +application/prs.plucker +application/qsig +application/rdf+xml rdf +application/reginfo+xml +application/remote-printing +application/riscos +application/rtf +application/sdp +application/set-payment +application/set-payment-initiation +application/set-registration +application/set-registration-initiation +application/sgml +application/sgml-open-catalog +application/sieve +application/slate +application/smil smi smil +application/srgs gram +application/srgs+xml grxml +application/timestamp-query +application/timestamp-reply +application/tve-trigger +application/vemmi +application/vnd.3gpp.pic-bw-large +application/vnd.3gpp.pic-bw-small +application/vnd.3gpp.pic-bw-var +application/vnd.3gpp.sms +application/vnd.3m.post-it-notes +application/vnd.accpac.simply.aso +application/vnd.accpac.simply.imp +application/vnd.acucobol +application/vnd.acucorp +application/vnd.adobe.xfdf +application/vnd.aether.imp +application/vnd.amiga.ami +application/vnd.anser-web-certificate-issue-initiation +application/vnd.anser-web-funds-transfer-initiation +application/vnd.audiograph +application/vnd.blueice.multipass +application/vnd.bmi +application/vnd.businessobjects +application/vnd.canon-cpdl +application/vnd.canon-lips +application/vnd.cinderella +application/vnd.claymore +application/vnd.commerce-battelle +application/vnd.commonspace +application/vnd.contact.cmsg +application/vnd.cosmocaller +application/vnd.criticaltools.wbs+xml +application/vnd.ctc-posml +application/vnd.cups-postscript +application/vnd.cups-raster +application/vnd.cups-raw +application/vnd.curl +application/vnd.cybank +application/vnd.data-vision.rdz +application/vnd.dna +application/vnd.dpgraph +application/vnd.dreamfactory +application/vnd.dxr +application/vnd.ecdis-update +application/vnd.ecowin.chart +application/vnd.ecowin.filerequest +application/vnd.ecowin.fileupdate +application/vnd.ecowin.series +application/vnd.ecowin.seriesrequest +application/vnd.ecowin.seriesupdate +application/vnd.enliven +application/vnd.epson.esf +application/vnd.epson.msf +application/vnd.epson.quickanime +application/vnd.epson.salt +application/vnd.epson.ssf +application/vnd.ericsson.quickcall +application/vnd.eudora.data +application/vnd.fdf +application/vnd.ffsns +application/vnd.fints +application/vnd.flographit +application/vnd.framemaker +application/vnd.fsc.weblaunch +application/vnd.fujitsu.oasys +application/vnd.fujitsu.oasys2 +application/vnd.fujitsu.oasys3 +application/vnd.fujitsu.oasysgp +application/vnd.fujitsu.oasysprs +application/vnd.fujixerox.ddd +application/vnd.fujixerox.docuworks +application/vnd.fujixerox.docuworks.binder +application/vnd.fut-misnet +application/vnd.grafeq +application/vnd.groove-account +application/vnd.groove-help +application/vnd.groove-identity-message +application/vnd.groove-injector +application/vnd.groove-tool-message +application/vnd.groove-tool-template +application/vnd.groove-vcard +application/vnd.hbci +application/vnd.hhe.lesson-player +application/vnd.hp-hpgl +application/vnd.hp-hpid +application/vnd.hp-hps +application/vnd.hp-pcl +application/vnd.hp-pclxl +application/vnd.httphone +application/vnd.hzn-3d-crossword +application/vnd.ibm.afplinedata +application/vnd.ibm.electronic-media +application/vnd.ibm.minipay +application/vnd.ibm.modcap +application/vnd.ibm.rights-management +application/vnd.ibm.secure-container +application/vnd.informix-visionary +application/vnd.intercon.formnet +application/vnd.intertrust.digibox +application/vnd.intertrust.nncp +application/vnd.intu.qbo +application/vnd.intu.qfx +application/vnd.irepository.package+xml +application/vnd.is-xpr +application/vnd.japannet-directory-service +application/vnd.japannet-jpnstore-wakeup +application/vnd.japannet-payment-wakeup +application/vnd.japannet-registration +application/vnd.japannet-registration-wakeup +application/vnd.japannet-setstore-wakeup +application/vnd.japannet-verification +application/vnd.japannet-verification-wakeup +application/vnd.jisp +application/vnd.kde.karbon +application/vnd.kde.kchart +application/vnd.kde.kformula +application/vnd.kde.kivio +application/vnd.kde.kontour +application/vnd.kde.kpresenter +application/vnd.kde.kspread +application/vnd.kde.kword +application/vnd.kenameaapp +application/vnd.koan +application/vnd.liberty-request+xml +application/vnd.llamagraphics.life-balance.desktop +application/vnd.llamagraphics.life-balance.exchange+xml +application/vnd.lotus-1-2-3 +application/vnd.lotus-approach +application/vnd.lotus-freelance +application/vnd.lotus-notes +application/vnd.lotus-organizer +application/vnd.lotus-screencam +application/vnd.lotus-wordpro +application/vnd.mcd +application/vnd.mediastation.cdkey +application/vnd.meridian-slingshot +application/vnd.micrografx.flo +application/vnd.micrografx.igx +application/vnd.mif mif +application/vnd.minisoft-hp3000-save +application/vnd.mitsubishi.misty-guard.trustweb +application/vnd.mobius.daf +application/vnd.mobius.dis +application/vnd.mobius.mbk +application/vnd.mobius.mqy +application/vnd.mobius.msl +application/vnd.mobius.plc +application/vnd.mobius.txf +application/vnd.mophun.application +application/vnd.mophun.certificate +application/vnd.motorola.flexsuite +application/vnd.motorola.flexsuite.adsi +application/vnd.motorola.flexsuite.fis +application/vnd.motorola.flexsuite.gotap +application/vnd.motorola.flexsuite.kmr +application/vnd.motorola.flexsuite.ttc +application/vnd.motorola.flexsuite.wem +application/vnd.mozilla.xul+xml xul +application/vnd.ms-artgalry +application/vnd.ms-asf +application/vnd.ms-excel xls +application/vnd.ms-lrm +application/vnd.ms-powerpoint ppt +application/vnd.ms-project +application/vnd.ms-tnef +application/vnd.ms-works +application/vnd.ms-wpl +application/vnd.mseq +application/vnd.msign +application/vnd.music-niff +application/vnd.musician +application/vnd.netfpx +application/vnd.noblenet-directory +application/vnd.noblenet-sealer +application/vnd.noblenet-web +application/vnd.novadigm.edm +application/vnd.novadigm.edx +application/vnd.novadigm.ext +application/vnd.obn +application/vnd.osa.netdeploy +application/vnd.palm +application/vnd.pg.format +application/vnd.pg.osasli +application/vnd.powerbuilder6 +application/vnd.powerbuilder6-s +application/vnd.powerbuilder7 +application/vnd.powerbuilder7-s +application/vnd.powerbuilder75 +application/vnd.powerbuilder75-s +application/vnd.previewsystems.box +application/vnd.publishare-delta-tree +application/vnd.pvi.ptid1 +application/vnd.pwg-multiplexed +application/vnd.pwg-xhtml-print+xml +application/vnd.quark.quarkxpress +application/vnd.rapid +application/vnd.s3sms +application/vnd.sealed.net +application/vnd.seemail +application/vnd.shana.informed.formdata +application/vnd.shana.informed.formtemplate +application/vnd.shana.informed.interchange +application/vnd.shana.informed.package +application/vnd.smaf +application/vnd.sss-cod +application/vnd.sss-dtf +application/vnd.sss-ntf +application/vnd.street-stream +application/vnd.svd +application/vnd.swiftview-ics +application/vnd.triscape.mxs +application/vnd.trueapp +application/vnd.truedoc +application/vnd.ufdl +application/vnd.uplanet.alert +application/vnd.uplanet.alert-wbxml +application/vnd.uplanet.bearer-choice +application/vnd.uplanet.bearer-choice-wbxml +application/vnd.uplanet.cacheop +application/vnd.uplanet.cacheop-wbxml +application/vnd.uplanet.channel +application/vnd.uplanet.channel-wbxml +application/vnd.uplanet.list +application/vnd.uplanet.list-wbxml +application/vnd.uplanet.listcmd +application/vnd.uplanet.listcmd-wbxml +application/vnd.uplanet.signal +application/vnd.vcx +application/vnd.vectorworks +application/vnd.vidsoft.vidconference +application/vnd.visio +application/vnd.visionary +application/vnd.vividence.scriptfile +application/vnd.vsf +application/vnd.wap.sic +application/vnd.wap.slc +application/vnd.wap.wbxml wbxml +application/vnd.wap.wmlc wmlc +application/vnd.wap.wmlscriptc wmlsc +application/vnd.webturbo +application/vnd.wrq-hp3000-labelled +application/vnd.wt.stf +application/vnd.wv.csp+wbxml +application/vnd.xara +application/vnd.xfdl +application/vnd.yamaha.hv-dic +application/vnd.yamaha.hv-script +application/vnd.yamaha.hv-voice +application/vnd.yellowriver-custom-menu +application/voicexml+xml vxml +application/watcherinfo+xml +application/whoispp-query +application/whoispp-response +application/wita +application/wordperfect5.1 +application/x-bcpio bcpio +application/x-cdlink vcd +application/x-chess-pgn pgn +application/x-compress +application/x-cpio cpio +application/x-csh csh +application/x-director dcr dir dxr +application/x-dvi dvi +application/x-futuresplash spl +application/x-gtar gtar +application/x-gzip +application/x-hdf hdf +application/x-javascript js +application/x-koan skp skd skt skm +application/x-latex latex +application/x-netcdf nc cdf +application/x-sh sh +application/x-shar shar +application/x-shockwave-flash swf +application/x-stuffit sit +application/x-sv4cpio sv4cpio +application/x-sv4crc sv4crc +application/x-tar tar +application/x-tcl tcl +application/x-tex tex +application/x-texinfo texinfo texi +application/x-troff t tr roff +application/x-troff-man man +application/x-troff-me me +application/x-troff-ms ms +application/x-ustar ustar +application/x-wais-source src +application/x400-bp +application/xhtml+xml xhtml xht +application/xslt+xml xslt +application/xml xml xsl +application/xml-dtd dtd +application/xml-external-parsed-entity +application/zip zip +audio/32kadpcm +audio/amr +audio/amr-wb +audio/basic au snd +audio/cn +audio/dat12 +audio/dsr-es201108 +audio/dvi4 +audio/evrc +audio/evrc0 +audio/g722 +audio/g.722.1 +audio/g723 +audio/g726-16 +audio/g726-24 +audio/g726-32 +audio/g726-40 +audio/g728 +audio/g729 +audio/g729D +audio/g729E +audio/gsm +audio/gsm-efr +audio/l8 +audio/l16 +audio/l20 +audio/l24 +audio/lpc +audio/midi mid midi kar +audio/mpa +audio/mpa-robust +audio/mp4a-latm +audio/mpeg mpga mp2 mp3 +audio/parityfec +audio/pcma +audio/pcmu +audio/prs.sid +audio/qcelp +audio/red +audio/smv +audio/smv0 +audio/telephone-event +audio/tone +audio/vdvi +audio/vnd.3gpp.iufp +audio/vnd.cisco.nse +audio/vnd.cns.anp1 +audio/vnd.cns.inf1 +audio/vnd.digital-winds +audio/vnd.everad.plj +audio/vnd.lucent.voice +audio/vnd.nortel.vbk +audio/vnd.nuera.ecelp4800 +audio/vnd.nuera.ecelp7470 +audio/vnd.nuera.ecelp9600 +audio/vnd.octel.sbc +audio/vnd.qcelp +audio/vnd.rhetorex.32kadpcm +audio/vnd.vmx.cvsd +audio/x-aiff aif aiff aifc +audio/x-alaw-basic +audio/x-mpegurl m3u +audio/x-pn-realaudio ram ra +audio/x-pn-realaudio-plugin +application/vnd.rn-realmedia rm +audio/x-wav wav +chemical/x-pdb pdb +chemical/x-xyz xyz +image/bmp bmp +image/cgm cgm +image/g3fax +image/gif gif +image/ief ief +image/jpeg jpeg jpg jpe +image/naplps +image/png png +image/prs.btif +image/prs.pti +image/svg+xml svg +image/t38 +image/tiff tiff tif +image/tiff-fx +image/vnd.cns.inf2 +image/vnd.djvu djvu djv +image/vnd.dwg +image/vnd.dxf +image/vnd.fastbidsheet +image/vnd.fpx +image/vnd.fst +image/vnd.fujixerox.edmics-mmr +image/vnd.fujixerox.edmics-rlc +image/vnd.globalgraphics.pgb +image/vnd.mix +image/vnd.ms-modi +image/vnd.net-fpx +image/vnd.svf +image/vnd.wap.wbmp wbmp +image/vnd.xiff +image/x-cmu-raster ras +image/x-icon ico +image/x-portable-anymap pnm +image/x-portable-bitmap pbm +image/x-portable-graymap pgm +image/x-portable-pixmap ppm +image/x-rgb rgb +image/x-xbitmap xbm +image/x-xpixmap xpm +image/x-xwindowdump xwd +message/delivery-status +message/disposition-notification +message/external-body +message/http +message/news +message/partial +message/rfc822 +message/s-http +message/sip +message/sipfrag +model/iges igs iges +model/mesh msh mesh silo +model/vnd.dwf +model/vnd.flatland.3dml +model/vnd.gdl +model/vnd.gs-gdl +model/vnd.gtw +model/vnd.mts +model/vnd.parasolid.transmit.binary +model/vnd.parasolid.transmit.text +model/vnd.vtu +model/vrml wrl vrml +multipart/alternative +multipart/appledouble +multipart/byteranges +multipart/digest +multipart/encrypted +multipart/form-data +multipart/header-set +multipart/mixed +multipart/parallel +multipart/related +multipart/report +multipart/signed +multipart/voice-message +text/calendar ics ifb +text/css css +text/directory +text/enriched +text/html html htm +text/parityfec +text/plain asc txt +text/prs.lines.tag +text/rfc822-headers +text/richtext rtx +text/rtf rtf +text/sgml sgml sgm +text/t140 +text/tab-separated-values tsv +text/uri-list +text/vnd.abc +text/vnd.curl +text/vnd.dmclientscript +text/vnd.fly +text/vnd.fmi.flexstor +text/vnd.in3d.3dml +text/vnd.in3d.spot +text/vnd.iptc.nitf +text/vnd.iptc.newsml +text/vnd.latex-z +text/vnd.motorola.reflex +text/vnd.ms-mediapackage +text/vnd.net2phone.commcenter.command +text/vnd.sun.j2me.app-descriptor +text/vnd.wap.si +text/vnd.wap.sl +text/vnd.wap.wml wml +text/vnd.wap.wmlscript wmls +text/x-setext etx +text/xml +text/xml-external-parsed-entity +video/bmpeg +video/bt656 +video/celb +video/dv +video/h261 +video/h263 +video/h263-1998 +video/h263-2000 +video/jpeg +video/mp1s +video/mp2p +video/mp2t +video/mp4v-es +video/mpv +video/mpeg mpeg mpg mpe +video/nv +video/parityfec +video/pointer +video/quicktime qt mov +video/smpte292m +video/vnd.fvt +video/vnd.motorola.video +video/vnd.motorola.videop +video/vnd.mpegurl mxu m4u +video/vnd.nokia.interleaved-multimedia +video/vnd.objectvideo +video/vnd.vivo +video/x-msvideo avi +video/x-sgi-movie movie +x-conference/x-cooltalk ice diff --git a/sandbox/slaws/httpserver.php/htdocs/AlertDisplay.php b/sandbox/slaws/httpserver.php/htdocs/AlertDisplay.php new file mode 100644 index 0000000000..94b5352818 --- /dev/null +++ b/sandbox/slaws/httpserver.php/htdocs/AlertDisplay.php @@ -0,0 +1,274 @@ +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<?php +include 'SCA/SCA.php'; + +/** + * @service + * @binding.restrpc + * @types http://tuscany.apache.org/sca/samples/aggregator/types ./Alerts.xsd + */ +class AlertDisplay +{ + /** + * @reference + * @binding.soap ./Alerts.wsdl + */ + public $alert_service; + + /** + * @reference + * @binding.soap ./AlertsSources.wsdl + */ + public $alert_sources_service; + + /** + * @return string + */ + public function getAlertsHTMLTable() + { + $xmldas = SDO_DAS_XML::create("./Alerts.xsd"); + $doc = $xmldas->loadFile("./Cached_Alerts.xml"); + $cached_alerts = $doc->getRootDataObject(); + + // Use the alertService reference + $request = $this->alert_service->createDataObject("http://tuscany.apache.org/sca/samples/aggregator/service", + "getAllNewAlerts"); + $request->parm = "AString"; + $new_alerts = $this->alert_service->getAllNewAlerts($request); + + foreach($new_alerts->parm->Alert as $alert){ + $new_alert = $cached_alerts->createDataObject('Alert'); + $new_alert->Title = $alert->Title; + $new_alert->Summary = $alert->Summary; + $new_alert->Address = $alert->Address; + $new_alert->Date = $alert->Date; + $new_alert->SourceId = $alert->SourceId; + $new_alert->Unread = true; + } + + $return_table = "<TABLE border=\'0\'>"; + $alert_id_number = 0; + foreach($cached_alerts->Alert as $alert){ + $alert->Id = "alert_" . $alert_id_number; + $title = substr($alert->Title,0,80); + $summary = substr($alert->Summary,0,40); + $unread_string = $alert->Unread ? "unread_title" : "read_title"; + $return_row = <<<ALERTROW +<TR class="source_$alert->SourceId clickable" onclick="displayAlert('$alert->Address', '')"> + <TD> + <SPAN id="$alert->Id" class="$unread_string">$title</SPAN> + <SPAN class="summary"> - $summary ...</SPAN> + </TD> + <TD> + $alert->Date + </TD> +</TR> +ALERTROW; + $return_table = $return_table . $return_row; + $alert_id_number += 1; + } + $return_table = $return_table . "</TABLE>"; + + // as php is one shot we have to save away the alerts we want to cache + $xmldas->saveFile($doc, "./Cached_Alerts.xml"); + + return $return_table; + } + + /** + * @param string $alert_id + * @return string + */ + public function readAlert($alert_id) + { + $xmldas = SDO_DAS_XML::create("./Alerter.xsd"); + $doc = $xmldas->loadFile("./Cached_Alerts.xml"); + $cached_alerts = $doc->getRootDataObject(); + + $return_summary = ""; + + foreach($cached_alerts->alert as $alert){ + if (strcmp($alert->Id,$alert_Id) == 0){ + SCA::$logger->log("Match"); + $alert->Unread = false; + $return_summary = "<PRE>" . $alert->Summary . "</PRE>"; + } + } + + // as php is one shot we have to save away the alerts we want to cache + $xmldas->saveFile($doc, "./Cached_Alerts.xml"); + + return $return_summary; + } + + /** + * @return string + */ + public function getAlertSourcesHTMLTable() + { + $request = $this->alert_sources_service->createDataObject("http://tuscany.apache.org/sca/samples/aggregator/sources", + "getAlertSources"); + $request->parm = "AString"; + $alert_sources = $this->alert_sources_service->getAlertSources($request); + + $return_table = "<TABLE border='0'>\n"; + + $no_of_sources = 0; + + foreach ($alert_sources->parm->Source as $alert_source){ + $source_id = $alert_source->Id; + $return_row = <<<SOURCEROW +<TR CLASS="source_$source_id" > + <TD CLASS="clickable" ONCLICK="displayAlert('$alert_source->Address', '')"> + <IMG SRC="rss.png"/> $alert_source->Name + </TD> + <TD CLASS="clickable link" ONCLICK="showEditSource('$source_id')">Edit</TD> + <TD CLASS="clickable link" ONCLICK="deleteSource('$source_id')">Delete</TD> +</TR> +<TR ID="edit_source_$source_id" CLASS="hidden source_$source_id"> + <TD COLSPAN="3"> + <TABLE CLASS="sourceDetailsTable"> + <TR> + <TD>Source name:</TD> + <TD> + <INPUT ID="source_{$source_id}_name" TYPE="TEXT" SIZE="50" VALUE="$alert_source->Name"/> + </TD> + </TR> + <TR> + <TD>Source address:</TD> + <TD> + <INPUT ID="source_{$source_id}_address" TYPE="TEXT" SIZE="50" VALUE="$alert_source->Address"/> + </TD> + </TR> + <TR> + <TD> + <INPUT ID="source_{$source_id}_type" TYPE="HIDDEN" VALUE="$source_id"/> + <INPUT TYPE="BUTTON" VALUE="Update" ONCLICK="updateSource('$source_id')"/> + <INPUT TYPE="BUTTON" VALUE="Cancel" ONCLICK="hideEditSource('$source_id')"/> + </TD> + </TR> + </TABLE> + </TD> +</TR> +SOURCEROW; + $return_table = $return_table . $return_row; + $no_of_sources = $no_of_sources + 1; + } + + $source_id = $no_of_sources + 1; + + $return_row = <<<ADDROW +<TR CLASS="source_$source_id"> + <TD COLSPAN="4" CLASS="clickable link" ONCLICK="showAddNewSource('$source_id')">Add new Alert Source</TD> +</TR> +<TR ID="add_source_$source_id" CLASS="hidden source_$source_id"> + <TD COLSPAN="4"> + <TABLE CLASS="sourceDetailsTable"> + <TR> + <TD>Source name:</TD> + <TD> + <INPUT ID="source_{$source_id}_name" TYPE="TEXT" SIZE="50"> + </TD> + </TR> + <TR> + <TD>Source address:</TD> + <TD> + <INPUT ID="source_{$source_id}_address" TYPE="TEXT" SIZE="50"> + </TD> + </TR> + <TR> + <TD>Source type:</TD> + <TD> + <SELECT ID="source_{$source_id}_type" ONCHANGE="showSourceType('$source_id')"> + <OPTION value="rss" selected="selected">RSS/Atom feed</OPTION>" + </SELECT> + </TD> + </TR> + <TR ID="add_rss_source"> + <TD COLSPAN="2"> + <TABLE CLASS="sourceDetailsTable"> + <TR> + <TD>Feed address:</TD> + <TD> + <INPUT ID="source_{$source_id}_feedAddress" TYPE="TEXT" SIZE="50"/> + </TD> + </TR> + </TABLE> + </TD> + </TR> + <TR> + <TD> + <INPUT TYPE="BUTTON" VALUE="Add" ONCLICK="addSource('$source_id')"> + <INPUT TYPE="BUTTON" VALUE="Cancel" ONCLICK="hideAddNewSource('$source_id')"> + </TD> + </TR> + </TABLE> + </TD> +</TR> +ADDROW; + + $return_table = $return_table . $return_row; + $return_table = $return_table . "</TABLE>\n"; + return $return_table; + } + + /** + * @param integer $source_id + * @return string + */ + public function deleteAlertSource($source_id){ + $this->alert_sources_service->removeAlertSource($source_id); + } + + /** + * @param SingleSourceType $alert_source http://tuscany.apache.org/sca/samples/aggregator/types + */ + public function addAlertSource($alert_source){ + $request = $this->alert_sources_service->createDataObject("http://tuscany.apache.org/sca/samples/aggregator/sources", + "addAlertSource"); + $source = $request->createDataObject("parm"); + + $source->Name = $alert_source->Name; + $source->Address = $alert_source->Address; + $source->Id = $alert_source->Id; + $source->Type = $alert_source->Type; + + $this->alert_sources_service->addAlertSource($request); + } + + /** + * @param SourceType $alert_source http://tuscany.apache.org/sca/samples/aggregator/types + */ + public function updateAlertSource($alert_source){ + $this->alert_sources_service->updateAlertSource($alert_source); + } +} + +/* Some debugging lines +ob_start(); +print_r( $new_alerts ); +$debug = ob_get_contents(); +ob_end_clean(); +SCA::$logger->log($debug); +*/ +?> + + + diff --git a/sandbox/slaws/httpserver.php/htdocs/AlertDisplayJson.php b/sandbox/slaws/httpserver.php/htdocs/AlertDisplayJson.php new file mode 100644 index 0000000000..5953f02209 --- /dev/null +++ b/sandbox/slaws/httpserver.php/htdocs/AlertDisplayJson.php @@ -0,0 +1,56 @@ +<?php +/* ++----------------------------------------------------------------------+ +| Copyright IBM Corporation 2007. | +| All Rights Reserved. | ++----------------------------------------------------------------------+ +| | +| Licensed under the Apache License, Version 2.0 (the "License"); you | +| may not use this file except in compliance with the License. You may | +| obtain a copy of the License at | +| http://www.apache.org/licenses/LICENSE-2.0 | +| | +| Unless required by applicable law or agreed to in writing, software | +| distributed under the License is distributed on an "AS IS" BASIS, | +| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | +| implied. See the License for the specific language governing | +| permissions and limitations under the License. | ++----------------------------------------------------------------------+ +| Author: SL | ++----------------------------------------------------------------------+ +$Id: ContactEmailService.php,v 1.1.2.1 2007/04/27 11:17:45 slaws Exp $ +*/ + +include 'SCA/SCA.php'; + +/** + * Service for sending emails + * + * @service + * @binding.restrpc + */ +class AlertDisplayJson { + + /** + * @reference + * @binding.jsonrpc C:\simon\Projects\Tuscany\service.smd + */ + public $alert_service; + + + + /** + * Send a simple text email with the options of using short names for addresses. + * + * @return string + */ + public function getAlerts() { + + $alerts = $this->alert_service->getAllNewAlerts("SomeString"); + + return $alerts; + + } +} + +?> diff --git a/sandbox/slaws/httpserver.php/htdocs/Alerter.xsd b/sandbox/slaws/httpserver.php/htdocs/Alerter.xsd new file mode 100644 index 0000000000..58b9982d38 --- /dev/null +++ b/sandbox/slaws/httpserver.php/htdocs/Alerter.xsd @@ -0,0 +1,74 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<schema targetNamespace="http://tuscany.apache.org/samples/alerter"
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:ns="http://tuscany.apache.org/samples/alerter"> + <element name="alerts" type="ns:alerts"/>
+ + <complexType name="alert"> + <sequence> + <element name="title" type="string"/>
+ <element name="summary" type="string"/> + <element name="address" type="anyURI" maxOccurs="1" minOccurs="1"/> + <element name="date" type="string" maxOccurs="1" minOccurs="1"/> + </sequence>
+ <attribute name="sourceid" type="string" use="optional"/>
+ <attribute name="unread" type="boolean" use="optional"/>
+ <attribute name="id" type="string" use="optional"/>
+ </complexType> + + <complexType name="alerts"> + <sequence> + <element name="alert" type="ns:alert" maxOccurs="unbounded" minOccurs="0" /> + </sequence>
+ </complexType>
+ + <element name="config" type="ns:config"/>
+ <element name="source" type="ns:source"/>
+ + <complexType name="source"> + <sequence> + <element name="name" type="string" maxOccurs="1" minOccurs="1"/>
+ <element name="address" type="anyURI" maxOccurs="1" minOccurs="1"/>
+ <element name="lastChecked" type="string" maxOccurs="1" minOccurs="0"/>
+ <element name="feedAddress" type="string" maxOccurs="1" minOccurs="0"/>
+ <element name="popServer" type="string" maxOccurs="1" minOccurs="0"/>
+ <element name="popUsername" type="string" maxOccurs="1" minOccurs="0"/>
+ <element name="popPassword" type="string" maxOccurs="1" minOccurs="0"/>
+ <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> + </sequence>
+ <attribute name="id" type="string" use="optional"/>
+ <attribute name="type" use="required">
+ <simpleType>
+ <restriction base="string">
+ <enumeration value="rss"/>
+ <enumeration value="pop"/> + <enumeration value="nntp"/> + </restriction>
+ </simpleType>
+ </attribute> + </complexType> + + <complexType name="config"> + <sequence> + <element name="source" type="ns:source" maxOccurs="unbounded" minOccurs="0"/>
+ </sequence>
+ </complexType> +</schema>
\ No newline at end of file diff --git a/sandbox/slaws/httpserver.php/htdocs/Alerts.wsdl b/sandbox/slaws/httpserver.php/htdocs/Alerts.wsdl new file mode 100644 index 0000000000..9150abbaf4 --- /dev/null +++ b/sandbox/slaws/httpserver.php/htdocs/Alerts.wsdl @@ -0,0 +1,88 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<wsdl:definitions targetNamespace="http://tuscany.apache.org/sca/samples/aggregator/service" + xmlns:tns="http://tuscany.apache.org/sca/samples/aggregator/service" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + name="Alerter"> + + <wsdl:types> + <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" + targetNamespace="http://tuscany.apache.org/sca/samples/aggregator/service" + xmlns:alerter="http://tuscany.apache.org/sca/samples/aggregator/types" + elementFormDefault="qualified"> + + <xsd:import namespace="http://tuscany.apache.org/sca/samples/aggregator/types" + schemaLocation="Alerts.xsd" /> + + <element name="getAllNewAlerts"> + <xsd:complexType> + <sequence> + <element name="parm" type="string" /> + </sequence> + </xsd:complexType> + </element> + + <element name="getAllNewAlertsResponse"> + <complexType> + <sequence> + <element name="parm" type="alerter:AlertsType" /> + </sequence> + </complexType> + </element> + + </xsd:schema> + </wsdl:types> + + <wsdl:message name="GetAllNewAlertsRequest"> + <wsdl:part element="tns:getAllNewAlerts" name="parameters" /> + </wsdl:message> + <wsdl:message name="GetAllNewAlertsResponse"> + <wsdl:part element="tns:getAllNewAlertsResponse" name="parameters" /> + </wsdl:message> + + <wsdl:portType name="AlertsPortType"> + <wsdl:operation name="getAllNewAlerts"> + <wsdl:input message="tns:GetAllNewAlertsRequest" name="GetAllNewAlertsRequestMsg" /> + <wsdl:output message="tns:GetAllNewAlertsResponse" name="GetAllNewAlertsResponseMsg" /> + </wsdl:operation> + </wsdl:portType> + + <wsdl:binding name="AlertsBinding" type="tns:AlertsPortType"> + <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> + <wsdl:operation name="getAllNewAlerts"> + <wsdlsoap:operation soapAction="" /> + <wsdl:input name="GetAllNewAlertsRequestMsg"> + <wsdlsoap:body use="literal" /> + </wsdl:input> + <wsdl:output name="GetAllNewAlertsResponseMsg"> + <wsdlsoap:body use="literal" /> + </wsdl:output> + </wsdl:operation> + </wsdl:binding> + + <wsdl:service name="AlertsService"> + <wsdl:port name="AlertsPort" binding="tns:AlertsBinding"> + <wsdlsoap:address location="http://localhost:8080/services/AlertsServiceWebServiceBinding" /> + </wsdl:port> + </wsdl:service> + +</wsdl:definitions> diff --git a/sandbox/slaws/httpserver.php/htdocs/Alerts.xsd b/sandbox/slaws/httpserver.php/htdocs/Alerts.xsd new file mode 100644 index 0000000000..1e80da0487 --- /dev/null +++ b/sandbox/slaws/httpserver.php/htdocs/Alerts.xsd @@ -0,0 +1,80 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<schema targetNamespace="http://tuscany.apache.org/sca/samples/aggregator/types" + xmlns="http://www.w3.org/2001/XMLSchema" + xmlns:ns="http://tuscany.apache.org/sca/samples/aggregator/types"> + <element name="Alerts" type="ns:AlertsType"/> + + <complexType name="AlertType"> + <sequence> + <element name="Title" type="string"/> + <element name="Summary" type="string"/> + <element name="Address" type="anyURI" maxOccurs="1" minOccurs="1"/> + <element name="Date" type="string" maxOccurs="1" minOccurs="1"/> + </sequence> + <attribute name="SourceId" type="string" use="optional"/> + <attribute name="Unread" type="boolean" use="optional"/> + <attribute name="Id" type="string" use="optional"/> + </complexType> + + <complexType name="AlertsType"> + <sequence> + <element name="Alert" type="ns:AlertType" maxOccurs="unbounded" minOccurs="0" /> + </sequence> + </complexType> + + <complexType name="SourceType"> + <sequence> + <element name="Name" type="string" maxOccurs="1" minOccurs="1"/> + <element name="Address" type="anyURI" maxOccurs="1" minOccurs="1"/> + <element name="LastChecked" type="string" maxOccurs="1" minOccurs="0"/> + <element name="FeedAddress" type="string" maxOccurs="1" minOccurs="0"/> + <element name="PopServer" type="string" maxOccurs="1" minOccurs="0"/> + <element name="PopUsername" type="string" maxOccurs="1" minOccurs="0"/> + <element name="PopPassword" type="string" maxOccurs="1" minOccurs="0"/> + <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> + </sequence> + <attribute name="Id" type="string" use="optional"/> + <attribute name="Type" use="required"> + <simpleType> + <restriction base="string"> + <enumeration value="rss"/> + <enumeration value="pop"/> + <enumeration value="nntp"/> + </restriction> + </simpleType> + </attribute> + </complexType> + + <complexType name="ConfigType"> + <sequence> + <element name="Source" type="ns:SourceType" maxOccurs="unbounded" minOccurs="0"/> + </sequence> + </complexType> + + <complexType name="SingleSourceType"> + <sequence> + <element name="Source" type="ns:SourceType"/> + </sequence> + </complexType> + + <element name="Config" type="ns:ConfigType"/> + <element name="Source" type="ns:SourceType"/> +</schema>
\ No newline at end of file diff --git a/sandbox/slaws/httpserver.php/htdocs/AlertsSources.wsdl b/sandbox/slaws/httpserver.php/htdocs/AlertsSources.wsdl new file mode 100644 index 0000000000..82422c82ef --- /dev/null +++ b/sandbox/slaws/httpserver.php/htdocs/AlertsSources.wsdl @@ -0,0 +1,124 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<wsdl:definitions targetNamespace="http://tuscany.apache.org/sca/samples/aggregator/sources" + xmlns:tns="http://tuscany.apache.org/sca/samples/aggregator/sources" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + name="Alerter"> + + <wsdl:types> + <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" + targetNamespace="http://tuscany.apache.org/sca/samples/aggregator/sources" + xmlns:alerter="http://tuscany.apache.org/sca/samples/aggregator/types" + elementFormDefault="qualified"> + + <xsd:import namespace="http://tuscany.apache.org/sca/samples/aggregator/types" + schemaLocation="Alerts.xsd" /> + + <element name="getAlertSources"> + <xsd:complexType> + <sequence> + <element name="parm" type="string" /> + </sequence> + </xsd:complexType> + </element> + + <element name="getAlertSourcesResponse"> + <complexType> + <sequence> + <element name="parm" type="alerter:ConfigType" /> + </sequence> + </complexType> + </element> + + <element name="addAlertSource"> + <xsd:complexType> + <sequence> + <element name="parm" type="alerter:SourceType"/> + </sequence> + </xsd:complexType> + </element> + + <element name="addAlertSourceResponse"> + <complexType> + <sequence> + <element name="parm" type="string" /> + </sequence> + </complexType> + </element> + + </xsd:schema> + </wsdl:types> + + <wsdl:message name="GetAlertSourcesRequest"> + <wsdl:part element="tns:getAlertSources" name="parameters" /> + </wsdl:message> + <wsdl:message name="GetAlertSourcesResponse"> + <wsdl:part element="tns:getAlertSourcesResponse" name="parameters" /> + </wsdl:message> + + <wsdl:message name="AddAlertSourceRequest"> + <wsdl:part element="tns:addAlertSource" name="parameters" /> + </wsdl:message> + <wsdl:message name="AddAlertSourceResponse"> + <wsdl:part element="tns:addAlertSourceResponse" name="parameters" /> + </wsdl:message> + + <wsdl:portType name="AlertsSourcesPortType"> + <wsdl:operation name="getAlertSources"> + <wsdl:input message="tns:GetAlertSourcesRequest" name="GetAlertSourcesRequestMsg" /> + <wsdl:output message="tns:GetAlertSourcesResponse" name="GetAlertSourcesResponseMsg" /> + </wsdl:operation> + <wsdl:operation name="addAlertSource"> + <wsdl:input message="tns:AddAlertSourceRequest" name="AddAlertSourceRequestMsg" /> + <wsdl:output message="tns:AddAlertSourceResponse" name="AddAlertSourceResponseMsg" /> + </wsdl:operation> + </wsdl:portType> + + <wsdl:binding name="AlertsSourcesBinding" type="tns:AlertsSourcesPortType"> + <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> + <wsdl:operation name="getAlertSources"> + <wsdlsoap:operation soapAction="" /> + <wsdl:input name="GetAlertSourcesRequestMsg"> + <wsdlsoap:body use="literal" /> + </wsdl:input> + <wsdl:output name="GetAlertSourcesResponseMsg"> + <wsdlsoap:body use="literal" /> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="addAlertSource"> + <wsdlsoap:operation soapAction="" /> + <wsdl:input name="AddAlertSourceRequestMsg"> + <wsdlsoap:body use="literal" /> + </wsdl:input> + <wsdl:output name="AddAlertSourceResponseMsg"> + <wsdlsoap:body use="literal" /> + </wsdl:output> + </wsdl:operation> + </wsdl:binding> + + <wsdl:service name="AlertsSourcesService"> + <wsdl:port name="AlertsSourcesPort" binding="tns:AlertsSourcesBinding"> + <wsdlsoap:address location="http://localhost:8080/services/AlertsSourcesServiceWebServiceBinding" /> + </wsdl:port> + </wsdl:service> + +</wsdl:definitions> diff --git a/sandbox/slaws/httpserver.php/htdocs/Cached_Alerts.xml b/sandbox/slaws/httpserver.php/htdocs/Cached_Alerts.xml new file mode 100644 index 0000000000..e208c8d9e4 --- /dev/null +++ b/sandbox/slaws/httpserver.php/htdocs/Cached_Alerts.xml @@ -0,0 +1,2 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Alerts xmlns="http://tuscany.apache.org/sca/samples/aggregator/types" xmlns:tns="http://tuscany.apache.org/sca/samples/aggregator/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"></Alerts> diff --git a/sandbox/slaws/httpserver.php/htdocs/index.html b/sandbox/slaws/httpserver.php/htdocs/index.html new file mode 100644 index 0000000000..f952f08bc8 --- /dev/null +++ b/sandbox/slaws/httpserver.php/htdocs/index.html @@ -0,0 +1,280 @@ +<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<HTML>
+<HEAD>
+ <TITLE>Apache Tuscany Feed Aggregator Sample</TITLE>
+ <link REL="stylesheet" TYPE="text/css" href="style.css">
+</HEAD>
+
+<BODY ONLOAD="getSources()">
+<script type="text/javascript">
+function getXMLHTTP()
+{
+ var xmlHttp;
+ try
+ {
+ // Firefox, Opera 8.0+, Safari
+ xmlHttp=new XMLHttpRequest();
+ }
+ catch (e)
+ {
+ // Internet Explorer
+ try
+ {
+ xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
+ }
+ catch (e)
+ {
+ try
+ {
+ xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
+ }
+ catch (e)
+ {
+ alert("Your browser does not support AJAX!");
+ return false;
+ }
+ }
+ }
+ return xmlHttp;
+}
+
+var callIsRunning = false;
+
+function getAlerts()
+{
+ var xmlHttp = getXMLHTTP();
+ xmlHttp.onreadystatechange=function()
+ {
+ var refr = document.getElementById("refresh");
+ if(xmlHttp.readyState<4)
+ {
+ callIsRunning = true;
+ refr.innerHTML="<SPAN>Updating...</SPAN>";
+ }
+ if(xmlHttp.readyState==4)
+ {
+ callIsRunning = false;
+ refr.innerHTML="<SPAN CLASS=\"clickable link\" ONCLICK=\"getAlerts()\">Refresh</SPAN>";
+ document.getElementById("alertTable").innerHTML=xmlHttp.responseText;
+ }
+ }
+
+ if(!callIsRunning)
+ {
+ xmlHttp.open("GET","AlertDisplay.php/getAlertsHTMLTable",true);
+ xmlHttp.send(null);
+ }
+
+ // Call this function again after x minutes
+ //setTimeout("getAlerts();", 5*60000);
+}
+
+function displayAlert(url, alertid)
+{
+ if(alertid=="")
+ {
+ document.getElementById("alertData").innerHTML="<IFRAME CLASS=\"alert_data\" SRC=\""+url+"\"/>";
+ window.location="#data";
+ return;
+ }
+
+ document.getElementById(alertid).className="read_title";
+
+ var xmlHttp = getXMLHTTP()
+ xmlHttp.onreadystatechange=function()
+ {
+ if(xmlHttp.readyState==4)
+ {
+ if(xmlHttp.responseText=="")
+ {
+ document.getElementById("alertData").innerHTML="<IFRAME CLASS=\"alert_data\" SRC=\""+url+"\"/>";
+ }
+ else
+ {
+ document.getElementById("alertData").innerHTML=xmlHttp.responseText;
+ }
+ window.location="#data";
+ }
+ }
+
+ xmlHttp.open("GET","AlertDisplay.php/readAlert?alertID="+alertid,true);
+ xmlHttp.send(null);
+}
+
+function getSources()
+{
+ var xmlHttp = getXMLHTTP()
+ xmlHttp.onreadystatechange=function()
+ {
+ var refreshSources = document.getElementById("refreshSources");
+ var refresh = document.getElementById("refresh");
+ if(xmlHttp.readyState<4)
+ {
+ refreshSources.innerHTML=" (Updating...)";
+ refresh.innerHTML="<SPAN>Updating...</SPAN>";
+ }
+ if(xmlHttp.readyState==4)
+ {
+ refreshSources.innerHTML="";
+ document.getElementById("sourcesTable").innerHTML=xmlHttp.responseText;
+ getAlerts();
+ }
+ }
+ xmlHttp.open("GET","AlertDisplay.php/getAlertSourcesHTMLTable",true);
+ xmlHttp.send(null);
+}
+
+function showEditSource(sourceid)
+{
+ document.getElementById("edit_source_"+sourceid).className = "source_"+sourceid;
+}
+
+function hideEditSource(sourceid)
+{
+ document.getElementById("edit_source_"+sourceid).className = "hidden source_"+sourceid;
+}
+
+function updateSource(sourceid)
+{
+ hideEditSource(sourceid);
+ var type = document.getElementById("source_"+sourceid+"_type").value;
+ var sourceXML = constructSourceXML(sourceid, type);
+
+ sendSource("AlertDisplay.php/updateAlertSource", sourceXML);
+
+}
+
+function sendSource(url, sourceXML)
+{
+ var xmlHttp = getXMLHTTP()
+ xmlHttp.onreadystatechange=function()
+ {
+ var refreshSources = document.getElementById("refreshSources");
+ var refresh = document.getElementById("refresh");
+ if(xmlHttp.readyState<4)
+ {
+ refreshSources.innerHTML=" (Updating...)";
+ refresh.innerHTML="<SPAN>Updating...</SPAN>";
+ }
+ if(xmlHttp.readyState==4)
+ {
+ // getSources();
+ }
+ }
+ xmlHttp.open("POST",url,true);
+ xmlHttp.send(sourceXML);
+
+}
+
+function deleteSource(sourceid)
+{
+ var xmlHttp = getXMLHTTP()
+ xmlHttp.onreadystatechange=function()
+ {
+ if(xmlHttp.readyState==4)
+ {
+ getSources();
+ document.getElementById("alertData").innerHTML=""
+ }
+ }
+ xmlHttp.open("GET","AlertDisplay.php/deleteAlertSource?sourceId="+sourceid,true);
+ xmlHttp.send(null);
+}
+
+function showAddNewSource(sourceid)
+{
+ document.getElementById("add_source_"+sourceid).className = "source_"+sourceid;
+}
+
+function hideAddNewSource(sourceid)
+{
+ document.getElementById("add_source_"+sourceid).className = "hidden source_"+sourceid;
+}
+
+function showSourceType(sourceid)
+{
+ var typeElem = document.getElementById("source_"+sourceid+"_type");
+ var type = typeElem.options[typeElem.selectedIndex].value;
+
+ if(type=="rss")
+ {
+ document.getElementById("add_rss_source").className = "";
+ document.getElementById("add_pop_source").className = "hidden";
+ }
+ else if(type=="pop")
+ {
+ document.getElementById("add_rss_source").className = "hidden";
+ document.getElementById("add_pop_source").className = "";
+ }
+}
+
+function addSource(sourceid)
+{
+ hideAddNewSource(sourceid);
+
+ var typeElem = document.getElementById("source_"+sourceid+"_type");
+ var type = typeElem.options[typeElem.selectedIndex].value;
+ var sourceXML = constructSourceXML(sourceid, type);
+
+ sendSource("AlertDisplay.php/addAlertSource", sourceXML);
+
+}
+
+function constructSourceXML(sourceid, type)
+{
+ var name = document.getElementById("source_"+sourceid+"_name").value;
+ var address = document.getElementById("source_"+sourceid+"_address").value;
+
+ var sourceXML = "<Source xmlns=\"http://tuscany.apache.org/sca/samples/aggregator/types\" Type=\""+type+"\" Id=\""+sourceid+"\">";
+ sourceXML += "<Name>"+name+"</Name>";
+ sourceXML += "<Address>"+address+"</Address>";
+
+ if(type=="rss")
+ {
+ var feedAddress = document.getElementById("source_"+sourceid+"_feedAddress").value;
+ sourceXML += "<FeedAddress>"+feedAddress+"</FeedAddress>";
+ }
+ else if(type=="pop")
+ {
+ var popServer = document.getElementById("source_"+sourceid+"_popServer").value;
+ sourceXML += "<PopServer>"+popServer+"</PopServer>";
+ var popUsername = document.getElementById("source_"+sourceid+"_popUsername").value;
+ sourceXML += "<PopUsername>"+popUsername+"</PopUsername>";
+ var popPassword = document.getElementById("source_"+sourceid+"_popPassword").value;
+ sourceXML += "<PopPassword>"+popPassword+"</PopPassword>";
+ }
+ sourceXML += "</Source>";
+
+ return sourceXML;
+}
+</script>
+<H1 ID="top">Apache Tuscany Alert Aggregator Sample</H1>
+<P>Alert Sources<SPAN ID="refreshSources"></SPAN>:</P>
+<DIV ID="sourcesTable"></DIV>
+<P>Recent Alerts (<SPAN ID="refresh"><SPAN CLASS="clickable link" ONCLICK="getAlerts()">Refresh</SPAN></SPAN>):</P
+<DIV ID="alertTable"></DIV>
+<HR></HR>
+<P><A ID="data" HREF="#top">Back to top</A></P>
+<DIV ID="alertData"></DIV>
+
+</BODY>
+</HTML>
+
diff --git a/sandbox/slaws/httpserver.php/htdocs/phpinfo.php b/sandbox/slaws/httpserver.php/htdocs/phpinfo.php new file mode 100644 index 0000000000..1cf8044fe2 --- /dev/null +++ b/sandbox/slaws/httpserver.php/htdocs/phpinfo.php @@ -0,0 +1,5 @@ +<?php
+phpinfo();
+?>
+
+
\ No newline at end of file diff --git a/sandbox/slaws/httpserver.php/htdocs/pop.png b/sandbox/slaws/httpserver.php/htdocs/pop.png Binary files differnew file mode 100644 index 0000000000..1cf1df24a7 --- /dev/null +++ b/sandbox/slaws/httpserver.php/htdocs/pop.png diff --git a/sandbox/slaws/httpserver.php/htdocs/rss.png b/sandbox/slaws/httpserver.php/htdocs/rss.png Binary files differnew file mode 100644 index 0000000000..b3c949d224 --- /dev/null +++ b/sandbox/slaws/httpserver.php/htdocs/rss.png diff --git a/sandbox/slaws/httpserver.php/htdocs/service.smd b/sandbox/slaws/httpserver.php/htdocs/service.smd new file mode 100644 index 0000000000..bc77e39bf9 --- /dev/null +++ b/sandbox/slaws/httpserver.php/htdocs/service.smd @@ -0,0 +1 @@ +{"SMDVersion":".1","objectName":"AlertsService","serviceType":"JSON-RPC","serviceURL":"http://localhost:8080/sample-feed-aggregator/services/AlertsServiceJSONRPC","methods":[{"name":"getAllNewAlerts","parameters":[{"name":"param0","type":"STRING"}]}]} diff --git a/sandbox/slaws/httpserver.php/htdocs/style.css b/sandbox/slaws/httpserver.php/htdocs/style.css new file mode 100644 index 0000000000..cd377e90e5 --- /dev/null +++ b/sandbox/slaws/httpserver.php/htdocs/style.css @@ -0,0 +1,166 @@ +/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+p,table,li,h1,h2,h3
+{
+font-family: verdana, arial, 'sans serif';
+}
+
+p, h1, h2, h3, table, li, hr
+{
+margin-left: 10pt;
+}
+
+table
+{
+border-color: black;
+border-collapse: separate;
+border-spacing: 0px 1px;
+
+margin-right: 10pt;
+margin-left: 10pt;
+width: 800px;
+}
+
+.sourceDetailsTable
+{
+width: 600px;
+}
+
+tr, td
+{
+margin-left: 0pt;
+margin-right: 0pt;
+padding-left: 10pt;
+font-size: 90%;
+}
+
+p,li,th
+{
+font-size: 90%;
+margin-left: 10pt;
+}
+
+pre
+{
+margin-left: 10pt;
+}
+
+body
+{
+#ffffff;
+}
+
+h1,h2,h3,hr
+{
+color: firebrick;
+}
+
+a:link {COLOR: firebrick;}
+a:visited {COLOR: firebrick;}
+a:active {COLOR: navy;}
+
+.link
+{
+COLOR: firebrick;
+text-decoration: underline;
+}
+
+.clickable
+{
+cursor: pointer
+}
+
+.unread_title
+{
+font-weight: bold;
+}
+
+.read_title
+{
+font-weight: normal;
+}
+
+.summary
+{
+color: DimGrey;
+}
+
+.hidden
+{
+display: none;
+}
+
+.alert_data
+{
+margin-left: 10px;
+width: 800px;
+height: 800px;
+}
+
+.source_0
+{
+background-color: LightGreen;
+}
+
+.source_1
+{
+background-color: LightSkyBlue;
+}
+
+.source_2
+{
+background-color: Khaki;
+}
+
+.source_3
+{
+background-color: LightPink;
+}
+
+.source_4
+{
+background-color: Orange;
+}
+
+.source_5
+{
+background-color: LightCoral;
+}
+
+.source_6
+{
+background-color: Orchid;
+}
+
+.source_7
+{
+background-color: Peru;
+}
+
+.source_8
+{
+background-color: SpringGreen;
+}
+
+.source_9
+{
+background-color: LightGrey;
+}
+
diff --git a/sandbox/slaws/httpserver.php/startserver.bat b/sandbox/slaws/httpserver.php/startserver.bat new file mode 100644 index 0000000000..339460c70f --- /dev/null +++ b/sandbox/slaws/httpserver.php/startserver.bat @@ -0,0 +1,78 @@ +@echo off
+
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+
+setlocal
+
+set HTTPD_HOME=C:\simon\apps\apache2.0.55\Apache2
+set PHP_HOME=C:\simon\Projects\Tuscany\php\branch-build\php-5.2.0\Debug_TS
+
+set APFULLDIR=%~d0%~p0
+echo Running from %APFULLDIR%
+
+REM if "%TUSCANY_SCACPP%" == "" (
+REM echo "TUSCANY_SCACPP not set"
+REM goto end
+REM )
+REM echo Using SCA installed at %TUSCANY_SCACPP%
+
+REM if "%TUSCANY_SDOCPP%" == "" (
+REM echo "TUSCANY_SDOCPP not set"
+REM goto end
+REM )
+REM echo Using SDO installed at %TUSCANY_SDOCPP%
+
+if "%HTTPD_HOME%" == "" (
+echo "HTTPD_HOME not set"
+goto end
+)
+echo Using HTTPD installed at %HTTPD_HOME%
+
+set PATH=%HTTPD_HOME%\bin;%PHP_HOME%;%PATH%
+
+REM set TUSCANY_SCACPP_ROOT=%APFULLDIR%\..\
+REM set TUSCANY_SCACPP_BASE_URI=http://localhost:9091
+
+@REM Generate the tuscany_sca_mod_rest configuration
+REM if not exist %APFULLDIR%\conf\tuscany_sca_mod_rest.conf (
+REM echo LoadModule sca_rest_module %TUSCANY_SCACPP%/extensions/rest\service/bin/tuscany_sca_mod_rest.dll > %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
+REM echo TuscanyHome %TUSCANY_SCACPP% >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
+REM echo ^<Location /rest^> >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
+REM echo SetHandler sca_rest_module >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
+REM echo TuscanyRoot %TUSCANY_SCACPP_ROOT% >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
+REM echo ^</Location^> >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
+REM )
+
+@REM Generate the base HTTPD configuration
+if not exist %APFULLDIR%\conf\base.conf (
+ echo LoadModule mime_module %HTTPD_HOME%\modules\mod_mime.so > %APFULLDIR%\conf\base.conf
+ echo LoadModule dir_module %HTTPD_HOME%\modules\mod_dir.so >> %APFULLDIR%\conf\base.conf
+ echo DocumentRoot %APFULLDIR%\htdocs >> %APFULLDIR%\conf\base.conf
+ echo LoadModule php5_module %PHP_HOME%\php5apache2.dll >> %APFULLDIR%\conf\base.conf
+ echo AddType application/x-httpd-php .php >> %APFULLDIR%\conf\base.conf
+ echo PHPIniDir %PHP_HOME% >> %APFULLDIR%\conf\base.conf
+)
+
+@REM Create logs directory
+REM if not exist %APFULLDIR%\logs mkdir %APFULLDIR%\logs
+REM set TUSCANY_SCACPP_LOG=%APFULLDIR%\logs\tuscany-server.log
+REM set TUSCANY_SCACPP_LOGGING=9
+
+@REM Start the HTTP server
+echo Starting Apache httpd
+%HTTPD_HOME%\bin\apache -d %APFULLDIR%
diff --git a/sandbox/slaws/logging-copy/pom.xml b/sandbox/slaws/logging-copy/pom.xml new file mode 100644 index 0000000000..5bf4a3e0e7 --- /dev/null +++ b/sandbox/slaws/logging-copy/pom.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-sca</artifactId>
+ <version>1.0-incubating-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent>
+ <artifactId>sample-calculator</artifactId>
+ <name>Apache Tuscany Calculator Sample</name>
+
+ <repositories>
+ <repository>
+ <id>apache.incubator</id>
+ <url>http://people.apache.org/repo/m2-incubating-repository</url>
+ </repository>
+ </repositories>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-common-utilities</artifactId>
+ <version>2.0.1-incubator</version>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.2</version>
+ <scope>test</scope>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+ <finalName>${artifactId}</finalName>
+ </build>
+</project>
diff --git a/sandbox/slaws/logging-copy/src/main/java/patha/Messages.properties b/sandbox/slaws/logging-copy/src/main/java/patha/Messages.properties new file mode 100644 index 0000000000..857c767484 --- /dev/null +++ b/sandbox/slaws/logging-copy/src/main/java/patha/Messages.properties @@ -0,0 +1,21 @@ +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# +TEST_MESSAGE = This is a test message with numbers {0}, {1}, {2} diff --git a/sandbox/slaws/logging-copy/src/main/java/patha/SomeTuscanyClassA.java b/sandbox/slaws/logging-copy/src/main/java/patha/SomeTuscanyClassA.java new file mode 100644 index 0000000000..ad29675074 --- /dev/null +++ b/sandbox/slaws/logging-copy/src/main/java/patha/SomeTuscanyClassA.java @@ -0,0 +1,35 @@ +package patha;
+
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import org.apache.cxf.common.logging.LogUtils;
+
+public class SomeTuscanyClassA {
+
+ private static final Logger Log = LogUtils.getL7dLogger(SomeTuscanyClassA.class);
+
+ public SomeTuscanyClassA() {
+
+
+ Integer params[] = {8, 9, 4};
+
+
+ LogUtils.log(Log,
+ Level.INFO,
+ "TEST_MESSAGE",
+ null,
+ (Object[])params);
+
+ Exception ex = new IllegalStateException("TEST_MESSAGE");
+
+ LogUtils.log(Log,
+ Level.INFO,
+ "TEST_MESSAGE",
+ ex,
+ (Object[])params);
+
+
+ }
+
+}
diff --git a/sandbox/slaws/logging-copy/src/main/java/pathb/SomeTuscanyClassB.java b/sandbox/slaws/logging-copy/src/main/java/pathb/SomeTuscanyClassB.java new file mode 100644 index 0000000000..5ad190d9c4 --- /dev/null +++ b/sandbox/slaws/logging-copy/src/main/java/pathb/SomeTuscanyClassB.java @@ -0,0 +1,48 @@ +package pathb;
+
+import java.io.InputStream;
+import java.util.logging.Level;
+import java.util.logging.LogManager;
+import java.util.logging.Logger;
+
+import org.apache.cxf.common.logging.LogUtils;
+
+import patha.SomeTuscanyClassA;
+
+public class SomeTuscanyClassB {
+ private static final Logger Log = Logger.getLogger(SomeTuscanyClassA.class.getName());
+
+
+ public SomeTuscanyClassB() {
+
+ Logger Log1 = Logger.getLogger("pathb", "tuscany-messages");
+ Logger Log = Logger.getLogger(SomeTuscanyClassB.class.getName());
+ String rbName = Log.getResourceBundleName();
+
+ Log.log(Level.INFO,
+ "MESSAGE1");
+
+
+ String componentName = "Some component";
+
+ Log.log(Level.INFO,
+ "MESSAGE2", // message id
+ componentName); // parameter
+
+ Integer params[] = {8, 9, 4};
+
+ Log.log(Level.INFO,
+ "MESSAGE3", // message id
+ params); // parameter
+
+
+ Exception ex = new IllegalStateException("TEST_MESSAGE");
+
+ Log.log(Level.INFO,
+ "MESSAGE4", // message id
+ ex); // parameter
+
+
+ }
+
+}
diff --git a/sandbox/slaws/logging-copy/src/main/java/pathb/tuscany-messages_en.properties b/sandbox/slaws/logging-copy/src/main/java/pathb/tuscany-messages_en.properties new file mode 100644 index 0000000000..523263da40 --- /dev/null +++ b/sandbox/slaws/logging-copy/src/main/java/pathb/tuscany-messages_en.properties @@ -0,0 +1,24 @@ +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# +MESSAGE1 = This is a test message with no params +MESSAGE2 = This is a test message with a string param {0} +MESSAGE3 = This is a test message with numbers {0}, {1}, {2} +MESSAGE4 = This is a test message with exception diff --git a/sandbox/slaws/logging-copy/src/main/resources/tuscany-logging.properties b/sandbox/slaws/logging-copy/src/main/resources/tuscany-logging.properties new file mode 100644 index 0000000000..3822dfa014 --- /dev/null +++ b/sandbox/slaws/logging-copy/src/main/resources/tuscany-logging.properties @@ -0,0 +1,73 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +############################################################ +# Default Logging Configuration File +# +# You can use a different file by specifying a filename +# with the java.util.logging.config.file system property. +# For example java -Djava.util.logging.config.file=myfile +############################################################ + +############################################################ +# Global properties +############################################################ + +# "handlers" specifies a comma separated list of log Handler +# classes. These handlers will be installed during VM startup. +# Note that these classes must be on the system classpath. +# By default we only configure a ConsoleHandler, which will only +# show messages at the WARNING and above levels. +handlers= java.util.logging.ConsoleHandler, java.util.logging.FileHandler + +# Default global logging level. +# This specifies which kinds of events are logged across +# all loggers. For any given facility this global level +# can be overriden by a facility specific level +# Note that the ConsoleHandler also has a separate level +# setting to limit messages printed to the console. +.level= WARNING + +############################################################ +# Handler specific properties. +# Describes specific configuration info for Handlers. +############################################################ + +# default file output is in user's home directory. +java.util.logging.FileHandler.pattern = %h/java%u.log +java.util.logging.FileHandler.limit = 50000 +java.util.logging.FileHandler.count = 1 +java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter + +# Limit the message that are printed on the console to WARNING and above. +java.util.logging.ConsoleHandler.level = INFO +java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter +#java.util.logging.ConsoleHandler.formatter = demos.ws_rm.common.ConciseFormatter + + +############################################################ +# Logger specific properties. +# Provides extra control for each logger. +############################################################ + +# For example, set the com.xyz.foo logger to only log SEVERE +# messages: +#com.xyz.foo.level = SEVERE + +patha.SomeTuscanyClassA.level=INFO +pathb.SomeTuscanyClassB.level=INFO + diff --git a/sandbox/slaws/logging-copy/src/main/resources/tuscany-messages_en.properties b/sandbox/slaws/logging-copy/src/main/resources/tuscany-messages_en.properties new file mode 100644 index 0000000000..523263da40 --- /dev/null +++ b/sandbox/slaws/logging-copy/src/main/resources/tuscany-messages_en.properties @@ -0,0 +1,24 @@ +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# +MESSAGE1 = This is a test message with no params +MESSAGE2 = This is a test message with a string param {0} +MESSAGE3 = This is a test message with numbers {0}, {1}, {2} +MESSAGE4 = This is a test message with exception diff --git a/sandbox/slaws/logging-copy/src/test/java/test/LoggingTestCase.java b/sandbox/slaws/logging-copy/src/test/java/test/LoggingTestCase.java new file mode 100644 index 0000000000..224ea32615 --- /dev/null +++ b/sandbox/slaws/logging-copy/src/test/java/test/LoggingTestCase.java @@ -0,0 +1,71 @@ +/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package test;
+
+import java.io.InputStream;
+import java.util.logging.LogManager;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import patha.SomeTuscanyClassA;
+import pathb.SomeTuscanyClassB;
+
+
+
+/**
+ * This shows how to test the Calculator service component.
+ */
+public class LoggingTestCase {
+
+
+
+ @Before
+ public void setUp() throws Exception {
+ }
+
+ @After
+ public void tearDown() throws Exception {
+
+ }
+
+ @Test
+ public void testUtilLogger() throws Exception {
+
+ try {
+ InputStream logConfigStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("tuscany-logging.properties");
+ LogManager.getLogManager().readConfiguration(logConfigStream);
+ } catch(Exception ex) {
+ System.out.println("Can't find logging.properties on the classpath");
+ }
+
+ SomeTuscanyClassB stcB = new SomeTuscanyClassB();
+
+ }
+
+ //@Test
+ public void testSpecilizedLogger() throws Exception {
+
+
+
+ SomeTuscanyClassA stcA = new SomeTuscanyClassA();
+
+ }
+}
diff --git a/sandbox/slaws/logging/pom.xml b/sandbox/slaws/logging/pom.xml new file mode 100644 index 0000000000..5bf4a3e0e7 --- /dev/null +++ b/sandbox/slaws/logging/pom.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-sca</artifactId>
+ <version>1.0-incubating-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent>
+ <artifactId>sample-calculator</artifactId>
+ <name>Apache Tuscany Calculator Sample</name>
+
+ <repositories>
+ <repository>
+ <id>apache.incubator</id>
+ <url>http://people.apache.org/repo/m2-incubating-repository</url>
+ </repository>
+ </repositories>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-common-utilities</artifactId>
+ <version>2.0.1-incubator</version>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.2</version>
+ <scope>test</scope>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+ <finalName>${artifactId}</finalName>
+ </build>
+</project>
diff --git a/sandbox/slaws/logging/src/main/java/patha/Messages.properties b/sandbox/slaws/logging/src/main/java/patha/Messages.properties new file mode 100644 index 0000000000..857c767484 --- /dev/null +++ b/sandbox/slaws/logging/src/main/java/patha/Messages.properties @@ -0,0 +1,21 @@ +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# +TEST_MESSAGE = This is a test message with numbers {0}, {1}, {2} diff --git a/sandbox/slaws/logging/src/main/java/patha/SomeTuscanyClassA.java b/sandbox/slaws/logging/src/main/java/patha/SomeTuscanyClassA.java new file mode 100644 index 0000000000..ad29675074 --- /dev/null +++ b/sandbox/slaws/logging/src/main/java/patha/SomeTuscanyClassA.java @@ -0,0 +1,35 @@ +package patha;
+
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import org.apache.cxf.common.logging.LogUtils;
+
+public class SomeTuscanyClassA {
+
+ private static final Logger Log = LogUtils.getL7dLogger(SomeTuscanyClassA.class);
+
+ public SomeTuscanyClassA() {
+
+
+ Integer params[] = {8, 9, 4};
+
+
+ LogUtils.log(Log,
+ Level.INFO,
+ "TEST_MESSAGE",
+ null,
+ (Object[])params);
+
+ Exception ex = new IllegalStateException("TEST_MESSAGE");
+
+ LogUtils.log(Log,
+ Level.INFO,
+ "TEST_MESSAGE",
+ ex,
+ (Object[])params);
+
+
+ }
+
+}
diff --git a/sandbox/slaws/logging/src/main/java/pathb/SomeTuscanyClassB.java b/sandbox/slaws/logging/src/main/java/pathb/SomeTuscanyClassB.java new file mode 100644 index 0000000000..5ad190d9c4 --- /dev/null +++ b/sandbox/slaws/logging/src/main/java/pathb/SomeTuscanyClassB.java @@ -0,0 +1,48 @@ +package pathb;
+
+import java.io.InputStream;
+import java.util.logging.Level;
+import java.util.logging.LogManager;
+import java.util.logging.Logger;
+
+import org.apache.cxf.common.logging.LogUtils;
+
+import patha.SomeTuscanyClassA;
+
+public class SomeTuscanyClassB {
+ private static final Logger Log = Logger.getLogger(SomeTuscanyClassA.class.getName());
+
+
+ public SomeTuscanyClassB() {
+
+ Logger Log1 = Logger.getLogger("pathb", "tuscany-messages");
+ Logger Log = Logger.getLogger(SomeTuscanyClassB.class.getName());
+ String rbName = Log.getResourceBundleName();
+
+ Log.log(Level.INFO,
+ "MESSAGE1");
+
+
+ String componentName = "Some component";
+
+ Log.log(Level.INFO,
+ "MESSAGE2", // message id
+ componentName); // parameter
+
+ Integer params[] = {8, 9, 4};
+
+ Log.log(Level.INFO,
+ "MESSAGE3", // message id
+ params); // parameter
+
+
+ Exception ex = new IllegalStateException("TEST_MESSAGE");
+
+ Log.log(Level.INFO,
+ "MESSAGE4", // message id
+ ex); // parameter
+
+
+ }
+
+}
diff --git a/sandbox/slaws/logging/src/main/java/pathb/tuscany-messages_en.properties b/sandbox/slaws/logging/src/main/java/pathb/tuscany-messages_en.properties new file mode 100644 index 0000000000..523263da40 --- /dev/null +++ b/sandbox/slaws/logging/src/main/java/pathb/tuscany-messages_en.properties @@ -0,0 +1,24 @@ +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# +MESSAGE1 = This is a test message with no params +MESSAGE2 = This is a test message with a string param {0} +MESSAGE3 = This is a test message with numbers {0}, {1}, {2} +MESSAGE4 = This is a test message with exception diff --git a/sandbox/slaws/logging/src/main/resources/tuscany-logging.properties b/sandbox/slaws/logging/src/main/resources/tuscany-logging.properties new file mode 100644 index 0000000000..3822dfa014 --- /dev/null +++ b/sandbox/slaws/logging/src/main/resources/tuscany-logging.properties @@ -0,0 +1,73 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +############################################################ +# Default Logging Configuration File +# +# You can use a different file by specifying a filename +# with the java.util.logging.config.file system property. +# For example java -Djava.util.logging.config.file=myfile +############################################################ + +############################################################ +# Global properties +############################################################ + +# "handlers" specifies a comma separated list of log Handler +# classes. These handlers will be installed during VM startup. +# Note that these classes must be on the system classpath. +# By default we only configure a ConsoleHandler, which will only +# show messages at the WARNING and above levels. +handlers= java.util.logging.ConsoleHandler, java.util.logging.FileHandler + +# Default global logging level. +# This specifies which kinds of events are logged across +# all loggers. For any given facility this global level +# can be overriden by a facility specific level +# Note that the ConsoleHandler also has a separate level +# setting to limit messages printed to the console. +.level= WARNING + +############################################################ +# Handler specific properties. +# Describes specific configuration info for Handlers. +############################################################ + +# default file output is in user's home directory. +java.util.logging.FileHandler.pattern = %h/java%u.log +java.util.logging.FileHandler.limit = 50000 +java.util.logging.FileHandler.count = 1 +java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter + +# Limit the message that are printed on the console to WARNING and above. +java.util.logging.ConsoleHandler.level = INFO +java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter +#java.util.logging.ConsoleHandler.formatter = demos.ws_rm.common.ConciseFormatter + + +############################################################ +# Logger specific properties. +# Provides extra control for each logger. +############################################################ + +# For example, set the com.xyz.foo logger to only log SEVERE +# messages: +#com.xyz.foo.level = SEVERE + +patha.SomeTuscanyClassA.level=INFO +pathb.SomeTuscanyClassB.level=INFO + diff --git a/sandbox/slaws/logging/src/main/resources/tuscany-messages_en.properties b/sandbox/slaws/logging/src/main/resources/tuscany-messages_en.properties new file mode 100644 index 0000000000..523263da40 --- /dev/null +++ b/sandbox/slaws/logging/src/main/resources/tuscany-messages_en.properties @@ -0,0 +1,24 @@ +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# +MESSAGE1 = This is a test message with no params +MESSAGE2 = This is a test message with a string param {0} +MESSAGE3 = This is a test message with numbers {0}, {1}, {2} +MESSAGE4 = This is a test message with exception diff --git a/sandbox/slaws/logging/src/test/java/test/LoggingTestCase.java b/sandbox/slaws/logging/src/test/java/test/LoggingTestCase.java new file mode 100644 index 0000000000..224ea32615 --- /dev/null +++ b/sandbox/slaws/logging/src/test/java/test/LoggingTestCase.java @@ -0,0 +1,71 @@ +/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package test;
+
+import java.io.InputStream;
+import java.util.logging.LogManager;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import patha.SomeTuscanyClassA;
+import pathb.SomeTuscanyClassB;
+
+
+
+/**
+ * This shows how to test the Calculator service component.
+ */
+public class LoggingTestCase {
+
+
+
+ @Before
+ public void setUp() throws Exception {
+ }
+
+ @After
+ public void tearDown() throws Exception {
+
+ }
+
+ @Test
+ public void testUtilLogger() throws Exception {
+
+ try {
+ InputStream logConfigStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("tuscany-logging.properties");
+ LogManager.getLogManager().readConfiguration(logConfigStream);
+ } catch(Exception ex) {
+ System.out.println("Can't find logging.properties on the classpath");
+ }
+
+ SomeTuscanyClassB stcB = new SomeTuscanyClassB();
+
+ }
+
+ //@Test
+ public void testSpecilizedLogger() throws Exception {
+
+
+
+ SomeTuscanyClassA stcA = new SomeTuscanyClassA();
+
+ }
+}
diff --git a/sandbox/slaws/maven-sca-dependencies/DISCLAIMER b/sandbox/slaws/maven-sca-dependencies/DISCLAIMER new file mode 100644 index 0000000000..d68a410903 --- /dev/null +++ b/sandbox/slaws/maven-sca-dependencies/DISCLAIMER @@ -0,0 +1,8 @@ +Apache Tuscany is an effort undergoing incubation at The Apache Software
+Foundation (ASF), sponsored by the Apache Web Services PMC. Incubation is
+required of all newly accepted projects until a further review indicates that
+the infrastructure, communications, and decision making process have stabilized
+in a manner consistent with other successful ASF projects. While incubation
+status is not necessarily a reflection of the completeness or stability of the
+code, it does indicate that the project has yet to be fully endorsed by the ASF.
+
diff --git a/sandbox/slaws/maven-sca-dependencies/LICENSE b/sandbox/slaws/maven-sca-dependencies/LICENSE new file mode 100644 index 0000000000..6e529a25c4 --- /dev/null +++ b/sandbox/slaws/maven-sca-dependencies/LICENSE @@ -0,0 +1,205 @@ +
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+
+
diff --git a/sandbox/slaws/maven-sca-dependencies/NOTICE b/sandbox/slaws/maven-sca-dependencies/NOTICE new file mode 100644 index 0000000000..eb1926d971 --- /dev/null +++ b/sandbox/slaws/maven-sca-dependencies/NOTICE @@ -0,0 +1,6 @@ +${pom.name}
+Copyright (c) 2005 - 2007 The Apache Software Foundation
+
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/).
+
diff --git a/sandbox/slaws/maven-sca-dependencies/collectdependencies.sh b/sandbox/slaws/maven-sca-dependencies/collectdependencies.sh new file mode 100644 index 0000000000..feb118a070 --- /dev/null +++ b/sandbox/slaws/maven-sca-dependencies/collectdependencies.sh @@ -0,0 +1 @@ +find . -name dependency.txt -exec cat '{}' \; > dependencies.txt
\ No newline at end of file diff --git a/sandbox/slaws/maven-sca-dependencies/examplepomentry.xml b/sandbox/slaws/maven-sca-dependencies/examplepomentry.xml new file mode 100644 index 0000000000..023fc28879 --- /dev/null +++ b/sandbox/slaws/maven-sca-dependencies/examplepomentry.xml @@ -0,0 +1,17 @@ +
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-maven-sca-dependencies</artifactId>
+ <version>1.1-incubating-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
diff --git a/sandbox/slaws/maven-sca-dependencies/pom.xml b/sandbox/slaws/maven-sca-dependencies/pom.xml new file mode 100644 index 0000000000..977697629d --- /dev/null +++ b/sandbox/slaws/maven-sca-dependencies/pom.xml @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-modules</artifactId>
+ <version>1.1-incubating-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+ <artifactId>tuscany-maven-sca-dependencies</artifactId>
+ <packaging>maven-plugin</packaging>
+ <name>Apache Tuscany SCA SCA Dependencies Maven Plugin</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>2.0.7</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-project</artifactId>
+ <version>2.0.7</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-settings</artifactId>
+ <version>2.0.7</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-artifact</artifactId>
+ <version>2.0.7</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-model</artifactId>
+ <version>2.0.7</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.maven.shared</groupId>
+ <artifactId>maven-dependency-tree</artifactId>
+ <version>1.0</version>
+ </dependency>
+
+
+ </dependencies>
+</project>
diff --git a/sandbox/slaws/maven-sca-dependencies/src/main/java/org/apache/tuscany/tools/sca/dependency/generator/plugin/DependencyGeneratorMojo.java b/sandbox/slaws/maven-sca-dependencies/src/main/java/org/apache/tuscany/tools/sca/dependency/generator/plugin/DependencyGeneratorMojo.java new file mode 100644 index 0000000000..adbabe7b6a --- /dev/null +++ b/sandbox/slaws/maven-sca-dependencies/src/main/java/org/apache/tuscany/tools/sca/dependency/generator/plugin/DependencyGeneratorMojo.java @@ -0,0 +1,204 @@ +/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.tools.sca.dependency.generator.plugin;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.FileOutputStream;
+import java.io.PrintWriter;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.List;
+
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.artifact.factory.ArtifactFactory;
+import org.apache.maven.artifact.metadata.ArtifactMetadataSource;
+import org.apache.maven.artifact.repository.ArtifactRepository;
+import org.apache.maven.artifact.resolver.ArtifactCollector;
+import org.apache.maven.artifact.resolver.ArtifactResolver;
+import org.apache.maven.model.FileSet;
+import org.apache.maven.model.Resource;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+
+import org.apache.maven.project.MavenProject;
+import org.apache.maven.project.MavenProjectBuilder;
+import org.apache.maven.project.ProjectBuildingException;
+import org.apache.maven.settings.Settings;
+import org.apache.maven.shared.dependency.tree.DependencyNode;
+import org.apache.maven.shared.dependency.tree.DependencyTree;
+import org.apache.maven.shared.dependency.tree.DependencyTreeBuilder;
+import org.apache.maven.shared.dependency.tree.DependencyTreeBuilderException;
+
+/**
+ * @version $Rev: 588816 $ $Date: 2007-10-27 01:22:38 +0100 (Sat, 27 Oct 2007) $
+ * @goal generate
+ * @phase generate-sources
+ * @requiresDependencyResolution test
+ * @description Generate Ant build script for an SCA project
+ */
+public class DependencyGeneratorMojo extends AbstractMojo {
+ /**
+ * The project to create a build for.
+ *
+ * @parameter expression="${project}"
+ * @required
+ */
+ private MavenProject project;
+
+ /**
+ * Used for resolving artifacts
+ *
+ * @component
+ */
+ private ArtifactResolver artifactResolver;
+
+ /**
+ * Factory for creating artifact objects
+ *
+ * @component
+ */
+ private ArtifactFactory artifactFactory;
+
+ /**
+ * @component
+ */
+ private ArtifactMetadataSource artifactMetadataSource;
+
+ /**
+ * @component
+ */
+ private DependencyTreeBuilder dependencyTreeBuilder;
+
+ /**
+ * @component
+ */
+ private ArtifactCollector collector;
+
+ /**
+ * @component
+ */
+ private MavenProjectBuilder mavenProjectBuilder;
+
+ /**
+ * The local repository where the artifacts are located
+ *
+ * @parameter expression="${localRepository}"
+ * @required
+ */
+ private ArtifactRepository localRepository;
+
+ /**
+ * The remote repositories where artifacts are located
+ *
+ * @parameter expression="${project.remoteArtifactRepositories}"
+ */
+ private List remoteRepositories;
+
+ /**
+ * The current user system settings for use in Maven.
+ *
+ * @parameter expression="${settings}"
+ * @required
+ * @readonly
+ */
+ private Settings settings;
+
+
+ /**
+ * The build.xml file to generate.
+ * @parameter expression="${basedir}/target/dependency.txt"
+ */
+ private String buildFile;
+
+ public void execute() throws MojoExecutionException {
+
+ System.out.println("Generating " + buildFile);
+
+ // Open the target build.xml file
+ File targetFile = new File(buildFile);
+ PrintWriter pw;
+ try {
+ pw = new PrintWriter(new FileOutputStream(targetFile));
+ } catch (FileNotFoundException e) {
+ System.out.println(e.toString());
+ return;
+ }
+
+ DependencyTree dependencyTree;
+
+ try
+ {
+ dependencyTree = dependencyTreeBuilder.buildDependencyTree( project, localRepository, artifactFactory,
+ artifactMetadataSource, collector );
+ }
+ catch ( DependencyTreeBuilderException e )
+ {
+ throw new MojoExecutionException( "Can't build dependency tree", e );
+ }
+
+ // processNode(dependencyTree.getRootNode(), "--", pw);
+
+ for (Artifact artifact: (List<Artifact>)project.getTestArtifacts()) {
+ pw.println( artifact.getFile().getName() + "\t" +
+ artifact.getScope() + "\t" +
+ project.getName() + "\t" +
+ findArtifactPath(dependencyTree.getRootNode(), artifact));
+ }
+
+ pw.close();
+ }
+
+ private void processNode(DependencyNode node, String indent, PrintWriter pw){
+
+ pw.println(indent + node.getArtifact().getScope() + " " + node.getArtifact().toString());
+
+ Iterator it = node.getChildren().iterator();
+ while ( it.hasNext() )
+ {
+ DependencyNode child = (DependencyNode) it.next();
+
+ processNode(child, indent + "--", pw);
+ }
+ }
+
+ private String findArtifactPath(DependencyNode node, Artifact artifact){
+ String path = null;
+
+ Iterator it = node.getChildren().iterator();
+ while ( it.hasNext() && (path == null) )
+ {
+ DependencyNode child = (DependencyNode) it.next();
+
+ if (child.getArtifact().getArtifactId().equals(artifact.getArtifactId())) {
+ path = child.getArtifact().getArtifactId() + "-" + child.getArtifact().getVersion();
+ } else {
+ path = findArtifactPath(child, artifact);
+
+ if (path != null){
+ path = child.getArtifact().getArtifactId() + "-" + child.getArtifact().getVersion() + "\t" + path;
+ }
+ }
+ }
+
+ return path;
+ }
+
+}
\ No newline at end of file diff --git a/sandbox/slaws/modules/domain-model-xml/DISCLAIMER b/sandbox/slaws/modules/domain-model-xml/DISCLAIMER new file mode 100644 index 0000000000..d68a410903 --- /dev/null +++ b/sandbox/slaws/modules/domain-model-xml/DISCLAIMER @@ -0,0 +1,8 @@ +Apache Tuscany is an effort undergoing incubation at The Apache Software
+Foundation (ASF), sponsored by the Apache Web Services PMC. Incubation is
+required of all newly accepted projects until a further review indicates that
+the infrastructure, communications, and decision making process have stabilized
+in a manner consistent with other successful ASF projects. While incubation
+status is not necessarily a reflection of the completeness or stability of the
+code, it does indicate that the project has yet to be fully endorsed by the ASF.
+
diff --git a/sandbox/slaws/modules/domain-model-xml/LICENSE b/sandbox/slaws/modules/domain-model-xml/LICENSE new file mode 100644 index 0000000000..6e529a25c4 --- /dev/null +++ b/sandbox/slaws/modules/domain-model-xml/LICENSE @@ -0,0 +1,205 @@ +
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+
+
diff --git a/sandbox/slaws/modules/domain-model-xml/NOTICE b/sandbox/slaws/modules/domain-model-xml/NOTICE new file mode 100644 index 0000000000..1325efd8bf --- /dev/null +++ b/sandbox/slaws/modules/domain-model-xml/NOTICE @@ -0,0 +1,6 @@ +${pom.name}
+Copyright (c) 2005 - 2008 The Apache Software Foundation
+
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/).
+
diff --git a/sandbox/slaws/modules/domain-model-xml/pom.xml b/sandbox/slaws/modules/domain-model-xml/pom.xml new file mode 100644 index 0000000000..7d0d4472d9 --- /dev/null +++ b/sandbox/slaws/modules/domain-model-xml/pom.xml @@ -0,0 +1,74 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<project>
+
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-modules</artifactId>
+ <version>1.2-incubating-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>tuscany-domain-model-xml</artifactId>
+ <name>Apache Tuscany SCA Domain Model XML</name>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-assembly</artifactId>
+ <version>1.2-incubating-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-assembly-xml</artifactId>
+ <version>1.2-incubating-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-domain-model</artifactId>
+ <version>1.2-incubating-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>stax</groupId>
+ <artifactId>stax-api</artifactId>
+ <version>1.0.1</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.codehaus.woodstox</groupId>
+ <artifactId>wstx-asl</artifactId>
+ <version>3.2.1</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>xalan</groupId>
+ <artifactId>xalan</artifactId>
+ <version>2.7.0</version>
+ </dependency>
+
+ </dependencies>
+
+</project>
diff --git a/sandbox/slaws/modules/domain-model-xml/src/main/java/org/apache/tuscany/sca/domain/model/xml/Constants.java b/sandbox/slaws/modules/domain-model-xml/src/main/java/org/apache/tuscany/sca/domain/model/xml/Constants.java new file mode 100644 index 0000000000..1e3111c029 --- /dev/null +++ b/sandbox/slaws/modules/domain-model-xml/src/main/java/org/apache/tuscany/sca/domain/model/xml/Constants.java @@ -0,0 +1,42 @@ +/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.tuscany.sca.domain.model.xml;
+
+import javax.xml.namespace.QName;
+
+/**
+ * Constants used in SCA assembly XML files.
+ */
+public interface Constants {
+
+ String DOMAIN = "domain";
+ QName DOMAIN_QNAME = new QName(org.apache.tuscany.sca.assembly.xml.Constants.SCA10_TUSCANY_NS, DOMAIN);
+
+ String NODE = "node";
+ QName NODE_QNAME = new QName(org.apache.tuscany.sca.assembly.xml.Constants.SCA10_TUSCANY_NS, NODE);
+
+ String COMPOSITE = "composite";
+ QName COMPOSITE_QNAME = new QName(org.apache.tuscany.sca.assembly.xml.Constants.SCA10_TUSCANY_NS, COMPOSITE);
+
+ String CONTRIBUTION = "contribution";
+ QName CONTRIBUTION_QNAME = new QName(org.apache.tuscany.sca.assembly.xml.Constants.SCA10_TUSCANY_NS, COMPOSITE);
+
+
+}
diff --git a/sandbox/slaws/modules/domain-model-xml/src/main/java/org/apache/tuscany/sca/domain/model/xml/DomainProcessor.java b/sandbox/slaws/modules/domain-model-xml/src/main/java/org/apache/tuscany/sca/domain/model/xml/DomainProcessor.java new file mode 100644 index 0000000000..8f39edfa8b --- /dev/null +++ b/sandbox/slaws/modules/domain-model-xml/src/main/java/org/apache/tuscany/sca/domain/model/xml/DomainProcessor.java @@ -0,0 +1,181 @@ +/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.tuscany.sca.domain.model.xml;
+
+import static javax.xml.stream.XMLStreamConstants.END_ELEMENT;
+import static javax.xml.stream.XMLStreamConstants.START_ELEMENT;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.StringTokenizer;
+
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLStreamConstants;
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLStreamWriter;
+
+import org.apache.tuscany.sca.assembly.AssemblyFactory;
+import org.apache.tuscany.sca.assembly.Binding;
+import org.apache.tuscany.sca.assembly.Callback;
+import org.apache.tuscany.sca.assembly.Component;
+import org.apache.tuscany.sca.assembly.ComponentProperty;
+import org.apache.tuscany.sca.assembly.ComponentReference;
+import org.apache.tuscany.sca.assembly.ComponentService;
+import org.apache.tuscany.sca.assembly.Composite;
+import org.apache.tuscany.sca.assembly.CompositeReference;
+import org.apache.tuscany.sca.assembly.CompositeService;
+import org.apache.tuscany.sca.assembly.ConfiguredOperation;
+import org.apache.tuscany.sca.assembly.ConstrainingType;
+import org.apache.tuscany.sca.assembly.Contract;
+import org.apache.tuscany.sca.assembly.Implementation;
+import org.apache.tuscany.sca.assembly.OperationsConfigurator;
+import org.apache.tuscany.sca.assembly.Property;
+import org.apache.tuscany.sca.assembly.Reference;
+import org.apache.tuscany.sca.assembly.Service;
+import org.apache.tuscany.sca.assembly.Wire;
+import org.apache.tuscany.sca.contribution.Artifact;
+import org.apache.tuscany.sca.contribution.ContributionFactory;
+import org.apache.tuscany.sca.contribution.processor.BaseStAXArtifactProcessor;
+import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor;
+import org.apache.tuscany.sca.contribution.resolver.ModelResolver;
+import org.apache.tuscany.sca.contribution.service.ContributionReadException;
+import org.apache.tuscany.sca.contribution.service.ContributionResolveException;
+import org.apache.tuscany.sca.contribution.service.ContributionWriteException;
+import org.apache.tuscany.sca.domain.model.Contribution;
+import org.apache.tuscany.sca.domain.model.Domain;
+import org.apache.tuscany.sca.domain.model.DomainFactory;
+import org.apache.tuscany.sca.domain.model.Node;
+import org.apache.tuscany.sca.domain.model.impl.DomainlFactoryImpl;
+import org.apache.tuscany.sca.interfacedef.InterfaceContract;
+import org.apache.tuscany.sca.interfacedef.InterfaceContractMapper;
+import org.apache.tuscany.sca.policy.Intent;
+import org.apache.tuscany.sca.policy.IntentAttachPointType;
+import org.apache.tuscany.sca.policy.PolicyFactory;
+import org.apache.tuscany.sca.policy.PolicySet;
+import org.apache.tuscany.sca.policy.PolicySetAttachPoint;
+import org.w3c.dom.Document;
+
+/**
+ * A domain processor.
+ *
+ * @version $Rev: 615632 $ $Date: 2008-01-27 19:14:25 +0000 (Sun, 27 Jan 2008) $
+ */
+public class DomainProcessor extends BaseStAXArtifactProcessor implements Constants, StAXArtifactProcessor<Domain> {
+
+ DomainFactory domainFactory;
+
+ /**
+ * Construct a new domain processor
+ *
+ * @param extensionProcessor
+ */
+ public DomainProcessor(StAXArtifactProcessor extensionProcessor) {
+ domainFactory = new DomainlFactoryImpl();
+ }
+
+ /**
+ * Read and XML stream and Construct a new domain
+ *
+ * @param reader the input XML stream
+ */
+
+ public Domain read(XMLStreamReader reader) throws ContributionReadException, XMLStreamException {
+ Domain domain = null;
+ Node node = null;
+ Contribution contribution = null;
+
+ QName name;
+
+ // Read the composite document
+ while (reader.hasNext()) {
+ int event = reader.getEventType();
+ switch (event) {
+ case START_ELEMENT:
+ name = reader.getName();
+
+ if (DOMAIN_QNAME.equals(name)) {
+
+ // Read a <domain>
+ domain = domainFactory.createDomain();
+ domain.setDomainURI(getString(reader, org.apache.tuscany.sca.assembly.xml.Constants.URI));
+
+ } else if (NODE_QNAME.equals(name)) {
+
+ // Read a <node>
+ node = domainFactory.createNode();
+ node.setNodeURI(getString(reader, org.apache.tuscany.sca.assembly.xml.Constants.URI));
+ domain.getNodes().add(node);
+
+ } else if (COMPOSITE_QNAME.equals(name)) {
+
+ // Read a <composite>
+ QName compositeQName = getQName(reader, org.apache.tuscany.sca.assembly.xml.Constants.NAME);
+ node.setCompositeName(compositeQName);
+ } else if (CONTRIBUTION_QNAME.equals(name)) {
+
+ // Read a <contribution>
+ contribution = domainFactory.createContribution();
+ contribution.setContributionName(getString(reader, org.apache.tuscany.sca.assembly.xml.Constants.NAME));
+ domain.getContributions().add(contribution);
+ }
+
+ break;
+
+ case XMLStreamConstants.CHARACTERS:
+ break;
+
+ case END_ELEMENT:
+ name = reader.getName();
+
+ // Clear current state when reading end element
+ if (NODE_QNAME.equals(name)) {
+ node = null;
+ } else if (CONTRIBUTION_QNAME.equals(name)) {
+ contribution = null;
+ }
+ break;
+ }
+
+ // Read the next element
+ if (reader.hasNext()) {
+ reader.next();
+ }
+ }
+ return domain;
+ }
+
+ public void write(Domain domain, XMLStreamWriter writer) throws ContributionWriteException, XMLStreamException {
+
+ }
+
+ public void resolve(Domain domain, ModelResolver resolver) throws ContributionResolveException {
+
+
+ }
+
+ public QName getArtifactType() {
+ return DOMAIN_QNAME;
+ }
+
+ public Class<Domain> getModelType() {
+ return Domain.class;
+ }
+}
diff --git a/sandbox/slaws/modules/domain-model-xml/src/test/java/org/apache/tuscany/sca/domain/model/xml/ReadTestCase.java b/sandbox/slaws/modules/domain-model-xml/src/test/java/org/apache/tuscany/sca/domain/model/xml/ReadTestCase.java new file mode 100644 index 0000000000..42f42cd2c5 --- /dev/null +++ b/sandbox/slaws/modules/domain-model-xml/src/test/java/org/apache/tuscany/sca/domain/model/xml/ReadTestCase.java @@ -0,0 +1,71 @@ +/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.tuscany.sca.domain.model.xml;
+
+import java.io.InputStream;
+
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLOutputFactory;
+import javax.xml.stream.XMLStreamReader;
+
+import junit.framework.TestCase;
+
+import org.apache.tuscany.sca.assembly.AssemblyFactory;
+import org.apache.tuscany.sca.assembly.DefaultAssemblyFactory;
+import org.apache.tuscany.sca.contribution.DefaultContributionFactory;
+import org.apache.tuscany.sca.contribution.DefaultModelFactoryExtensionPoint;
+import org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint;
+import org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor;
+import org.apache.tuscany.sca.interfacedef.InterfaceContractMapper;
+import org.apache.tuscany.sca.interfacedef.impl.InterfaceContractMapperImpl;
+import org.apache.tuscany.sca.policy.DefaultPolicyFactory;
+import org.apache.tuscany.sca.policy.PolicyFactory;
+
+/**
+ * Test reading SCA XML assemblies.
+ *
+ * @version $Rev: 615735 $ $Date: 2008-01-28 06:13:25 +0000 (Mon, 28 Jan 2008) $
+ */
+public class ReadTestCase extends TestCase {
+
+ private XMLInputFactory inputFactory;
+ private DefaultStAXArtifactProcessorExtensionPoint staxProcessors;
+ private ExtensibleStAXArtifactProcessor staxProcessor;
+
+ @Override
+ public void setUp() throws Exception {
+
+ inputFactory = XMLInputFactory.newInstance();
+ staxProcessors = new DefaultStAXArtifactProcessorExtensionPoint(new DefaultModelFactoryExtensionPoint());
+ staxProcessor = new ExtensibleStAXArtifactProcessor(staxProcessors, XMLInputFactory.newInstance(), XMLOutputFactory.newInstance());
+ }
+
+ @Override
+ public void tearDown() throws Exception {
+ }
+
+ public void testReadDomain() throws Exception {
+ InputStream is = getClass().getResourceAsStream("test.domain");
+ DomainProcessor compositeReader = new DomainProcessor(staxProcessor);
+ XMLStreamReader reader = inputFactory.createXMLStreamReader(is);
+ assertNotNull(compositeReader.read(reader));
+ is.close();
+ }
+}
diff --git a/sandbox/slaws/modules/domain-model-xml/src/test/resources/org/apache/tuscany/sca/domain/model/xml/test.domain b/sandbox/slaws/modules/domain-model-xml/src/test/resources/org/apache/tuscany/sca/domain/model/xml/test.domain new file mode 100644 index 0000000000..d7fb2e178c --- /dev/null +++ b/sandbox/slaws/modules/domain-model-xml/src/test/resources/org/apache/tuscany/sca/domain/model/xml/test.domain @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="ASCII"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<domain xmlns="http://tuscany.apache.org/xmlns/sca/1.0"
+ targetNamespace="http://test"
+ xmlns:test="http://test"
+ uri="http://localhost:8080/domainA"
+ respository="repository">
+
+ <node uri="nodeA">
+ <composite name="test:compositeA"/>
+ <!-- TODO
+ <bindingConfiguration name="binding.ws">
+ <baseURI>http://localhost:8081/nodeA</baseURI>
+ </bindingConfiguration>
+ -->
+ </node>
+
+ <contribution name="sample-calculator.jar"/>
+</domain>
\ No newline at end of file diff --git a/sandbox/slaws/modules/domain-model/DISCLAIMER b/sandbox/slaws/modules/domain-model/DISCLAIMER new file mode 100644 index 0000000000..d68a410903 --- /dev/null +++ b/sandbox/slaws/modules/domain-model/DISCLAIMER @@ -0,0 +1,8 @@ +Apache Tuscany is an effort undergoing incubation at The Apache Software
+Foundation (ASF), sponsored by the Apache Web Services PMC. Incubation is
+required of all newly accepted projects until a further review indicates that
+the infrastructure, communications, and decision making process have stabilized
+in a manner consistent with other successful ASF projects. While incubation
+status is not necessarily a reflection of the completeness or stability of the
+code, it does indicate that the project has yet to be fully endorsed by the ASF.
+
diff --git a/sandbox/slaws/modules/domain-model/LICENSE b/sandbox/slaws/modules/domain-model/LICENSE new file mode 100644 index 0000000000..6e529a25c4 --- /dev/null +++ b/sandbox/slaws/modules/domain-model/LICENSE @@ -0,0 +1,205 @@ +
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+
+
diff --git a/sandbox/slaws/modules/domain-model/NOTICE b/sandbox/slaws/modules/domain-model/NOTICE new file mode 100644 index 0000000000..1325efd8bf --- /dev/null +++ b/sandbox/slaws/modules/domain-model/NOTICE @@ -0,0 +1,6 @@ +${pom.name}
+Copyright (c) 2005 - 2008 The Apache Software Foundation
+
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/).
+
diff --git a/sandbox/slaws/modules/domain-model/pom.xml b/sandbox/slaws/modules/domain-model/pom.xml new file mode 100644 index 0000000000..1110005f74 --- /dev/null +++ b/sandbox/slaws/modules/domain-model/pom.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<project>
+
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-modules</artifactId>
+ <version>1.2-incubating-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>tuscany-domain-model</artifactId>
+ <name>Apache Tuscany SCA Domain Model</name>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-assembly</artifactId>
+ <version>1.2-incubating-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-assembly-xml</artifactId>
+ <version>1.2-incubating-SNAPSHOT</version>
+ </dependency>
+
+ </dependencies>
+
+</project>
diff --git a/sandbox/slaws/modules/domain-model/src/main/java/org/apache/tuscany/sca/domain/model/Domain.java b/sandbox/slaws/modules/domain-model/src/main/java/org/apache/tuscany/sca/domain/model/Domain.java new file mode 100644 index 0000000000..95ca8db756 --- /dev/null +++ b/sandbox/slaws/modules/domain-model/src/main/java/org/apache/tuscany/sca/domain/model/Domain.java @@ -0,0 +1,68 @@ +/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.tuscany.sca.domain.model;
+
+import java.net.URL;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.xml.namespace.QName;
+
+import org.apache.tuscany.sca.assembly.Composite;
+
+
+/**
+ * A domain. Represents a namespace for SCA applications and comprises
+ * a collection of nodes running SCA composites
+ *
+ * @version $Rev: 552343 $ $Date: 2007-09-07 12:41:52 +0100 (Fri, 07 Sep 2007) $
+ */
+public interface Domain {
+
+ /**
+ * Retrieve the domain uri
+ *
+ * @return domain uri
+ */
+ public String getDomainURI();
+
+ /**
+ * Set the domain uri
+ *
+ * @param domainURI
+ */
+ public void setDomainURI(String domainURI);
+
+ /**
+ * Returns a list of nodes that are part of this domain
+ *
+ * @return list of nodes in the domain
+ */
+ public List<Node> getNodes();
+
+ /**
+ * Returns a list of contributions that are part of this domain
+ *
+ * @return list of contributions in the domain
+ */
+ public List<Contribution> getContributions();
+
+}
diff --git a/sandbox/slaws/modules/domain-model/src/main/java/org/apache/tuscany/sca/domain/model/DomainFactory.java b/sandbox/slaws/modules/domain-model/src/main/java/org/apache/tuscany/sca/domain/model/DomainFactory.java new file mode 100644 index 0000000000..adc85cd9e9 --- /dev/null +++ b/sandbox/slaws/modules/domain-model/src/main/java/org/apache/tuscany/sca/domain/model/DomainFactory.java @@ -0,0 +1,50 @@ +/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.tuscany.sca.domain.model;
+
+/**
+ * A node. Runs SCA composites
+ *
+ * @version $Rev: 552343 $ $Date: 2007-09-07 12:41:52 +0100 (Fri, 07 Sep 2007) $
+ */
+public interface DomainFactory {
+
+ /**
+ * Create a new domain model
+ *
+ * @return new domain model
+ */
+ public Domain createDomain();
+
+ /**
+ * Create a new node model
+ *
+ * @return new node model
+ */
+ public Node createNode();
+
+ /**
+ * Create a new contribution model
+ *
+ * @return new contribution model
+ */
+ public Contribution createContribution();
+
+}
diff --git a/sandbox/slaws/modules/domain-model/src/main/java/org/apache/tuscany/sca/domain/model/Node.java b/sandbox/slaws/modules/domain-model/src/main/java/org/apache/tuscany/sca/domain/model/Node.java new file mode 100644 index 0000000000..6288aeee33 --- /dev/null +++ b/sandbox/slaws/modules/domain-model/src/main/java/org/apache/tuscany/sca/domain/model/Node.java @@ -0,0 +1,65 @@ +/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.tuscany.sca.domain.model;
+
+import java.io.Externalizable;
+import java.net.URL;
+import java.util.List;
+import java.util.Map;
+
+import javax.xml.namespace.QName;
+
+
+/**
+ * A node. Runs SCA composites
+ *
+ * @version $Rev: 552343 $ $Date: 2007-09-07 12:41:52 +0100 (Fri, 07 Sep 2007) $
+ */
+public interface Node {
+
+ /**
+ * Retrieve the node uri
+ *
+ * @return the node uri
+ */
+ public String getNodeURI();
+
+ /**
+ * Set the node uri
+ *
+ * @param nodeURI the node uri
+ */
+ public void setNodeURI(String nodeURI);
+
+ /**
+ * Returns the name of the composite for this node
+ *
+ * @return the name of the composite for this node
+ */
+ QName getCompositeName();
+
+ /**
+ * Sets the name of the composite for this node
+ *
+ * @param name the name of the composite for this node
+ */
+ void setCompositeName(QName name);
+
+}
diff --git a/sandbox/slaws/modules/domain-model/src/main/java/org/apache/tuscany/sca/domain/model/impl/DomainImpl.java b/sandbox/slaws/modules/domain-model/src/main/java/org/apache/tuscany/sca/domain/model/impl/DomainImpl.java new file mode 100644 index 0000000000..9bf429ecd3 --- /dev/null +++ b/sandbox/slaws/modules/domain-model/src/main/java/org/apache/tuscany/sca/domain/model/impl/DomainImpl.java @@ -0,0 +1,60 @@ +/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.tuscany.sca.domain.model.impl;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.xml.namespace.QName;
+
+import org.apache.tuscany.sca.domain.model.Contribution;
+import org.apache.tuscany.sca.domain.model.Domain;
+import org.apache.tuscany.sca.domain.model.Node;
+
+/**
+ * A domain. Represents a namespace for SCA applications and comprises
+ * a collection of nodes running SCA composites
+ *
+ * @version $Rev: 552343 $ $Date: 2007-09-07 12:41:52 +0100 (Fri, 07 Sep 2007) $
+ */
+public class DomainImpl implements Domain {
+
+ private String domainURI;
+ private List<Node> nodes = new ArrayList<Node>();
+ private List<Contribution> contributions = new ArrayList<Contribution>();
+
+ public String getDomainURI(){
+ return domainURI;
+ }
+
+ public void setDomainURI(String domainURI){
+ this.domainURI = domainURI;
+ }
+
+ public List<Node> getNodes(){
+ return nodes;
+ }
+
+ public List<Contribution> getContributions(){
+ return contributions;
+ }
+}
diff --git a/sandbox/slaws/modules/domain-model/src/main/java/org/apache/tuscany/sca/domain/model/impl/DomainlFactoryImpl.java b/sandbox/slaws/modules/domain-model/src/main/java/org/apache/tuscany/sca/domain/model/impl/DomainlFactoryImpl.java new file mode 100644 index 0000000000..960bcc73fd --- /dev/null +++ b/sandbox/slaws/modules/domain-model/src/main/java/org/apache/tuscany/sca/domain/model/impl/DomainlFactoryImpl.java @@ -0,0 +1,46 @@ +/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.tuscany.sca.domain.model.impl;
+
+import org.apache.tuscany.sca.domain.model.Contribution;
+import org.apache.tuscany.sca.domain.model.Domain;
+import org.apache.tuscany.sca.domain.model.DomainFactory;
+import org.apache.tuscany.sca.domain.model.Node;
+
+/**
+ * The factory used to create domain model elements
+ *
+ * @version $Rev: 552343 $ $Date: 2007-09-07 12:41:52 +0100 (Fri, 07 Sep 2007) $
+ */
+public class DomainlFactoryImpl implements DomainFactory {
+
+ public Domain createDomain(){
+ return new DomainImpl();
+ }
+
+ public Node createNode(){
+ return new NodeImpl();
+ }
+
+ public Contribution createContribution(){
+ return new ContributionImpl();
+ }
+
+}
diff --git a/sandbox/slaws/modules/domain-model/src/main/java/org/apache/tuscany/sca/domain/model/impl/NodeImpl.java b/sandbox/slaws/modules/domain-model/src/main/java/org/apache/tuscany/sca/domain/model/impl/NodeImpl.java new file mode 100644 index 0000000000..daec1c0624 --- /dev/null +++ b/sandbox/slaws/modules/domain-model/src/main/java/org/apache/tuscany/sca/domain/model/impl/NodeImpl.java @@ -0,0 +1,51 @@ +/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.tuscany.sca.domain.model.impl;
+
+import javax.xml.namespace.QName;
+
+import org.apache.tuscany.sca.domain.model.Node;
+
+/**
+ * A node. Runs SCA composites
+ *
+ * @version $Rev: 552343 $ $Date: 2007-09-07 12:41:52 +0100 (Fri, 07 Sep 2007) $
+ */
+public class NodeImpl implements Node {
+
+ private String nodeURI;
+ private QName compositeName;
+
+ public String getNodeURI(){
+ return nodeURI;
+ }
+
+ public void setNodeURI(String nodeURI){
+ this.nodeURI = nodeURI;
+ }
+
+ public QName getCompositeName() {
+ return compositeName;
+ }
+
+ public void setCompositeName(QName compositeName){
+ this.compositeName = compositeName;
+ }
+}
diff --git a/sandbox/slaws/modules/domain-rework/DISCLAIMER b/sandbox/slaws/modules/domain-rework/DISCLAIMER new file mode 100644 index 0000000000..8e5c524323 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/DISCLAIMER @@ -0,0 +1,8 @@ +Apache Tuscany is an effort undergoing incubation at The Apache Software +Foundation (ASF), sponsored by the Apache Web Services PMC. Incubation is +required of all newly accepted projects until a further review indicates that +the infrastructure, communications, and decision making process have stabilized +in a manner consistent with other successful ASF projects. While incubation +status is not necessarily a reflection of the completeness or stability of the +code, it does indicate that the project has yet to be fully endorsed by the ASF. + diff --git a/sandbox/slaws/modules/domain-rework/LICENSE b/sandbox/slaws/modules/domain-rework/LICENSE new file mode 100644 index 0000000000..8aa906c321 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/LICENSE @@ -0,0 +1,205 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + diff --git a/sandbox/slaws/modules/domain-rework/NOTICE b/sandbox/slaws/modules/domain-rework/NOTICE new file mode 100644 index 0000000000..fdfa0e9faa --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/NOTICE @@ -0,0 +1,6 @@ +${pom.name} +Copyright (c) 2005 - 2008 The Apache Software Foundation + +This product includes software developed by +The Apache Software Foundation (http://www.apache.org/). + diff --git a/sandbox/slaws/modules/domain-rework/build-dojo.xml b/sandbox/slaws/modules/domain-rework/build-dojo.xml new file mode 100644 index 0000000000..6fd9897025 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/build-dojo.xml @@ -0,0 +1,92 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<project name="DojoZipInstaller"> + + + <property name="dojo.version" value="1.0.0"/> + <property name="unpack.location" value="${basedir}/src/main/resources/webroot/dojo"/> + + + <target name="check-dojo-installed"> + <condition property="already.installed" > + <available file="${localRepository}/dojo/dojo/${dojo.version}/dojo-${dojo.version}.zip"/> + </condition> + <condition property="maven.suffix" value=""> + <os family="unix"/> + </condition> + <condition property="maven.suffix" value=".bat"> + <os family="windows"/> + </condition> + </target> + + + <target name="check-dojo-unpacked"> + <condition property="already.unpacked" > + <available file="${unpack.location}"/> + </condition> + </target> + + <target name="install-dojo" depends="check-dojo-installed" unless="already.installed"> + <mkdir dir="${basedir}/target/dojo-download/"/> + <get src="http://download.dojotoolkit.org/release-${dojo.version}/dojo-release-${dojo.version}.zip" + dest="${basedir}/target/dojo-download/dojo-release-${dojo.version}.zip" + verbose="true" + usetimestamp="true"/> + <exec executable="mvn${maven.suffix}" dir="${basedir}" failonerror="false"> + <arg line="install:install-file -DgroupId=dojo -DartifactId=dojo -Dversion=${dojo.version} -Dpackaging=zip -DgeneratePom=true -Dfile=${basedir}/target/dojo-download/dojo-release-${dojo.version}.zip"/> + </exec> + </target> + + <target name="install-dojo-nomaven" depends="check-dojo-installed" unless="already.installed"> + <mkdir dir="${basedir}/target/dojo-download/"/> + <get src="http://download.dojotoolkit.org/release-${dojo.version}/dojo-release-${dojo.version}.zip" + dest="${basedir}/target/dojo-download/dojo-release-${dojo.version}.zip" + verbose="true" + usetimestamp="true"/> + <copy file="${basedir}/target/dojo-download/dojo-release-${dojo.version}.zip" + tofile="${localRepository}/dojo/dojo/${dojo.version}/dojo-${dojo.version}.zip"/> + </target> + + + <target name="unpack-dojo-files" depends="check-dojo-installed, check-dojo-unpacked" unless="already.unpacked"> + <fail message="dojo zip file not installed in local repository: ${localRepository}" unless="already.installed"/> + <mkdir dir="${basedir}/target/dojo-unpack-temp/"/> + <unzip src="${localRepository}/dojo/dojo/${dojo.version}/dojo-${dojo.version}.zip" + dest="${basedir}/target/dojo-unpack-temp/" + overwrite="false"> + <patternset> + <include name="dojo-release-${dojo.version}/dojo/**"/> + <exclude name="dojo-release-${dojo.version}/dojo/tests/**"/> + <include name="dojo-release-${dojo.version}/dijit/**"/> + <exclude name="dojo-release-${dojo.version}/dojox/**"/> + <exclude name="dojo-release-${dojo.version}/util/**"/> + </patternset> + </unzip> + <move file="${basedir}/target/dojo-unpack-temp/dojo-release-${dojo.version}" + tofile="${unpack.location}" + verbose="true"/> + <delete dir="${basedir}/target/dojo-unpack-temp/"/> + </target> + + + <target name="clean-dojo-files"> + <delete dir="${unpack.location}"/> + </target> +</project> diff --git a/sandbox/slaws/modules/domain-rework/pom.xml b/sandbox/slaws/modules/domain-rework/pom.xml new file mode 100644 index 0000000000..f256fbf0ab --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/pom.xml @@ -0,0 +1,264 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<project> + + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-modules</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + <relativePath>../pom.xml</relativePath> + </parent> + + <artifactId>tuscany-domain-rework</artifactId> + <name>Apache Tuscany SCA Domain Rework</name> + + <dependencies> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-assembly</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-assembly-xml</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-contribution-impl</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-contribution-xml</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-host-embedded</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-host-http</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-core-spi</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-domain-impl</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-node</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-node-api</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + </dependency> + + <dependency> + <groupId>org.apache.axis2</groupId> + <artifactId>axis2-adb</artifactId> + <version>1.3</version> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-implementation-java-runtime</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + <scope>runtime</scope> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-implementation-node</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + <scope>runtime</scope> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-implementation-node-runtime</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + <scope>runtime</scope> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-implementation-node-xml</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + <scope>runtime</scope> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-binding-ws-axis2</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + <scope>runtime</scope> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-binding-sca-axis2</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + <scope>runtime</scope> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-binding-jsonrpc</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + <scope>runtime</scope> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-binding-http</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + <scope>runtime</scope> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-implementation-resource</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + <scope>runtime</scope> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-implementation-widget</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + <scope>runtime</scope> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-host-tomcat</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + <scope>test</scope> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-workspace</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + <scope>test</scope> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-workspace-xml</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + <scope>test</scope> + </dependency> + + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-workspace-impl</artifactId> + <version>1.2-incubating-SNAPSHOT</version> + <scope>test</scope> + </dependency> + + </dependencies> + + <build> + <plugins> + <!--plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.1</version> + + <dependencies> + <dependency> + <groupId>ant</groupId> + <artifactId>ant-trax</artifactId> + <version>1.6.5</version> + </dependency> + </dependencies> + + <executions> + <execution> + <id>install-dojo</id> + <phase>validate</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <tasks> + <ant antfile="./build-dojo.xml" target="install-dojo"> + <property name="localRepository" value="${settings.localRepository}" /> + </ant> + </tasks> + </configuration> + </execution> + <execution> + <id>copy-dojo-files</id> + <phase>generate-resources</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <tasks> + <ant antfile="./build-dojo.xml" target="unpack-dojo-files"> + <property name="localRepository" value="${settings.localRepository}" /> + </ant> + </tasks> + </configuration> + </execution> + <execution> + <id>clean-dojo-files</id> + <phase>clean</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <tasks> + <ant antfile="./build-dojo.xml" target="clean-dojo-files"> + <property name="localRepository" value="${settings.localRepository}" /> + </ant> + </tasks> + </configuration> + </execution> + </executions> + </plugin--> + </plugins> + </build> +</project> diff --git a/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/BindingURICalculator.java b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/BindingURICalculator.java new file mode 100644 index 0000000000..c37188a5dd --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/BindingURICalculator.java @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.binding; + +import org.apache.tuscany.sca.assembly.Binding; + +/** + * A class with binding specific functions related to binding URI calculation + * + * @version $Rev$ $Date$ + */ +public interface BindingURICalculator { + + public String getBindingType(); + + public String getProtocol(Binding binding); + +} diff --git a/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/BindingURICalculatorExtensionPoint.java b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/BindingURICalculatorExtensionPoint.java new file mode 100644 index 0000000000..d0148381d6 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/BindingURICalculatorExtensionPoint.java @@ -0,0 +1,52 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.tuscany.sca.binding; + +import org.apache.tuscany.sca.assembly.Binding; + +/** + * An extension point for binding URI calculators + * + * @version $Rev$ $Date$ + */ +public interface BindingURICalculatorExtensionPoint { + + /** + * Add a BindingURICalculator using the contribution type as the key. + * + * @param bindingURICalculator The binding URI calculator + */ + void addBindingURICalculator(BindingURICalculator bindingURICalculator); + + /** + * Remove a BindingURICalculator. + * + * @param bindingURICalculator The binding URI calculator + */ + void removeBindingURICalculator(BindingURICalculator bindingURICalculator); + + /** + * Returns the BindingURICalculator for the given contribution type. + * + * @param binding The binding for which the URI calculator is required + * @return The binding URI calculator + */ + BindingURICalculator getBindingURICalculator(Binding binding); + +}
\ No newline at end of file diff --git a/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/DefaultBindingURICalculatorExtensionPoint.java b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/DefaultBindingURICalculatorExtensionPoint.java new file mode 100644 index 0000000000..ae8b33a006 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/DefaultBindingURICalculatorExtensionPoint.java @@ -0,0 +1,124 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.binding; + +import java.io.IOException; +import java.lang.reflect.Constructor; +import java.net.MalformedURLException; +import java.net.URL; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import org.apache.tuscany.sca.assembly.Binding; +import org.apache.tuscany.sca.contribution.service.ContributionException; +import org.apache.tuscany.sca.contribution.service.ContributionReadException; +import org.apache.tuscany.sca.contribution.util.ServiceDeclaration; +import org.apache.tuscany.sca.contribution.util.ServiceDiscovery; + +/** + * Default implementation of a binding URI calculator extension point. + * + * @version $Rev$ $Date$ + */ +public class DefaultBindingURICalculatorExtensionPoint implements BindingURICalculatorExtensionPoint { + + private Map<String, BindingURICalculator> bindingURICalculators = new HashMap<String, BindingURICalculator>(); + private boolean loaded; + + public DefaultBindingURICalculatorExtensionPoint() { + } + + public void addBindingURICalculator(BindingURICalculator bindingURICalculator) { + bindingURICalculators.put(bindingURICalculator.getBindingType(), bindingURICalculator); + } + + public void removeBindingURICalculator(BindingURICalculator bindingURICalculator) { + bindingURICalculators.remove(bindingURICalculator.getBindingType()); + } + + public BindingURICalculator getBindingURICalculator(Binding binding) { + loadbindingURICalculators(); + return bindingURICalculators.get(binding.getClass().getName()); + } + + private void loadbindingURICalculators() { + if (loaded) + return; + + // Get the bindingURICalculator service declarations + Set<ServiceDeclaration> bindingURICalculatorDeclarations; + try { + bindingURICalculatorDeclarations = ServiceDiscovery.getInstance().getServiceDeclarations(BindingURICalculator.class); + } catch (IOException e) { + throw new IllegalStateException(e); + } + + for (ServiceDeclaration bindingURICalculatorDeclaration: bindingURICalculatorDeclarations) { + Map<String, String> attributes = bindingURICalculatorDeclaration.getAttributes(); + + // Load a URL artifact bindingURICalculator + String bindingType = attributes.get("binding"); + + // Create a bindingURICalculator wrapper and register it + BindingURICalculator bindingURICalculator = new LazyBindingURICalculator(bindingType, bindingURICalculatorDeclaration); + addBindingURICalculator(bindingURICalculator); + } + + loaded = true; + } + + /** + * A facade for contribution bindingURICalculators. + */ + private static class LazyBindingURICalculator implements BindingURICalculator { + + private ServiceDeclaration bindingURICalculatorDeclaration; + private String bindingType; + private BindingURICalculator bindingURICalculator; + + private LazyBindingURICalculator(String contributionType, ServiceDeclaration bindingURICalculatorDeclaration) { + this.bindingURICalculatorDeclaration = bindingURICalculatorDeclaration; + this.bindingType = contributionType; + } + + public String getBindingType() { + return bindingType; + } + + public String getProtocol(Binding binding) { + return getbindingURICalculator().getProtocol(binding); + } + + private BindingURICalculator getbindingURICalculator() { + if (bindingURICalculator == null) { + try { + Class<BindingURICalculator> bindingURICalculatorClass = (Class<BindingURICalculator>)bindingURICalculatorDeclaration.loadClass(); + Constructor<BindingURICalculator> constructor = bindingURICalculatorClass.getConstructor(); + bindingURICalculator = constructor.newInstance(); + } catch (Exception e) { + throw new IllegalStateException(e); + } + } + return bindingURICalculator; + } + } +} diff --git a/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/feed/atom/AtomBindingURICalculator.java b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/feed/atom/AtomBindingURICalculator.java new file mode 100644 index 0000000000..97aa08f744 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/feed/atom/AtomBindingURICalculator.java @@ -0,0 +1,41 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.binding.feed.atom; + +import org.apache.tuscany.sca.assembly.Binding; +import org.apache.tuscany.sca.binding.BindingURICalculator; +import org.apache.tuscany.sca.binding.feed.AtomBinding; + +/** + * A class with binding specific functions related to binding URI calculation + * + * @version $Rev$ $Date$ + */ +public class AtomBindingURICalculator implements BindingURICalculator { + + public String getBindingType(){ + return AtomBinding.class.getName(); + } + + public String getProtocol(Binding binding){ + return "http"; + } + +} diff --git a/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/http/HTTPBindingURICalculator.java b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/http/HTTPBindingURICalculator.java new file mode 100644 index 0000000000..7d0f8fbc26 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/http/HTTPBindingURICalculator.java @@ -0,0 +1,40 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.binding.http; + +import org.apache.tuscany.sca.assembly.Binding; +import org.apache.tuscany.sca.binding.BindingURICalculator; + +/** + * A class with binding specific functions related to binding URI calculation + * + * @version $Rev$ $Date$ + */ +public class HTTPBindingURICalculator implements BindingURICalculator { + + public String getBindingType(){ + return HTTPBinding.class.getName(); + } + + public String getProtocol(Binding binding){ + return "http"; + } + +} diff --git a/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCBindingURICalculator.java b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCBindingURICalculator.java new file mode 100644 index 0000000000..1debd96286 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCBindingURICalculator.java @@ -0,0 +1,41 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.binding.jsonrpc; + +import org.apache.tuscany.sca.assembly.Binding; +import org.apache.tuscany.sca.binding.BindingURICalculator; + + +/** + * A class with binding specific functions related to binding URI calculation + * + * @version $Rev$ $Date$ + */ +public class JSONRPCBindingURICalculator implements BindingURICalculator { + + public String getBindingType(){ + return JSONRPCBinding.class.getName(); + } + + public String getProtocol(Binding binding){ + return "http"; + } + +} diff --git a/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/sca/SCABindingURICalculator.java b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/sca/SCABindingURICalculator.java new file mode 100644 index 0000000000..60b693f96b --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/sca/SCABindingURICalculator.java @@ -0,0 +1,41 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.binding.sca; + +import org.apache.tuscany.sca.assembly.Binding; +import org.apache.tuscany.sca.assembly.SCABinding; +import org.apache.tuscany.sca.binding.BindingURICalculator; + +/** + * A class with binding specific functions related to binding URI calculation + * + * @version $Rev$ $Date$ + */ +public class SCABindingURICalculator implements BindingURICalculator { + + public String getBindingType(){ + return SCABinding.class.getName(); + } + + public String getProtocol(Binding binding){ + return "http"; + } + +} diff --git a/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2BindingURICalculator.java b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2BindingURICalculator.java new file mode 100644 index 0000000000..515188b011 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2BindingURICalculator.java @@ -0,0 +1,41 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.binding.ws.axis2; + +import org.apache.tuscany.sca.assembly.Binding; +import org.apache.tuscany.sca.binding.BindingURICalculator; +import org.apache.tuscany.sca.binding.ws.WebServiceBinding; + +/** + * A class with binding specific functions related to binding URI calculation + * + * @version $Rev$ $Date$ + */ +public class Axis2BindingURICalculator implements BindingURICalculator { + + public String getBindingType(){ + return WebServiceBinding.class.getName(); + } + + public String getProtocol(Binding binding){ + return "http"; + } + +} diff --git a/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/domain/rework/ArtifactImpl.java b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/domain/rework/ArtifactImpl.java new file mode 100644 index 0000000000..ceff209344 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/domain/rework/ArtifactImpl.java @@ -0,0 +1,57 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.domain.rework; + +import java.io.Serializable; +import java.net.URL; +import java.util.ArrayList; +import java.util.List; + +import javax.xml.namespace.QName; + +import org.apache.tuscany.sca.domain.management.ContributionInfo; +/** + * Information relating to an exposed artifact in the contribution or composite + * + * @version $Rev$ $Date$ + */ +public class ArtifactImpl implements Serializable { + + static final long serialVersionUID = 7669181086005969428L; + + private String name; + private String URL; + + public String getName() { + return name; + } + + public void setName(String name){ + this.name = name; + } + + public String getURL() { + return URL; + } + + public void setURL(String URL){ + this.URL = URL; + } +} diff --git a/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/domain/rework/DomainService.java b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/domain/rework/DomainService.java new file mode 100644 index 0000000000..62dbe2c77b --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/domain/rework/DomainService.java @@ -0,0 +1,37 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.domain.rework; + +import java.util.List; + +import org.apache.tuscany.sca.contribution.Contribution; +import org.osoa.sca.annotations.Remotable; + +/** + * Domain level operations + * + * @version $Rev$ $Date$ + */ +@Remotable +public interface DomainService { + + public List<ArtifactImpl> getContributions(); + +} diff --git a/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/domain/rework/DomainServiceImpl.java b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/domain/rework/DomainServiceImpl.java new file mode 100644 index 0000000000..876e1be73a --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/domain/rework/DomainServiceImpl.java @@ -0,0 +1,638 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.domain.rework; + +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.io.FileOutputStream; +import java.io.FilenameFilter; +import java.io.IOException; +import java.io.InputStream; +import java.net.MalformedURLException; +import java.net.URI; +import java.net.URL; +import java.net.URLClassLoader; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.logging.Logger; + +import javax.xml.namespace.QName; +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; +import javax.xml.stream.XMLInputFactory; +import javax.xml.stream.XMLOutputFactory; +import javax.xml.stream.XMLStreamException; +import javax.xml.stream.XMLStreamReader; +import javax.xml.stream.XMLStreamWriter; + +import org.apache.tuscany.sca.assembly.AssemblyFactory; +import org.apache.tuscany.sca.assembly.Binding; +import org.apache.tuscany.sca.assembly.Component; +import org.apache.tuscany.sca.assembly.ComponentService; +import org.apache.tuscany.sca.assembly.Composite; +import org.apache.tuscany.sca.assembly.Reference; +import org.apache.tuscany.sca.assembly.builder.CompositeBuilder; +import org.apache.tuscany.sca.assembly.xml.CompositeProcessor; +import org.apache.tuscany.sca.assembly.xml.Constants; +import org.apache.tuscany.sca.contribution.Artifact; +import org.apache.tuscany.sca.contribution.Contribution; +import org.apache.tuscany.sca.contribution.ContributionFactory; +import org.apache.tuscany.sca.contribution.DefaultContributionFactory; +import org.apache.tuscany.sca.contribution.Export; +import org.apache.tuscany.sca.contribution.Import; +import org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint; +import org.apache.tuscany.sca.contribution.java.JavaExport; +import org.apache.tuscany.sca.contribution.java.JavaImport; +import org.apache.tuscany.sca.contribution.namespace.NamespaceExport; +import org.apache.tuscany.sca.contribution.namespace.NamespaceImport; +import org.apache.tuscany.sca.contribution.processor.ExtensiblePackageProcessor; +import org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor; +import org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor; +import org.apache.tuscany.sca.contribution.processor.PackageProcessor; +import org.apache.tuscany.sca.contribution.processor.PackageProcessorExtensionPoint; +import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; +import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; +import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessorExtensionPoint; +import org.apache.tuscany.sca.contribution.resolver.ExtensibleModelResolver; +import org.apache.tuscany.sca.contribution.resolver.ModelResolver; +import org.apache.tuscany.sca.contribution.resolver.ModelResolverExtensionPoint; +import org.apache.tuscany.sca.contribution.service.ContributionException; +import org.apache.tuscany.sca.contribution.service.ContributionListenerExtensionPoint; +import org.apache.tuscany.sca.contribution.service.ContributionReadException; +import org.apache.tuscany.sca.contribution.service.ContributionRepository; +import org.apache.tuscany.sca.contribution.service.ContributionWriteException; +import org.apache.tuscany.sca.contribution.service.ExtensibleContributionListener; +import org.apache.tuscany.sca.contribution.service.TypeDescriber; +import org.apache.tuscany.sca.contribution.service.impl.ContributionRepositoryImpl; +import org.apache.tuscany.sca.contribution.service.impl.PackageTypeDescriberImpl; +import org.apache.tuscany.sca.contribution.xml.ContributionMetadataDocumentProcessor; +import org.apache.tuscany.sca.core.ExtensionPointRegistry; +import org.apache.tuscany.sca.definitions.SCADefinitions; +import org.apache.tuscany.sca.definitions.xml.SCADefinitionsDocumentProcessor; +import org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime; +import org.apache.tuscany.sca.implementation.node.NodeImplementation; +import org.apache.tuscany.sca.policy.PolicyFactory; +import org.apache.tuscany.sca.workspace.DefaultWorkspaceFactory; +import org.apache.tuscany.sca.workspace.Workspace; +import org.apache.tuscany.sca.workspace.WorkspaceFactory; +import org.apache.tuscany.sca.workspace.configuration.impl.NodeAssigner; +import org.apache.tuscany.sca.workspace.configuration.impl.NodeInfo; +import org.apache.xml.serialize.OutputFormat; +import org.apache.xml.serialize.XMLSerializer; +import org.osoa.sca.ServiceRuntimeException; +import org.osoa.sca.annotations.Property; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; +import org.w3c.dom.Document; +import org.xml.sax.SAXException; + +/** + * Stores details of services exposed and retrieves details of remote services + * + * @version $Rev$ $Date$ + */ +@Scope("COMPOSITE") +@Service(interfaces = {DomainServiceInit.class, DomainService.class}) +public class DomainServiceImpl implements DomainServiceInit, DomainService { + + private final static Logger logger = Logger.getLogger(DomainServiceImpl.class.getName()); + + private ReallySmallRuntime runtime; + private String domainURI; + + private File uploaded; + private File repository; + + private ExtensionPointRegistry registry; + + private ContributionFactory contributionFactory; + private ContributionRepository contributionRepository; + + private WorkspaceFactory workspaceFactory; + private Workspace contributionWorkspace; + + private XMLInputFactory xmlFactory; + private XMLOutputFactory xmlOutputFactory; + + private PackageProcessor packageProcessor; + + private ExtensibleURLArtifactProcessor artifactProcessor; + + private ExtensibleStAXArtifactProcessor staxProcessor; + + private ExtensibleContributionListener contributionListener; + + private ModelResolverExtensionPoint modelResolvers; + + private ModelFactoryExtensionPoint modelFactories; + + private AssemblyFactory assemblyFactory; + + private ModelResolver domainModelResolver; + + private CompositeBuilder compositeBuilder; + + private CompositeProcessor compositeProcessor; + + private PolicyFactory policyFactory; + + private DocumentBuilder documentBuilder; + + private Composite domainComposite; + + @Property + protected String repositoryLocation; + + //@Reference + //protected Collection<NodeService> nodes; + + public DomainServiceImpl(){ + } + + // from tuscany-runtime + private List<URL> getJARsInFolder(File repository) { + + String[] jarNames = repository.list(new FilenameFilter() { + public boolean accept(File dir, String name) { + return name.endsWith(".jar"); + } + }); + + List<URL> contributionJars = new ArrayList<URL>(); + if (jarNames != null) { + for (String jar : jarNames) { + try { + contributionJars.add(new File(repository, jar).toURL()); + } catch (MalformedURLException e) { + throw new RuntimeException(e); + } + } + } + + return contributionJars; + } + + // from domain impl + private String getComposite(Composite composite){ + ExtensionPointRegistry registry = runtime.getExtensionPointRegistry(); + + StAXArtifactProcessorExtensionPoint staxProcessors = + registry.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class); + + StAXArtifactProcessor<Composite> processor = staxProcessors.getProcessor(Composite.class); + + ByteArrayOutputStream bos = new ByteArrayOutputStream(); + try { + XMLOutputFactory outputFactory = XMLOutputFactory.newInstance(); + //outputFactory.setProperty("javax.xml.stream.isPrefixDefaulting",Boolean.TRUE); + XMLStreamWriter writer = outputFactory.createXMLStreamWriter(bos); + + processor.write(composite, writer); + writer.flush(); + writer.close(); + } catch (Exception ex) { + System.out.println(ex.toString()); + } + + String compositeString = bos.toString(); + + return compositeString; + } + + // from ContributionService + private void findContributionArtifacts(Contribution contribution){ + try { + // read contribution meta data + URL contributionURL = new URL(contribution.getLocation()); + URL[] clUrls = {contributionURL}; + URLClassLoader cl = new URLClassLoader(clUrls, null); + + ContributionMetadataDocumentProcessor metadataDocumentProcessor = + new ContributionMetadataDocumentProcessor(staxProcessor, xmlFactory); + + for (String path: new String[]{ + Contribution.SCA_CONTRIBUTION_GENERATED_META, + Contribution.SCA_CONTRIBUTION_META}) { + URL url = cl.getResource(path); + if (url != null) { + Contribution tmpContribution = metadataDocumentProcessor.read(contributionURL, URI.create(path), url); + contribution.getImports().addAll(tmpContribution.getImports()); + contribution.getExports().addAll(tmpContribution.getExports()); + contribution.getDeployables().addAll(tmpContribution.getDeployables()); + } + } + + // set the model resolver + ModelResolver modelResolver = new ExtensibleModelResolver(contribution, modelResolvers, modelFactories, domainModelResolver); + contribution.setModelResolver(modelResolver); + + // find all the contribution artifacts + InputStream contributionStream = contributionURL.openStream(); + List<URI> contributionArtifacts = this.packageProcessor.getArtifacts(contributionURL, contributionStream); + + // add the artifacts to the contribution model + for (URI anArtifactUri : contributionArtifacts) { + URL artifactURL = packageProcessor.getArtifactURL(new URL(contribution.getLocation()), anArtifactUri); + System.out.println(" Artifact URL: " + artifactURL.toString()); + Artifact artifact = contributionFactory.createArtifact(); + artifact.setURI(anArtifactUri.toString()); + artifact.setLocation(artifactURL.toString()); + contribution.getArtifacts().add(artifact); + modelResolver.addModel(artifact); + } + + } catch(Exception ex){ + logger.warning(ex.toString()); + } + } + + private void readContributionArtifacts(Contribution contribution){ + try { + // add the artifacts to the contribution model + for (Artifact artifact : contribution.getArtifacts()) { + Object model = null; + + // WARNING - I've missed out Venkat's "applies to" function to make life a + // little clearer + model = artifactProcessor.read(new URL(contribution.getLocation()), + new URI(artifact.getURI()), + new URL(artifact.getLocation())); + + if (model != null) { + artifact.setModel(model); + + // Add the loaded model to the model resolver + contribution.getModelResolver().addModel(model); + + if ( model instanceof Composite) { + ((Composite)model).setURI(artifact.getURI()); + } + + /* + if ( model instanceof SCADefinitions ) { + contributionSCADefinitions.add((SCADefinitions)model); + updatePolicySetMap((SCADefinitions)model); + } + */ + } + + } + + } catch(Exception ex){ + logger.warning(ex.toString()); + } + } + + private void resolveContributionArtifacts(Contribution contribution){ + try { + for (Artifact artifact : contribution.getArtifacts()) { + // resolve the model object + if (/*(artifact.getURI().endsWith(".composite") == false) &&*/ (artifact.getModel() != null)) { + artifactProcessor.resolve(artifact.getModel(), contribution.getModelResolver()); + } + } + } catch(Exception ex){ + logger.warning(ex.toString()); + } + } + + /* + private void resolveComposite(Contribution contribution, Composite composite){ + try { + artifactProcessor.resolve(composite, contribution.getModelResolver()); + } catch(Exception ex){ + logger.warning(ex.toString()); + } + } + */ + + + + + /** + * A test method to fire up the various steps in the process of handling contributions + * So I can get to the stage of being able to process contributions + * TODO - replace with real workspace that Sebastien is working on + */ + public void test(){ + + try { + // set up the repository where contributions will be stored + repository = new File(repositoryLocation); + + if ((!repository.exists()) || (!repository.isDirectory())){ + logger.warning("Can't find repository - " + repositoryLocation); + } + + // set up the dummy location where contributions are uploaded to + String uploadedLocation = repository.getParent() + "/uploaded"; + uploaded = new File(uploadedLocation); + + if ((!uploaded.exists()) || (!uploaded.isDirectory())){ + logger.warning("Can't find uploaded dir"); + } + + // create the repository and the workspace + contributionRepository = new ContributionRepositoryImpl(repositoryLocation, + XMLInputFactory.newInstance()); + contributionWorkspace = workspaceFactory.createWorkspace(); + + + // pretend that contributions are being added by reading the list of jars in the + // uploaded dir + List<URL> contributionJars = getJARsInFolder(uploaded); + + // copy uploaded contributions to the repository + // TODO - no clear how this relates to the workspace. Need more info on workspace + // but for now just create a contribution model and add to the workspace + for (URL contributionURL : contributionJars){ + String contributionName = new File(contributionURL.toURI()).getName(); + System.out.println("Processing: " + contributionName); + + contributionRepository.store(contributionName, contributionURL); + + Contribution contribution = contributionFactory.createContribution(); + contribution.setURI(contributionName); + contribution.setLocation(contributionURL.toString()); + + contributionWorkspace.getContributions().add(contribution); + } + + // find the artifacts in the contributions in the workspace + for (Contribution contribution : contributionWorkspace.getContributions()){ + findContributionArtifacts(contribution); + } + + // read the artifacts in the contributions in the workspace + for (Contribution contribution : contributionWorkspace.getContributions()){ + readContributionArtifacts(contribution); + } + + // resolve the artifacts in the contributions in the workspace + for (Contribution contribution : contributionWorkspace.getContributions()){ + resolveContributionArtifacts(contribution); + } + + /* + // parse the contributions into a model + for (URL contributionURL : contributions){ + + Contribution contribution = runtime.getContributionService().contribute(new File(contributionURL.toURI()).getName(), + contributionURL, + false); + // workspace or repository? + //contributionRepository.addContribution(contribution); + contributionWorkspace.getContributions().add(contribution); + } + */ + + // For interest look at contribution contents + for (Contribution contribution : contributionWorkspace.getContributions()){ + System.out.println("Contribution URI: " + contribution.getURI()); + + for (Artifact artifact : contribution.getArtifacts()){ + System.out.println(" Artifact URI: " + artifact.getURI().toString()); + } + + // report which contribution satisfies which import + for (Import anImport : contribution.getImports()){ + if (anImport instanceof JavaImport){ + System.out.println(" Java Import: " + ((JavaImport)anImport).getPackage()); + } + if (anImport instanceof NamespaceImport){ + System.out.println(" Namespace Import: " + ((NamespaceImport)anImport).getNamespace()); + } + /* + for (Contribution importContribution : anImport.getExportContributions()){ + System.out.println(" Import contribution: " + importContribution.getURI().toString()); + } + */ + } + + for (Export anExport : contribution.getExports()){ + if (anExport instanceof JavaExport){ + System.out.println(" Java Export: " + ((JavaExport)anExport).getPackage()); + } + if (anExport instanceof NamespaceExport){ + System.out.println(" Namespace Export: " + ((NamespaceExport)anExport).getNamespace()); + } + } + + for (Composite composite : contribution.getDeployables()){ + System.out.println(" Deployable Composite URI: " + composite.getName().toString()); + } + } + + // create a domain level virtual composite + AssemblyFactory assemblyFactory = runtime.getAssemblyFactory(); + domainComposite = assemblyFactory.createComposite(); + domainComposite.setName(new QName(Constants.SCA10_NS, "domainComposite")); + domainComposite.setURI(domainURI); + + // Use the deployable composite list to find the composites to load into the domain + // TODO - there will be some selection process here + for (Contribution contribution : contributionWorkspace.getContributions()){ + for (Composite deployableComposite : contribution.getDeployables()) { + Composite deployable = contribution.getModelResolver().resolveModel(Composite.class, deployableComposite); + domainComposite.getIncludes().add(deployable); + } + } + + + System.out.println("\nVANILLA"); + System.out.println("========================================================================"); + writeComposite(domainComposite); + for (Composite composite : domainComposite.getIncludes()){ + writeComposite(composite); + } + + // assign individual deployed composites to nodes + // Use the node model on disc to do this in lieu of user input + URL contributionURL = DomainServiceImpl.class.getClassLoader().getResource("domain/nodes.composite"); + Contribution contribution = contributionFactory.createContribution(); + contribution.setURI("nodes"); + String contributionURLString = contributionURL.toString(); + contribution.setLocation(contributionURLString.substring(0, contributionURLString.lastIndexOf("nodes.composite"))); + + findContributionArtifacts(contribution); + readContributionArtifacts(contribution); + resolveContributionArtifacts(contribution); + + // find node.composite + Artifact nodeArtifact = null; + for (Artifact artifact : contribution.getArtifacts()){ + System.out.println(" Artifact URI: " + artifact.getURI()); + if (artifact.getURI().equals("nodes.composite")){ + nodeArtifact = artifact; + } + } + + Composite nodes = (Composite)nodeArtifact.getModel(); + + // Configure the endpoints of services based on the defaults found in the + // nodes configuration + NodeAssigner nodeAssigner = new NodeAssigner(registry); + + for (Component node : nodes.getComponents()){ + QName compositeName = ((NodeImplementation)node.getImplementation()).getComposite().getName(); + + Composite compositeModel = null; + + // find the named composite in the domain + for (Composite deployable : domainComposite.getIncludes()){ + if (deployable.getName().equals(compositeName)){ + compositeModel = deployable; + break; + } + } + + if (compositeModel != null){ + // configure the composite + + NodeInfo nodeInfo = new NodeInfo(node); + nodeAssigner.assignEndpointsToServiceBinding(nodeInfo, compositeModel, null); + } + } + + System.out.println("\nAFTER ENDPOINT INITIALIZATION"); + System.out.println("========================================================================"); + writeComposite(domainComposite); + for (Composite composite : domainComposite.getIncludes()){ + writeComposite(composite); + } + + // build the domain composite + compositeBuilder.build(domainComposite); + + // print out the domain composite + System.out.println("\nAFTER BUILDING"); + System.out.println("========================================================================"); + writeComposite(domainComposite); + for (Composite composite : domainComposite.getIncludes()){ + writeComposite(composite); + } + + // remove the contributions from the repository + for (URL jarURL : contributionJars){ + contributionRepository.remove(new File(jarURL.toURI()).getName()); + } + + } catch (Exception ex) { + logger.warning(ex.toString()); + } + + } + + private void writeComposite(Composite composite) throws Exception { + // First write to a byte stream + ByteArrayOutputStream bos = new ByteArrayOutputStream(); + XMLStreamWriter writer = xmlOutputFactory.createXMLStreamWriter(bos); + compositeProcessor.write(composite, writer); + + // Parse again to pretty format the document + Document document = documentBuilder.parse(new ByteArrayInputStream(bos.toByteArray())); + + OutputFormat format = new OutputFormat(); + format.setIndenting(true); + format.setIndent(2); + + // Write to domain.composite + //FileOutputStream os = new FileOutputStream(new File(compositeFileName)); + XMLSerializer serializer = new XMLSerializer(System.out, format); + serializer.serialize(document); + + } + + // DomainServiceInit methods + public void setDomainURI(String domainURI){ + this.domainURI = domainURI; + } + + // We use an existing runtime to save much repeated work in this test class + // TODO - look at how we get hold of these things for real + public void setRuntime(ReallySmallRuntime domainRuntime){ + try { + this.runtime = domainRuntime; + + registry = runtime.getExtensionPointRegistry(); + + xmlFactory = XMLInputFactory.newInstance(); + + TypeDescriber describer = new PackageTypeDescriberImpl(); + packageProcessor = new ExtensiblePackageProcessor(registry.getExtensionPoint(PackageProcessorExtensionPoint.class), describer); + + artifactProcessor = new ExtensibleURLArtifactProcessor(registry.getExtensionPoint(URLArtifactProcessorExtensionPoint.class)); + + staxProcessor = new ExtensibleStAXArtifactProcessor(registry.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class), xmlFactory, XMLOutputFactory.newInstance()); + + contributionListener = new ExtensibleContributionListener(registry.getExtensionPoint(ContributionListenerExtensionPoint.class)); + + modelResolvers = registry.getExtensionPoint(ModelResolverExtensionPoint.class); + + modelFactories = registry.getExtensionPoint(ModelFactoryExtensionPoint.class); + + assemblyFactory = runtime.getAssemblyFactory(); + + contributionFactory = new DefaultContributionFactory(); + + workspaceFactory = new DefaultWorkspaceFactory(); + + URLArtifactProcessorExtensionPoint documentProcessors = registry.getExtensionPoint(URLArtifactProcessorExtensionPoint.class); + SCADefinitionsDocumentProcessor definitionsDocumentProcessor = (SCADefinitionsDocumentProcessor)documentProcessors.getProcessor(SCADefinitions.class); + domainModelResolver = definitionsDocumentProcessor.getSCADefinitionsResolver(); + + compositeBuilder = runtime.getCompositeBuilder(); + + policyFactory = modelFactories.getFactory(PolicyFactory.class); + compositeProcessor = new CompositeProcessor(contributionFactory, assemblyFactory, policyFactory, staxProcessor); + + xmlOutputFactory = modelFactories.getFactory(XMLOutputFactory.class); + + documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); + + /* + this.domainResolver = domainResolver; + this.systemSCADefinitions = scaDefinitions; + */ + + } catch (Exception ex) { + System.out.println("Exception setting runtime on domain service " + ex.toString()); + } + } + + // DomainService methods + public List<ArtifactImpl> getContributions(){ + List<ArtifactImpl> artifacts = new ArrayList<ArtifactImpl>(); + + for (Contribution contribution : contributionWorkspace.getContributions()){ + ArtifactImpl artifact = new ArtifactImpl(); + + artifact.setName(contribution.getURI()); + artifact.setURL(contribution.getLocation()); + artifacts.add(artifact); + } + + return artifacts; + } + +} diff --git a/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/domain/rework/DomainServiceInit.java b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/domain/rework/DomainServiceInit.java new file mode 100644 index 0000000000..1df7cf1e57 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/domain/rework/DomainServiceInit.java @@ -0,0 +1,43 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.domain.rework; + +import java.util.List; + +import org.apache.tuscany.sca.domain.DomainException; +import org.apache.tuscany.sca.domain.management.DomainInfo; +import org.apache.tuscany.sca.domain.management.NodeInfo; +import org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime; +import org.osoa.sca.annotations.Remotable; + +/** + * Domain configuration operations + * + * @version $Rev$ $Date$ + */ +public interface DomainServiceInit { + + public void setRuntime(ReallySmallRuntime domainRuntime); + public void setDomainURI(String domainURI); + + + public void test(); + +} diff --git a/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/domain/rework/Launcher.java b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/domain/rework/Launcher.java new file mode 100644 index 0000000000..2ec8d23222 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/domain/rework/Launcher.java @@ -0,0 +1,225 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.domain.rework; + +import java.io.ByteArrayOutputStream; +import java.io.Externalizable; +import java.io.File; +import java.net.URI; +import java.net.URL; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.Executors; +import java.util.concurrent.ScheduledExecutorService; +import java.util.logging.Level; +import java.util.logging.Logger; + +import javax.xml.namespace.QName; +import javax.xml.stream.XMLOutputFactory; +import javax.xml.stream.XMLStreamWriter; + +import org.apache.tuscany.sca.assembly.AssemblyFactory; +import org.apache.tuscany.sca.assembly.Component; +import org.apache.tuscany.sca.assembly.ComponentService; +import org.apache.tuscany.sca.assembly.Composite; +import org.apache.tuscany.sca.assembly.CompositeService; +import org.apache.tuscany.sca.assembly.SCABinding; +import org.apache.tuscany.sca.assembly.SCABindingFactory; +import org.apache.tuscany.sca.assembly.Service; +import org.apache.tuscany.sca.assembly.builder.DomainBuilder; +import org.apache.tuscany.sca.assembly.xml.Constants; +import org.apache.tuscany.sca.contribution.Artifact; +import org.apache.tuscany.sca.contribution.Contribution; +import org.apache.tuscany.sca.contribution.DeployedArtifact; +import org.apache.tuscany.sca.contribution.Export; +import org.apache.tuscany.sca.contribution.Import; +import org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint; +import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; +import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; +import org.apache.tuscany.sca.contribution.service.ContributionService; +import org.apache.tuscany.sca.core.ExtensionPointRegistry; +import org.apache.tuscany.sca.core.assembly.ActivationException; +import org.apache.tuscany.sca.core.context.ServiceReferenceImpl; +import org.apache.tuscany.sca.databinding.impl.XSDDataTypeConverter.Base64Binary; +import org.apache.tuscany.sca.domain.DomainException; +import org.apache.tuscany.sca.domain.SCADomain; +import org.apache.tuscany.sca.domain.SCADomainEventService; +import org.apache.tuscany.sca.domain.SCADomainSPI; +import org.apache.tuscany.sca.domain.management.SCADomainManagerInitService; +import org.apache.tuscany.sca.domain.model.CompositeModel; +import org.apache.tuscany.sca.domain.model.ContributionModel; +import org.apache.tuscany.sca.domain.model.DomainModel; +import org.apache.tuscany.sca.domain.model.DomainModelFactory; +import org.apache.tuscany.sca.domain.model.NodeModel; +import org.apache.tuscany.sca.domain.model.ServiceModel; +import org.apache.tuscany.sca.domain.model.NodeModel.LifecyleState; +import org.apache.tuscany.sca.domain.model.impl.DomainModelFactoryImpl; +import org.apache.tuscany.sca.domain.model.impl.NodeModelImpl; +import org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime; +import org.apache.tuscany.sca.host.http.ServletHost; +import org.apache.tuscany.sca.host.http.ServletHostExtensionPoint; +import org.apache.tuscany.sca.interfacedef.InterfaceContract; +import org.apache.tuscany.sca.interfacedef.java.JavaInterfaceFactory; +import org.apache.tuscany.sca.node.NodeException; +import org.apache.tuscany.sca.node.NodeFactoryImpl; +import org.apache.tuscany.sca.node.util.SCAContributionUtil; +import org.apache.tuscany.sca.runtime.RuntimeComponent; +import org.apache.tuscany.sca.runtime.RuntimeComponentContext; +import org.apache.tuscany.sca.runtime.RuntimeComponentReference; +import org.osoa.sca.CallableReference; +import org.osoa.sca.ServiceReference; +import org.osoa.sca.ServiceRuntimeException; + +/** + * The SCA domain repository that manages domain contributions + * + * @version $Rev$ $Date$ + */ +public class Launcher { + + private final static Logger logger = Logger.getLogger(Launcher.class.getName()); + + + // class loader used to get the runtime going + private ClassLoader domainClassLoader; + + // domain management application runtime + private ReallySmallRuntime domainRepositoryRuntime; + private ContributionService domainRepositoryContributionService; + private Contribution domainRepositoryContribution; + private Composite domainRepositoryComposite; + + // domain service + private DomainServiceInit domainService; + + // Implementation methods + + /** + * Create a domain giving the URI for the domain. + * + * @throws DomainException + */ + public Launcher() throws DomainException { + this.domainClassLoader = Launcher.class.getClassLoader(); + init(); + } + + /** + * Create a runtime for the repository app + * TODO: we need a better wrapper for this that isn't an SCADomain - too confusing! + */ + protected void init() throws DomainException { + try { + + // create a runtime for the domain repository services to run on + domainRepositoryRuntime = new ReallySmallRuntime(domainClassLoader); + domainRepositoryRuntime.start(); + + // Create an in-memory domain level management composite + AssemblyFactory assemblyFactory = domainRepositoryRuntime.getAssemblyFactory(); + domainRepositoryComposite = assemblyFactory.createComposite(); + domainRepositoryComposite.setName(new QName(Constants.SCA10_NS, "domainManagement")); + domainRepositoryComposite.setURI("domainManagement"); + + // Find the composite that will configure the domain + String domainCompositeName = "domain/domain.composite"; + URL contributionURL = SCAContributionUtil.findContributionFromResource(domainClassLoader, domainCompositeName); + + + if ( contributionURL != null ){ + logger.log(Level.INFO, "Domain configured from " + contributionURL); + + // add domain.composite to the management domain + domainRepositoryContributionService = domainRepositoryRuntime.getContributionService(); + Contribution contribution = null; + contribution = domainRepositoryContributionService.contribute("domainRepository", + contributionURL, + false); + + // update the runtime for all SCA Definitions processed from the contribution. + // so that the policyset determination done during 'build' has the all the defined + // intents and policysets from the management contribution + domainRepositoryRuntime.updateSCADefinitions(domainRepositoryContributionService.getContributionSCADefinitions()); + + Composite composite = null; + for (Artifact artifact: contribution.getArtifacts()) { + if (domainCompositeName.equals(artifact.getURI())) { + composite = (Composite)artifact.getModel(); + } + } + + if (composite != null) { + + domainRepositoryRuntime.buildComposite(composite); + domainRepositoryRuntime.getCompositeActivator().activate(composite); + domainRepositoryRuntime.getCompositeActivator().start(composite); + + // find the domain service + Component component = null; + + for (Component compositeComponent: composite.getComponents()) { + if (compositeComponent.getName().equals("DomainService")) { + component = compositeComponent; + } + } + + RuntimeComponentContext componentContext = ((RuntimeComponent)component).getComponentContext(); + domainService = componentContext.createSelfReference(DomainServiceInit.class, "DomainServiceInit").getService(); + + // set up the domain service. Could work out what the URI + // is by looking at the service URL or could put it in the + // config file + domainService.setDomainURI("http://localhost:8080"); + domainService.setRuntime(domainRepositoryRuntime); + + } else { + throw new ActivationException("Domain repository contribution " + + contributionURL + + " found but could not be loaded"); + } + } else { + throw new ActivationException("Domain repository contribution " + + domainCompositeName + + " not found on the classpath"); + } + + + } catch(Exception ex) { + throw new DomainException(ex); + } + } + + public static void main(String[] args) throws Exception { + System.out.println("Starting ..."); + + Launcher domainLauncher = new Launcher(); + + System.out.println("domain repository started"); + + // start contribution processing + domainLauncher.domainService.test(); + + System.out.println("Running ..."); + // System.in.read(); + + + System.out.println("Stopping ..."); + } +} diff --git a/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/domain/rework/NodeService.java b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/domain/rework/NodeService.java new file mode 100644 index 0000000000..564cdeca65 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/domain/rework/NodeService.java @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.domain.rework; + +import org.apache.tuscany.sca.domain.management.DomainInfo; +import org.apache.tuscany.sca.domain.management.NodeInfo; +import org.osoa.sca.annotations.Remotable; + +/** + * Node configuration operations + * + * @version $Rev$ $Date$ + */ +@Remotable +public interface NodeService { + +} diff --git a/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/workspace/configuration/impl/NodeAssigner.java b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/workspace/configuration/impl/NodeAssigner.java new file mode 100644 index 0000000000..13de5db234 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/workspace/configuration/impl/NodeAssigner.java @@ -0,0 +1,300 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.workspace.configuration.impl; + +import java.net.InetAddress; +import java.net.MalformedURLException; +import java.net.URI; +import java.net.URL; +import java.net.UnknownHostException; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.logging.Logger; + +import org.apache.tuscany.sca.assembly.Binding; +import org.apache.tuscany.sca.assembly.Component; +import org.apache.tuscany.sca.assembly.ComponentProperty; +import org.apache.tuscany.sca.assembly.ComponentReference; +import org.apache.tuscany.sca.assembly.ComponentService; +import org.apache.tuscany.sca.assembly.Composite; +import org.apache.tuscany.sca.assembly.Implementation; +import org.apache.tuscany.sca.assembly.Property; +import org.apache.tuscany.sca.assembly.Reference; +import org.apache.tuscany.sca.assembly.SCABinding; +import org.apache.tuscany.sca.assembly.SCABindingFactory; +import org.apache.tuscany.sca.assembly.Service; +import org.apache.tuscany.sca.assembly.builder.ComponentPreProcessor; +import org.apache.tuscany.sca.assembly.builder.CompositeBuilderException; +import org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl; +import org.apache.tuscany.sca.assembly.xml.Constants; +import org.apache.tuscany.sca.binding.BindingURICalculator; +import org.apache.tuscany.sca.binding.DefaultBindingURICalculatorExtensionPoint; +import org.apache.tuscany.sca.contribution.Contribution; +import org.apache.tuscany.sca.contribution.Export; +import org.apache.tuscany.sca.contribution.Import; +import org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint; +import org.apache.tuscany.sca.core.ExtensionPointRegistry; +import org.apache.tuscany.sca.host.http.ServletMappingException; +import org.apache.tuscany.sca.interfacedef.InterfaceContractMapper; +import org.apache.tuscany.sca.interfacedef.impl.InterfaceContractMapperImpl; +import org.apache.tuscany.sca.policy.IntentAttachPointType; +import org.apache.tuscany.sca.policy.IntentAttachPointTypeFactory; +import org.apache.tuscany.sca.policy.PolicySetAttachPoint; +import org.apache.tuscany.sca.workspace.Workspace; + +/** + * Changes the configuration of a composite to effect assignment to a node + * + * @version $Rev$ $Date$ + */ +public class NodeAssigner { + + private final static Logger logger = Logger.getLogger(NodeAssigner.class.getName()); + + SCABindingFactory scaBindingFactory; + IntentAttachPointTypeFactory intentAttachPointTypeFactory; + DefaultBindingURICalculatorExtensionPoint bindingURICalcualtorExtensionPoint; + + /** + * Constructs a new NodeAssigner + */ + public NodeAssigner(ExtensionPointRegistry registry) { + + //Get factory extension point + ModelFactoryExtensionPoint factories = registry.getExtensionPoint(ModelFactoryExtensionPoint.class); + + scaBindingFactory = factories.getFactory(SCABindingFactory.class); + IntentAttachPointTypeFactory intentAttachPointTypeFactory = factories.getFactory(IntentAttachPointTypeFactory.class); + + //InterfaceContractMapper mapper = new InterfaceContractMapperImpl(); + + bindingURICalcualtorExtensionPoint = new DefaultBindingURICalculatorExtensionPoint(); + } + + + public void assignEndpointsToServiceBinding(NodeInfo nodeInfo, Composite composite, String uri){ + + String parentComponentURI = uri; + + // Process nested composites recursively + for (Component component : composite.getComponents()) { + + // Initialize component URI + String componentURI; + if (parentComponentURI == null) { + componentURI = component.getName(); + } else { + componentURI = URI.create(parentComponentURI + '/').resolve(component.getName()).toString(); + } + component.setURI(componentURI); + + Implementation implementation = component.getImplementation(); + if (implementation instanceof Composite) { + + // Process nested composite + assignEndpointsToServiceBinding(nodeInfo, (Composite)implementation, componentURI); + } + } + + // Initialize composite service binding URIs + List<Service> compositeServices = composite.getServices(); + for (Service service : compositeServices) { + // Set default binding names + + // Create default SCA binding + if (service.getBindings().isEmpty()) { + SCABinding scaBinding = createSCABinding(); + service.getBindings().add(scaBinding); + } + + // Initialize binding names and URIs + for (Binding binding : service.getBindings()) { + constructBindingName(service, binding); + constructBindingURI(parentComponentURI, composite, service, binding, nodeInfo); + } + } + + // Initialize component service binding URIs + for (Component component : composite.getComponents()) { + for (ComponentService service : component.getServices()) { + + // Create default SCA binding + if (service.getBindings().isEmpty()) { + SCABinding scaBinding = createSCABinding(); + service.getBindings().add(scaBinding); + } + + // Initialize binding names and URIs + for (Binding binding : service.getBindings()) { + + constructBindingName(service, binding); + constructBindingURI(component, service, binding, nodeInfo); + } + } + } + } + + private SCABinding createSCABinding() { + SCABinding scaBinding = scaBindingFactory.createSCABinding(); + IntentAttachPointType bindingType = intentAttachPointTypeFactory.createBindingType(); + bindingType.setName(Constants.BINDING_SCA_QNAME); + bindingType.setUnresolved(true); + ((PolicySetAttachPoint)scaBinding).setType(bindingType); + + return scaBinding; + } + + private void constructBindingName(Service service, Binding binding){ + + // set the default binding name if one is required + // if there is no name on the binding then set it to the service name + if (binding.getName() == null){ + binding.setName(service.getName()); + + // if multiple bindings don't have a name raise an error as + // binding must be uniquely named + for (Binding serviceBinding : service.getBindings()){ + if ((!binding.equals(serviceBinding)) && + (serviceBinding.getName().equals(service.getName()))){ + // TODO collate errors + logger.warning("Multiple bindings for service " + service.getName() + " have no name"); + } + } + } + } + + /** + * URI construction from Assembly spec section 1.7.2 + * @return + */ + private void constructBindingURI(String parentComponentURI, Composite composite, Service service, Binding binding, NodeInfo nodeInfo ) { + // This is a composite service so there is no component to provide a component URI + // The path to this composite (through nested composites) is used. + constructBindingURI(parentComponentURI, service, binding, composite.getServices().size() > 1, nodeInfo); + } + + private void constructBindingURI(Component component, Service service, Binding binding, NodeInfo nodeInfo ) { + String componentURIString = null; + + // if a URI is specified on the component use it otherwise use the component name + if (component.getURI() != null){ + componentURIString = component.getURI(); + } else { + componentURIString = component.getName(); + } + + constructBindingURI(componentURIString, service, binding, component.getServices().size() > 1, nodeInfo); + } + + private void constructBindingURI(String componentURIString, Service service, Binding binding, boolean includeServiceBindingURI, NodeInfo nodeInfo ){ + + try { + URI baseURI = null; + URI componentURI = null; + URI serviceBindingURI = null; + + // calculate the service binding URI + if (binding.getURI() == null){ + serviceBindingURI = new URI(binding.getName()); + } else { + serviceBindingURI = new URI(binding.getURI()); + } + + // if the user has provided an absolute binding URI then use it + if (serviceBindingURI != null && serviceBindingURI.isAbsolute()){ + binding.setURI(serviceBindingURI.toString()); + return; + } + + // calculate the component URI + if (componentURIString != null) { + componentURI = new URI(componentURIString); + } else { + componentURI = null; + } + + // if the user has provided an absolute component URI then use it + if (componentURI != null && componentURI.isAbsolute()){ + binding.setURI(concatenateModelURI(null, componentURI, serviceBindingURI, includeServiceBindingURI).toString()); + return; + } + + // calculate the base URI + + // get the protocol for this binding/URI + BindingURICalculator uriCalculator = bindingURICalcualtorExtensionPoint.getBindingURICalculator(binding); + + if (uriCalculator != null){ + logger.warning("Binding calculator found for binding " + binding.getName() + " " + binding.getClass().getName()); + String protocol = uriCalculator.getProtocol(binding); + + // find the default binding with the right protocol + Binding defaultBinding = nodeInfo.getBindingDefault(binding, protocol); + + if (defaultBinding != null){ + baseURI = new URI(defaultBinding.getURI()); + } else { + baseURI = null; + } + + } else { + logger.warning("Binding calculator not found for binding " + binding.getName() + " " + binding.getClass().getName()); + baseURI = null; + } + + binding.setURI(concatenateModelURI(baseURI, componentURI, serviceBindingURI,includeServiceBindingURI).toString()); + } catch (Exception ex){ + // TODO collate errors + logger.warning("Error during URL creation " + ex.toString()); + } + } + + private URI concatenateModelURI(URI baseURI, URI componentURI, URI serviceBindingURI, boolean includeServiceBindingURI){ + + if (baseURI == null){ + if (componentURI == null){ + return serviceBindingURI; + } else { + if (includeServiceBindingURI){ + return componentURI.resolve("/").resolve(serviceBindingURI); + } else { + return componentURI; + } + } + } else { + if (componentURI == null){ + if (includeServiceBindingURI){ + return baseURI.resolve("/").resolve(serviceBindingURI); + } else { + return baseURI; + } + } else { + if (includeServiceBindingURI){ + return baseURI.resolve("/").resolve(componentURI).resolve("/").resolve(serviceBindingURI); + } else { + return baseURI.resolve("/").resolve(componentURI); + } + } + } + } +} diff --git a/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/workspace/configuration/impl/NodeInfo.java b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/workspace/configuration/impl/NodeInfo.java new file mode 100644 index 0000000000..71a45a5558 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/java/org/apache/tuscany/sca/workspace/configuration/impl/NodeInfo.java @@ -0,0 +1,63 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.workspace.configuration.impl; + +import java.net.URI; +import java.net.URISyntaxException; +import java.util.HashMap; +import java.util.Map; + +import org.apache.tuscany.sca.assembly.Binding; +import org.apache.tuscany.sca.assembly.Component; +import org.apache.tuscany.sca.assembly.ComponentService; + +/** + * A class which wraps a node component and provides helper methods + * + * @version $Rev$ $Date$ + */ +public class NodeInfo { + + private Component node; + private Map<String, Binding> defaultBindings = new HashMap<String, Binding>(); + + public NodeInfo(Component node) throws URISyntaxException { + + this.node = node; + + // Cache the default binding info for the node + ComponentService defaultService = node.getServices().get(0); + for (Binding binding : defaultService.getBindings()){ + + if (binding.getURI() != null){ + // get the schema from the binding URI + URI bindingURI = new URI(binding.getURI()); + + // store the binding away indexed on type and scheme + defaultBindings.put(binding.getClass().getName() + ":" + bindingURI.getScheme(), binding); + } + } + } + + public Binding getBindingDefault(Binding binding, String protocol){ + return defaultBindings.get(binding.getClass().getName() + ":" + protocol); + } + +} diff --git a/sandbox/slaws/modules/domain-rework/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.BindingURICalculator b/sandbox/slaws/modules/domain-rework/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.BindingURICalculator new file mode 100644 index 0000000000..5300021161 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.BindingURICalculator @@ -0,0 +1,23 @@ +# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Implementation class for the binding extension
+org.apache.tuscany.sca.binding.sca.SCABindingURICalculator;binding=org.apache.tuscany.sca.binding.sca.impl.SCABindingImpl
+org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingURICalculator;binding=org.apache.tuscany.sca.binding.ws.impl.WebServiceBindingImpl
+org.apache.tuscany.sca.binding.http.HTTPBindingURICalculator;binding=org.apache.tuscany.sca.binding.http.impl.HTTPBindingImpl
+org.apache.tuscany.sca.binding.jsonrpc.JSONRPCBindingURICalculator;binding=org.apache.tuscany.sca.binding.jsonrpc.JSONRPCBinding
+org.apache.tuscany.sca.binding.feed.atom.AtomBindingURICalculator;binding=org.apache.tuscany.sca.binding.feed.atom.impl.AtomBindingImpl
diff --git a/sandbox/slaws/modules/domain-rework/src/main/resources/domain/domain.composite b/sandbox/slaws/modules/domain-rework/src/main/resources/domain/domain.composite new file mode 100644 index 0000000000..b78d59d855 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/resources/domain/domain.composite @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" + targetNamespace="http://tuscany.apache.org/xmlns/tuscany/1.0" + xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + name="Domain"> + + <component name="DomainUI"> + <t:implementation.widget location="webroot/domain.html"/> + <service name="Widget"> + <t:binding.http/> + </service> + <reference name="domainService" target="DomainService/DomainService"> + <t:binding.jsonrpc/> + </reference> + </component> + + <!--component name="Domain"> + <t:implementation.resource location="webroot"/> + <service name="Resource"> + <t:binding.http/> + </service> + </component--> + + <component name="DomainService"> + <implementation.java class="org.apache.tuscany.sca.domain.rework.DomainServiceImpl"/> + <service name="DomainServiceInit"> + <interface.java interface="org.apache.tuscany.sca.domain.rework.DomainServiceInit"/> + <binding.sca/> + </service> + <service name="DomainService"> + <interface.java interface="org.apache.tuscany.sca.domain.rework.DomainService"/> + <binding.sca/> + <t:binding.jsonrpc/> + </service> + + <!--reference name="nodes" target="NodeA NodeB"/--> + + <property name="repositoryLocation" type="xsd:string">target/classes/repository</property> + </component> + +</composite>
\ No newline at end of file diff --git a/sandbox/slaws/modules/domain-rework/src/main/resources/domain/nodes.composite b/sandbox/slaws/modules/domain-rework/src/main/resources/domain/nodes.composite new file mode 100644 index 0000000000..dd44b1bbdc --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/resources/domain/nodes.composite @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" + targetNamespace="http://tuscany.apache.org/xmlns/tuscany/1.0" + xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:store="http://store" + xmlns:cloud="http://cloud" + name="Nodes"> + + <component name="NodeA"> + <t:implementation.node composite="store:store"/> + <service name="Default"> + <binding.sca uri="http://myhost1:8080"/> + <binding.ws uri="http://myhost1:8080"/> + <binding.ws uri="https://myhost1:443"/> + <t:binding.http uri="https://myhost1:8080"/> + <t:binding.jsonrpc uri="https://myhost1:8080"/> + <t:binding.atom uri="https://myhost1:8080"/> + </service> + </component> + + <component name="NodeB"> + <t:implementation.node composite="cloud:catalogs"/> + <service name="Default"> + <binding.sca uri="http://myhost2:8081"/> + <binding.ws uri="http://myhost2:8081"/> + <t:binding.http uri="https://myhost1:8081"/> + <t:binding.jsonrpc uri="https://myhost1:8081"/> + <t:binding.atom uri="https://myhost1:8081"/> + </service> + </component> + +</composite>
\ No newline at end of file diff --git a/sandbox/slaws/modules/domain-rework/src/main/resources/uploaded/sample-calculator.jar b/sandbox/slaws/modules/domain-rework/src/main/resources/uploaded/sample-calculator.jar Binary files differnew file mode 100644 index 0000000000..9e56c3c79a --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/resources/uploaded/sample-calculator.jar diff --git a/sandbox/slaws/modules/domain-rework/src/main/resources/uploaded/tutorial-assets.jar b/sandbox/slaws/modules/domain-rework/src/main/resources/uploaded/tutorial-assets.jar Binary files differnew file mode 100644 index 0000000000..7335529299 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/resources/uploaded/tutorial-assets.jar diff --git a/sandbox/slaws/modules/domain-rework/src/main/resources/uploaded/tutorial-cloud.jar b/sandbox/slaws/modules/domain-rework/src/main/resources/uploaded/tutorial-cloud.jar Binary files differnew file mode 100644 index 0000000000..c14b66b977 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/resources/uploaded/tutorial-cloud.jar diff --git a/sandbox/slaws/modules/domain-rework/src/main/resources/uploaded/tutorial-store.jar b/sandbox/slaws/modules/domain-rework/src/main/resources/uploaded/tutorial-store.jar Binary files differnew file mode 100644 index 0000000000..b2f555044f --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/resources/uploaded/tutorial-store.jar diff --git a/sandbox/slaws/modules/domain-rework/src/main/resources/webroot/binding-jsonrpc.js b/sandbox/slaws/modules/domain-rework/src/main/resources/webroot/binding-jsonrpc.js new file mode 100644 index 0000000000..ca3c2a8605 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/resources/webroot/binding-jsonrpc.js @@ -0,0 +1,492 @@ +/* + * JSON-RPC JavaScript client + * + * $Id: jsonrpc.js,v 1.36.2.3 2006/03/08 15:09:37 mclark Exp $ + * + * Copyright (c) 2003-2004 Jan-Klaas Kollhof + * Copyright (c) 2005 Michael Clark, Metaparadigm Pte Ltd + * + * This code is based on Jan-Klaas' JavaScript o lait library (jsolait). + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +/* + * Modifications for Apache Tuscany: + * - JSONRpcClient_createMethod changed so callback is last arg + */ + +/* escape a character */ + +escapeJSONChar = +function escapeJSONChar(c) +{ + if(c == "\"" || c == "\\") return "\\" + c; + else if (c == "\b") return "\\b"; + else if (c == "\f") return "\\f"; + else if (c == "\n") return "\\n"; + else if (c == "\r") return "\\r"; + else if (c == "\t") return "\\t"; + var hex = c.charCodeAt(0).toString(16); + if(hex.length == 1) return "\\u000" + hex; + else if(hex.length == 2) return "\\u00" + hex; + else if(hex.length == 3) return "\\u0" + hex; + else return "\\u" + hex; +}; + + +/* encode a string into JSON format */ + +escapeJSONString = +function escapeJSONString(s) +{ + /* The following should suffice but Safari's regex is b0rken + (doesn't support callback substitutions) + return "\"" + s.replace(/([^\u0020-\u007f]|[\\\"])/g, + escapeJSONChar) + "\""; + */ + + /* Rather inefficient way to do it */ + var parts = s.split(""); + for(var i=0; i < parts.length; i++) { + var c =parts[i]; + if(c == '"' || + c == '\\' || + c.charCodeAt(0) < 32 || + c.charCodeAt(0) >= 128) + parts[i] = escapeJSONChar(parts[i]); + } + return "\"" + parts.join("") + "\""; +}; + + +/* Marshall objects to JSON format */ + +toJSON = function toJSON(o) +{ + if(o == null) { + return "null"; + } else if(o.constructor == String) { + return escapeJSONString(o); + } else if(o.constructor == Number) { + return o.toString(); + } else if(o.constructor == Boolean) { + return o.toString(); + } else if(o.constructor == Date) { + return '{javaClass: "java.util.Date", time: ' + o.valueOf() +'}'; + } else if(o.constructor == Array) { + var v = []; + for(var i = 0; i < o.length; i++) v.push(toJSON(o[i])); + return "[" + v.join(", ") + "]"; + } else { + var v = []; + for(attr in o) { + if(o[attr] == null) v.push("\"" + attr + "\": null"); + else if(typeof o[attr] == "function"); /* skip */ + else v.push(escapeJSONString(attr) + ": " + toJSON(o[attr])); + } + return "{" + v.join(", ") + "}"; + } +}; + + +/* JSONRpcClient constructor */ + +JSONRpcClient = +function JSONRpcClient_ctor(serverURL, user, pass, objectID) +{ + this.serverURL = serverURL; + this.user = user; + this.pass = pass; + this.objectID = objectID; + + /* Add standard methods */ + if(this.objectID) { + this._addMethods(["listMethods"]); + var req = this._makeRequest("listMethods", []); + } else { + this._addMethods(["system.listMethods"]); + var req = this._makeRequest("system.listMethods", []); + } + var m = this._sendRequest(req); + this._addMethods(m); +}; + + +/* JSONRpcCLient.Exception */ + +JSONRpcClient.Exception = +function JSONRpcClient_Exception_ctor(code, message, javaStack) +{ + this.code = code; + var name; + if(javaStack) { + this.javaStack = javaStack; + var m = javaStack.match(/^([^:]*)/); + if(m) name = m[0]; + } + if(name) this.name = name; + else this.name = "JSONRpcClientException"; + this.message = message; +}; + +JSONRpcClient.Exception.CODE_REMOTE_EXCEPTION = 490; +JSONRpcClient.Exception.CODE_ERR_CLIENT = 550; +JSONRpcClient.Exception.CODE_ERR_PARSE = 590; +JSONRpcClient.Exception.CODE_ERR_NOMETHOD = 591; +JSONRpcClient.Exception.CODE_ERR_UNMARSHALL = 592; +JSONRpcClient.Exception.CODE_ERR_MARSHALL = 593; + +JSONRpcClient.Exception.prototype = new Error(); + +JSONRpcClient.Exception.prototype.toString = +function JSONRpcClient_Exception_toString(code, msg) +{ + return this.name + ": " + this.message; +}; + + +/* Default top level exception handler */ + +JSONRpcClient.default_ex_handler = +function JSONRpcClient_default_ex_handler(e) { alert(e); }; + + +/* Client settable variables */ + +JSONRpcClient.toplevel_ex_handler = JSONRpcClient.default_ex_handler; +JSONRpcClient.profile_async = false; +JSONRpcClient.max_req_active = 1; +JSONRpcClient.requestId = 1; + + +/* JSONRpcClient implementation */ + +JSONRpcClient.prototype._createMethod = +function JSONRpcClient_createMethod(methodName) +{ + var fn=function() + { + var args = []; + var callback = null; + for(var i=0;i<arguments.length;i++) args.push(arguments[i]); + +/* TUSCANY change callback to be last arg instead of first to match binding.ajax + if(typeof args[0] == "function") callback = args.shift(); +*/ + if(typeof args[arguments.length-1] == "function") callback = args.pop(); + + var req = fn.client._makeRequest.call(fn.client, fn.methodName, + args, callback); + if(callback == null) { + return fn.client._sendRequest.call(fn.client, req); + } else { + JSONRpcClient.async_requests.push(req); + JSONRpcClient.kick_async(); + return req.requestId; + } + }; + fn.client = this; + fn.methodName = methodName; + return fn; +}; + +JSONRpcClient.prototype._addMethods = +function JSONRpcClient_addMethods(methodNames) +{ + for(var i=0; i<methodNames.length; i++) { + var obj = this; + var names = methodNames[i].split("."); + for(var n=0; n<names.length-1; n++) { + var name = names[n]; + if(obj[name]) { + obj = obj[name]; + } else { + obj[name] = new Object(); + obj = obj[name]; + } + } + var name = names[names.length-1]; + if(!obj[name]) { + var method = this._createMethod(methodNames[i]); + obj[name] = method; + } + } +}; + +JSONRpcClient._getCharsetFromHeaders = +function JSONRpcClient_getCharsetFromHeaders(http) +{ + try { + var contentType = http.getResponseHeader("Content-type"); + var parts = contentType.split(/\s*;\s*/); + for(var i =0; i < parts.length; i++) { + if(parts[i].substring(0, 8) == "charset=") + return parts[i].substring(8, parts[i].length); + } + } catch (e) {} + return "UTF-8"; /* default */ +}; + +/* Async queue globals */ +JSONRpcClient.async_requests = []; +JSONRpcClient.async_inflight = {}; +JSONRpcClient.async_responses = []; +JSONRpcClient.async_timeout = null; +JSONRpcClient.num_req_active = 0; + +JSONRpcClient._async_handler = +function JSONRpcClient_async_handler() +{ + JSONRpcClient.async_timeout = null; + + while(JSONRpcClient.async_responses.length > 0) { + var res = JSONRpcClient.async_responses.shift(); + if(res.canceled) continue; + if(res.profile) res.profile.dispatch = new Date(); + try { + res.cb(res.result, res.ex, res.profile); + } catch(e) { + JSONRpcClient.toplevel_ex_handler(e); + } + } + + while(JSONRpcClient.async_requests.length > 0 && + JSONRpcClient.num_req_active < JSONRpcClient.max_req_active) { + var req = JSONRpcClient.async_requests.shift(); + if(req.canceled) continue; + req.client._sendRequest.call(req.client, req); + } +}; + +JSONRpcClient.kick_async = +function JSONRpcClient_kick_async() +{ + if(JSONRpcClient.async_timeout == null) + JSONRpcClient.async_timeout = + setTimeout(JSONRpcClient._async_handler, 0); +}; + +JSONRpcClient.cancelRequest = +function JSONRpcClient_cancelRequest(requestId) +{ + /* If it is in flight then mark it as canceled in the inflight map + and the XMLHttpRequest callback will discard the reply. */ + if(JSONRpcClient.async_inflight[requestId]) { + JSONRpcClient.async_inflight[requestId].canceled = true; + return true; + } + + /* If its not in flight yet then we can just mark it as canceled in + the the request queue and it will get discarded before being sent. */ + for(var i in JSONRpcClient.async_requests) { + if(JSONRpcClient.async_requests[i].requestId == requestId) { + JSONRpcClient.async_requests[i].canceled = true; + return true; + } + } + + /* It may have returned from the network and be waiting for its callback + to be dispatched, so mark it as canceled in the response queue + and the response will get discarded before calling the callback. */ + for(var i in JSONRpcClient.async_responses) { + if(JSONRpcClient.async_responses[i].requestId == requestId) { + JSONRpcClient.async_responses[i].canceled = true; + return true; + } + } + + return false; +}; + +JSONRpcClient.prototype._makeRequest = +function JSONRpcClient_makeRequest(methodName, args, cb) +{ + var req = {}; + req.client = this; + req.requestId = JSONRpcClient.requestId++; + + var obj = {}; + obj.id = req.requestId; + if (this.objectID) + obj.method = ".obj#" + this.objectID + "." + methodName; + else + obj.method = methodName; + obj.params = args; + + if (cb) req.cb = cb; + if (JSONRpcClient.profile_async) + req.profile = { "submit": new Date() }; + req.data = toJSON(obj); + + return req; +}; + +JSONRpcClient.prototype._sendRequest = +function JSONRpcClient_sendRequest(req) +{ + if(req.profile) req.profile.start = new Date(); + + /* Get free http object from the pool */ + var http = JSONRpcClient.poolGetHTTPRequest(); + JSONRpcClient.num_req_active++; + + /* Send the request */ + if (typeof(this.user) == "undefined") { + http.open("POST", this.serverURL, (req.cb != null)); + } else { + http.open("POST", this.serverURL, (req.cb != null), this.user, this.pass); + } + + /* setRequestHeader is missing in Opera 8 Beta */ + try { http.setRequestHeader("Content-type", "text/plain"); } catch(e) {} + + /* Construct call back if we have one */ + if(req.cb) { + var self = this; + http.onreadystatechange = function() { + if(http.readyState == 4) { + http.onreadystatechange = function () {}; + var res = { "cb": req.cb, "result": null, "ex": null}; + if (req.profile) { + res.profile = req.profile; + res.profile.end = new Date(); + } + try { res.result = self._handleResponse(http); } + catch(e) { res.ex = e; } + if(!JSONRpcClient.async_inflight[req.requestId].canceled) + JSONRpcClient.async_responses.push(res); + delete JSONRpcClient.async_inflight[req.requestId]; + JSONRpcClient.kick_async(); + } + }; + } else { + http.onreadystatechange = function() {}; + } + + JSONRpcClient.async_inflight[req.requestId] = req; + + try { + http.send(req.data); + } catch(e) { + JSONRpcClient.poolReturnHTTPRequest(http); + JSONRpcClient.num_req_active--; + throw new JSONRpcClient.Exception + (JSONRpcClient.Exception.CODE_ERR_CLIENT, "Connection failed"); + } + + if(!req.cb) return this._handleResponse(http); +}; + +JSONRpcClient.prototype._handleResponse = +function JSONRpcClient_handleResponse(http) +{ + /* Get the charset */ + if(!this.charset) { + this.charset = JSONRpcClient._getCharsetFromHeaders(http); + } + + /* Get request results */ + var status, statusText, data; + try { + status = http.status; + statusText = http.statusText; + data = http.responseText; + } catch(e) { + JSONRpcClient.poolReturnHTTPRequest(http); + JSONRpcClient.num_req_active--; + JSONRpcClient.kick_async(); + throw new JSONRpcClient.Exception + (JSONRpcClient.Exception.CODE_ERR_CLIENT, "Connection failed"); + } + + /* Return http object to the pool; */ + JSONRpcClient.poolReturnHTTPRequest(http); + JSONRpcClient.num_req_active--; + + /* Unmarshall the response */ + if(status != 200) { + throw new JSONRpcClient.Exception(status, statusText); + } + var obj; + try { + eval("obj = " + data); + } catch(e) { + throw new JSONRpcClient.Exception(550, "error parsing result"); + } + if(obj.error) + throw new JSONRpcClient.Exception(obj.error.code, obj.error.msg, + obj.error.trace); + var res = obj.result; + + /* Handle CallableProxy */ + if(res && res.objectID && res.JSONRPCType == "CallableReference") + return new JSONRpcClient(this.serverURL, this.user, + this.pass, res.objectID); + + return res; +}; + + +/* XMLHttpRequest wrapper code */ + +/* XMLHttpRequest pool globals */ +JSONRpcClient.http_spare = []; +JSONRpcClient.http_max_spare = 8; + +JSONRpcClient.poolGetHTTPRequest = +function JSONRpcClient_pool_getHTTPRequest() +{ + if(JSONRpcClient.http_spare.length > 0) { + return JSONRpcClient.http_spare.pop(); + } + return JSONRpcClient.getHTTPRequest(); +}; + +JSONRpcClient.poolReturnHTTPRequest = +function JSONRpcClient_poolReturnHTTPRequest(http) +{ + if(JSONRpcClient.http_spare.length >= JSONRpcClient.http_max_spare) + delete http; + else + JSONRpcClient.http_spare.push(http); +}; + +JSONRpcClient.msxmlNames = [ "MSXML2.XMLHTTP.5.0", + "MSXML2.XMLHTTP.4.0", + "MSXML2.XMLHTTP.3.0", + "MSXML2.XMLHTTP", + "Microsoft.XMLHTTP" ]; + +JSONRpcClient.getHTTPRequest = +function JSONRpcClient_getHTTPRequest() +{ + /* Mozilla XMLHttpRequest */ + try { + JSONRpcClient.httpObjectName = "XMLHttpRequest"; + return new XMLHttpRequest(); + } catch(e) {} + + /* Microsoft MSXML ActiveX */ + for (var i=0;i < JSONRpcClient.msxmlNames.length; i++) { + try { + JSONRpcClient.httpObjectName = JSONRpcClient.msxmlNames[i]; + return new ActiveXObject(JSONRpcClient.msxmlNames[i]); + } catch (e) {} + } + + /* None found */ + JSONRpcClient.httpObjectName = null; + throw new JSONRpcClient.Exception(0, "Can't create XMLHttpRequest object"); +}; diff --git a/sandbox/slaws/modules/domain-rework/src/main/resources/webroot/domain.html b/sandbox/slaws/modules/domain-rework/src/main/resources/webroot/domain.html new file mode 100644 index 0000000000..a75560ff92 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/resources/webroot/domain.html @@ -0,0 +1,105 @@ +<html> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + --> +<head> +<title>Apache Tuscany Domain</TITLE> + +<!--script type="text/javascript" src="dojo/dojo/dojo.js"> +</script> +<script type="text/javascript" src="dojo/dijit/dijit.js"> +</script> + +<script type="text/javascript"> + dojo.require("dojo.data.ItemFileReadStore"); + dojo.require("dijit.Tree"); +</script--> + +<script type="text/javascript" src="domain.js"> +</script> + +<script language="JavaScript"> + + //@Reference + var domainService = new Reference("domainService"); + + var contributions; + + function anItemType(name, type){ + this.name = name; + this.type = type; + } + + function getContributions() { + domainService.getContributions(handleGetContributions); + } + + function handleGetContributions(result) { + var text = ""; + + text = text + "<H2>Contributions</H2>"; + + for (var i in result.list){ + var contribution = result.list[i]; + + text = text + contribution.name + " " + contribution.URI + "<p/>"; + } + + document.getElementById('contributions').innerHTML=text; + + /* + var data = {data: { label: 'name', + identifier: 'name', + items: [] } }; + + for (var i in result.nodes.list){ + var node = result.nodes.list[i]; + + for (var j in node.leaves.list){ + var leaf = node.leaves.list[j]; + + var item = new anItemType(leaf.value, node.type); + data.data.items[i] = item; + } + } + + + var store=new dojo.data.ItemFileReadStore(data); + var tree=new dijit.Tree({store:store, + labelAttr:'name', + typeAttr:'type', + query:{ type: "contribution" }}, dojo.byId("contributions")); + tree.startup(); + + */ + } + + + </script> + + <link rel="stylesheet" type="text/css" href="style.css" /> +</head> + +<body onload="getContributions()"> + +<h1 id="top">Apache Tuscany Domain</h1> + +<div id="contributions"></div> + +</body> +</html> diff --git a/sandbox/slaws/modules/domain-rework/src/main/resources/webroot/domain.png b/sandbox/slaws/modules/domain-rework/src/main/resources/webroot/domain.png Binary files differnew file mode 100644 index 0000000000..e88c4f882a --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/resources/webroot/domain.png diff --git a/sandbox/slaws/modules/domain-rework/src/main/resources/webroot/node.png b/sandbox/slaws/modules/domain-rework/src/main/resources/webroot/node.png Binary files differnew file mode 100644 index 0000000000..fa01e64272 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/resources/webroot/node.png diff --git a/sandbox/slaws/modules/domain-rework/src/main/resources/webroot/style.css b/sandbox/slaws/modules/domain-rework/src/main/resources/webroot/style.css new file mode 100644 index 0000000000..f5bbf23379 --- /dev/null +++ b/sandbox/slaws/modules/domain-rework/src/main/resources/webroot/style.css @@ -0,0 +1,176 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +p,table,li,h1,h2,h3 +{ +font-family: verdana, arial, 'sans serif'; +} + +p, h1, h2, h3, table, li, hr +{ +margin-left: 10pt; +} + +table +{ +border-color: black; +border-collapse: separate; +border-spacing: 0px 1px; + +margin-right: 10pt; +margin-left: 10pt; +width: 800px; +} + +.sourceDetailsTable +{ +width: 600px; +} + +tr, td +{ +margin-left: 0pt; +margin-right: 0pt; +padding-left: 10pt; +font-size: 90%; +} + +p,li,th +{ +font-size: 90%; +margin-left: 10pt; +} + +pre +{ +margin-left: 10pt; +} + +body +{ +#ffffff; +} + +h1,h2,h3,hr +{ +color: firebrick; +} + +a:link {COLOR: firebrick;} +a:visited {COLOR: firebrick;} +a:active {COLOR: navy;} + +.link +{ +COLOR: firebrick; +text-decoration: underline; +} + +.clickable +{ +cursor: pointer +} + +.unread_title +{ +font-weight: bold; +} + +.read_title +{ +font-weight: normal; +} + +.summary +{ +color: DimGrey; +} + +.hidden +{ +display: none; +} + +.source_name +{ +width: 600px; +} + +.alert_text +{ +width: 600px; +} + +.alert_data +{ +margin-left: 10px; +width: 800px; +height: 800px; +} + +.source_0 +{ +background-color: LightGreen; +} + +.source_1 +{ +background-color: LightSkyBlue; +} + +.source_2 +{ +background-color: Khaki; +} + +.source_3 +{ +background-color: LightPink; +} + +.source_4 +{ +background-color: Orange; +} + +.source_5 +{ +background-color: LightCoral; +} + +.source_6 +{ +background-color: Orchid; +} + +.source_7 +{ +background-color: Peru; +} + +.source_8 +{ +background-color: SpringGreen; +} + +.source_9 +{ +background-color: LightGrey; +} + diff --git a/sandbox/slaws/scatours/calculator.svg b/sandbox/slaws/scatours/calculator.svg new file mode 100644 index 0000000000..af34f07e04 --- /dev/null +++ b/sandbox/slaws/scatours/calculator.svg @@ -0,0 +1,329 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://web.resource.org/cc/"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="1052.3622"
+ height="744.09448"
+ id="svg2"
+ sodipodi:version="0.32"
+ inkscape:version="0.44"
+ sodipodi:docbase="C:\simon\Projects\Tuscany\java\java-head\sca\samples\calculator"
+ sodipodi:docname="calculator.svg"
+ version="1.0"
+ inkscape:export-filename="C:\simon\Projects\Tuscany\java\java-head\sca\samples\calculator\calculator.png"
+ inkscape:export-xdpi="52.84"
+ inkscape:export-ydpi="52.84">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ gridtolerance="10000"
+ guidetolerance="10"
+ objecttolerance="10"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="1.4"
+ inkscape:cx="471.80491"
+ inkscape:cy="378.84265"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ inkscape:window-width="1054"
+ inkscape:window-height="721"
+ inkscape:window-x="59"
+ inkscape:window-y="79" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1">
+ <g
+ id="g2997"
+ transform="matrix(1,0,0,1.144214,0,-27.53557)">
+ <rect
+ rx="15.307091"
+ ry="12.692303"
+ y="192.00233"
+ x="258.31146"
+ height="299.99988"
+ width="495.71429"
+ id="rect2067"
+ style="opacity:1;fill:#90baf4;fill-opacity:1;stroke:#060000;stroke-width:1.86971939;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+ <flowRoot
+ id="flowRoot2954"
+ xml:space="preserve"><flowRegion
+ id="flowRegion2956"><rect
+ y="212.66591"
+ x="281.42856"
+ height="61.42857"
+ width="170"
+ id="rect2958" /></flowRegion><flowPara
+ id="flowPara2960">Calculator</flowPara></flowRoot> </g>
+ <rect
+ style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:1.9999994;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+ id="rect2988"
+ width="115.66247"
+ height="191.57716"
+ x="339.91632"
+ y="262.1673"
+ rx="6.9961648"
+ ry="15.892869" />
+ <flowRoot
+ xml:space="preserve"
+ id="flowRoot2966"
+ transform="translate(79.61125,62.65764)"><flowRegion
+ id="flowRegion2968"><rect
+ id="rect2970"
+ width="170"
+ height="61.42857"
+ x="281.42856"
+ y="212.66591" /></flowRegion><flowPara
+ id="flowPara2972">Calculator</flowPara><flowPara
+ id="flowPara1895">Service</flowPara><flowPara
+ id="flowPara1897">Component</flowPara></flowRoot> <path
+ style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 322.76581,342.58603 L 356.10085,342.58603 L 362.16176,355.71801 L 355.0907,367.83985 L 322.76581,367.83985 L 330.34196,355.71801 L 322.76581,342.58603 z "
+ id="path3017" />
+ <path
+ style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:0.99999982px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 431.01809,321.46204 L 471.00147,321.46204 L 478.27117,334.59402 L 469.78986,346.71586 L 431.01809,346.71586 L 440.10523,334.59402 L 431.01809,321.46204 z "
+ id="path3019" />
+ <path
+ style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1.00000024px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 223.15923,328.61046 L 282.4833,328.61046 L 293.26948,355.48529 L 280.68561,380.29286 L 223.15923,380.29286 L 236.64198,355.48529 L 223.15923,328.61046 z "
+ id="path1883" />
+ <flowRoot
+ xml:space="preserve"
+ id="flowRoot1885"
+ transform="translate(-46.16225,128.7269)"
+ style="font-family:Bitstream Vera Sans;font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal;font-size:11;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%"><flowRegion
+ id="flowRegion1887"><rect
+ id="rect1889"
+ width="170"
+ height="61.42857"
+ x="281.42856"
+ y="212.66591"
+ style="font-family:Bitstream Vera Sans;font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal;font-size:11;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%" /></flowRegion><flowPara
+ id="flowPara1891">Calculator</flowPara><flowPara
+ id="flowPara1893">Service</flowPara></flowRoot> <rect
+ style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2.00000024;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+ id="rect1899"
+ width="115.66247"
+ height="70.148659"
+ x="594.75488"
+ y="209.73451"
+ rx="6.9961648"
+ ry="5.8193965" />
+ <flowRoot
+ xml:space="preserve"
+ id="flowRoot1901"
+ transform="translate(334.4498,10.22481)"><flowRegion
+ id="flowRegion1903"><rect
+ id="rect1905"
+ width="170"
+ height="61.42857"
+ x="281.42856"
+ y="212.66591" /></flowRegion><flowPara
+ id="flowPara1907">Add</flowPara><flowPara
+ id="flowPara1909">Service</flowPara><flowPara
+ id="flowPara1911">Component</flowPara></flowRoot> <path
+ style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 573.31867,232.29606 L 606.65371,232.29606 L 612.71462,245.42804 L 605.64356,257.54988 L 573.31867,257.54988 L 580.89482,245.42804 L 573.31867,232.29606 z "
+ id="path1913" />
+ <rect
+ style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2.00000024;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+ id="rect1917"
+ width="115.66247"
+ height="70.148659"
+ x="594.06543"
+ y="292.59158"
+ rx="6.9961648"
+ ry="5.8193965" />
+ <flowRoot
+ xml:space="preserve"
+ id="flowRoot1919"
+ transform="translate(333.7604,93.08188)"><flowRegion
+ id="flowRegion1921"><rect
+ id="rect1923"
+ width="170"
+ height="61.42857"
+ x="281.42856"
+ y="212.66591" /></flowRegion><flowPara
+ id="flowPara1925">Subtract</flowPara><flowPara
+ id="flowPara1927">Service</flowPara><flowPara
+ id="flowPara1929">Component</flowPara></flowRoot> <path
+ style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 572.62924,315.15313 L 605.96428,315.15313 L 612.02519,328.28511 L 604.95413,340.40695 L 572.62924,340.40695 L 580.20539,328.28511 L 572.62924,315.15313 z "
+ id="path1931" />
+ <rect
+ style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2.00000024;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+ id="rect1933"
+ width="115.66247"
+ height="70.148659"
+ x="594.77979"
+ y="371.87729"
+ rx="6.9961648"
+ ry="5.8193965" />
+ <flowRoot
+ xml:space="preserve"
+ id="flowRoot1935"
+ transform="translate(334.4747,172.3676)"><flowRegion
+ id="flowRegion1937"><rect
+ id="rect1939"
+ width="170"
+ height="61.42857"
+ x="281.42856"
+ y="212.66591" /></flowRegion><flowPara
+ id="flowPara1941">Multiply</flowPara><flowPara
+ id="flowPara1943">Service</flowPara><flowPara
+ id="flowPara1945">Component</flowPara></flowRoot> <path
+ style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 573.34352,394.43884 L 606.67856,394.43884 L 612.73947,407.57082 L 605.66841,419.69266 L 573.34352,419.69266 L 580.91967,407.57082 L 573.34352,394.43884 z "
+ id="path1947" />
+ <rect
+ style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2.00000024;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+ id="rect1949"
+ width="115.66247"
+ height="70.148659"
+ x="596.20831"
+ y="452.59158"
+ rx="6.9961648"
+ ry="5.8193965" />
+ <flowRoot
+ xml:space="preserve"
+ id="flowRoot1951"
+ transform="translate(335.9032,253.0819)"><flowRegion
+ id="flowRegion1953"><rect
+ id="rect1955"
+ width="170"
+ height="61.42857"
+ x="281.42856"
+ y="212.66591" /></flowRegion><flowPara
+ id="flowPara1957">Divide</flowPara><flowPara
+ id="flowPara1959">Service</flowPara><flowPara
+ id="flowPara1961">Component</flowPara></flowRoot> <path
+ style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 574.77209,475.15313 L 608.10713,475.15313 L 614.16804,488.28511 L 607.09698,500.40695 L 574.77209,500.40695 L 582.34824,488.28511 L 574.77209,475.15313 z "
+ id="path1963" />
+ <flowRoot
+ xml:space="preserve"
+ id="flowRoot1965"
+ transform="translate(161.0221,114.967)"
+ style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"><flowRegion
+ id="flowRegion1967"><rect
+ id="rect1969"
+ width="170"
+ height="61.42857"
+ x="281.42856"
+ y="212.66591"
+ style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans" /></flowRegion><flowPara
+ id="flowPara1973">add</flowPara><flowPara
+ id="flowPara1977">Service</flowPara></flowRoot> <path
+ style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:0.99999982px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 430.65917,357.18186 L 470.64255,357.18186 L 477.91225,370.31384 L 469.43094,382.43568 L 430.65917,382.43568 L 439.74631,370.31384 L 430.65917,357.18186 z "
+ id="path1979" />
+ <flowRoot
+ xml:space="preserve"
+ id="flowRoot1981"
+ transform="translate(160.6632,150.6868)"
+ style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"><flowRegion
+ id="flowRegion1983"><rect
+ id="rect1985"
+ width="170"
+ height="61.42857"
+ x="281.42856"
+ y="212.66591"
+ style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans" /></flowRegion><flowPara
+ id="flowPara1987">subtract</flowPara><flowPara
+ id="flowPara1989">Service</flowPara></flowRoot> <path
+ style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:0.99999982px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 431.37346,390.75329 L 471.35684,390.75329 L 478.62654,403.88527 L 470.14523,416.00711 L 431.37346,416.00711 L 440.4606,403.88527 L 431.37346,390.75329 z "
+ id="path1991" />
+ <flowRoot
+ xml:space="preserve"
+ id="flowRoot1993"
+ transform="translate(161.3775,184.2583)"
+ style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"><flowRegion
+ id="flowRegion1995"><rect
+ id="rect1997"
+ width="170"
+ height="61.42857"
+ x="281.42856"
+ y="212.66591"
+ style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans" /></flowRegion><flowPara
+ id="flowPara1999">multiply</flowPara><flowPara
+ id="flowPara2001">Service</flowPara></flowRoot> <path
+ style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:0.99999982px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 429.94489,422.18186 L 469.92827,422.18186 L 477.19797,435.31384 L 468.71666,447.43568 L 429.94489,447.43568 L 439.03203,435.31384 L 429.94489,422.18186 z "
+ id="path2003" />
+ <flowRoot
+ xml:space="preserve"
+ id="flowRoot2005"
+ transform="translate(159.9489,215.6868)"
+ style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"><flowRegion
+ id="flowRegion2007"><rect
+ id="rect2009"
+ width="170"
+ height="61.42857"
+ x="281.42856"
+ y="212.66591"
+ style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans" /></flowRegion><flowPara
+ id="flowPara2011">divide</flowPara><flowPara
+ id="flowPara2013">Service</flowPara></flowRoot> <path
+ style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 477.85714,335.52305 L 511.42857,335.52305 L 510.71429,245.52305 L 579.28571,245.52305"
+ id="path2015" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 477.85714,369.80877 L 528.57143,369.80877 L 528.57143,329.80877 L 580,329.80877"
+ id="path2017" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 478.57143,402.66591 L 528.57143,401.95163 L 528.57143,408.3802 L 580,407.66591"
+ id="path2019" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 475.71429,435.52305 L 509.28571,435.52305 L 510,486.95163 L 582.14286,486.23734"
+ id="path2021" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 292.85714,355.52305 L 330,354.80877"
+ id="path2023" />
+ </g>
+</svg>
diff --git a/sandbox/slaws/scatours/calendar/pom.xml b/sandbox/slaws/scatours/calendar/pom.xml new file mode 100644 index 0000000000..c17101ecfd --- /dev/null +++ b/sandbox/slaws/scatours/calendar/pom.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<project> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-sca</artifactId> + <version>2.0-incubating-SNAPSHOT</version> + <relativePath>../../pom.xml</relativePath> + </parent> + <artifactId>scatours-calendar</artifactId> + <name>Apache Tuscany SCA Tours Calendar Component</name> + + <dependencies> + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-host-embedded</artifactId> + <version>2.0-incubating-SNAPSHOT</version> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-implementation-java-runtime</artifactId> + <version>2.0-incubating-SNAPSHOT</version> + <scope>runtime</scope> + </dependency> + + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.2</version> + <scope>test</scope> + </dependency> + + </dependencies> + + <build> + <finalName>${artifactId}</finalName> + </build> +</project> diff --git a/sandbox/slaws/scatours/calendar/src/main/java/calendar/Calendar.java b/sandbox/slaws/scatours/calendar/src/main/java/calendar/Calendar.java new file mode 100644 index 0000000000..90736b92b4 --- /dev/null +++ b/sandbox/slaws/scatours/calendar/src/main/java/calendar/Calendar.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package calendar; + +/** + * The Add service interface + */ +public interface Calendar { + + String getEndDate(String startDate, int duration); + +} diff --git a/sandbox/slaws/scatours/calendar/src/main/java/calendar/CalendarImpl.java b/sandbox/slaws/scatours/calendar/src/main/java/calendar/CalendarImpl.java new file mode 100644 index 0000000000..343926da65 --- /dev/null +++ b/sandbox/slaws/scatours/calendar/src/main/java/calendar/CalendarImpl.java @@ -0,0 +1,48 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package calendar; + +import java.text.DateFormat; +import java.util.Date; +import java.util.TimeZone; +import java.util.logging.Level; +import java.util.logging.Logger; + +/** + * An implementation of the Add service + */ +public class CalendarImpl implements Calendar { + + public String getEndDate(String startDate, int duration){ + String returnDate = "Invalid Date"; + + try { + Date date = DateFormat.getInstance().parse(startDate); + java.util.Calendar calendar = java.util.Calendar.getInstance(); + calendar.setTime(date); + calendar.add(java.util.Calendar.DATE, duration); + returnDate = DateFormat.getInstance().format(calendar.getTime()); + } catch (Exception ex){ + // do nothing + System.out.println(ex.toString()); + } + + return returnDate; + } +} diff --git a/sandbox/slaws/scatours/calendar/src/main/resources/calendar.composite b/sandbox/slaws/scatours/calendar/src/main/resources/calendar.composite new file mode 100644 index 0000000000..b72c450446 --- /dev/null +++ b/sandbox/slaws/scatours/calendar/src/main/resources/calendar.composite @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" + targetNamespace="http://travel" + xmlns:sample="http://travel" + name="calendar"> + + <component name="CalendarComponent"> + <implementation.java class="calendar.CalendarImpl"/> + </component> + +</composite> diff --git a/sandbox/slaws/scatours/calendar/src/test/java/calendar/CalendarTestCase.java b/sandbox/slaws/scatours/calendar/src/test/java/calendar/CalendarTestCase.java new file mode 100644 index 0000000000..fee00fbb0a --- /dev/null +++ b/sandbox/slaws/scatours/calendar/src/test/java/calendar/CalendarTestCase.java @@ -0,0 +1,47 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package calendar; + +import junit.framework.TestCase; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +/** + * This shows how to test the Calculator service component. + */ +public class CalendarTestCase extends TestCase { + + private Calendar calendar; + private SCADomain scaDomain; + + @Override + protected void setUp() throws Exception { + scaDomain = SCADomain.newInstance("calendar.composite"); + calendar = scaDomain.getService(Calendar.class, "CalendarComponent"); + } + + @Override + protected void tearDown() throws Exception { + scaDomain.close(); + } + + public void testCalculator() throws Exception { + System.out.println(calendar.getEndDate("07/10/96 04:05", 3)); + } +} diff --git a/sandbox/slaws/scatours/currencyconverter/pom.xml b/sandbox/slaws/scatours/currencyconverter/pom.xml new file mode 100644 index 0000000000..3209790341 --- /dev/null +++ b/sandbox/slaws/scatours/currencyconverter/pom.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<project> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-sca</artifactId> + <version>2.0-incubating-SNAPSHOT</version> + <relativePath>../../pom.xml</relativePath> + </parent> + <artifactId>scatours-currencyconverter</artifactId> + <name>Apache Tuscany SCA Tours Currency Converter Component</name> + + <dependencies> + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-host-embedded</artifactId> + <version>2.0-incubating-SNAPSHOT</version> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-implementation-java-runtime</artifactId> + <version>2.0-incubating-SNAPSHOT</version> + <scope>runtime</scope> + </dependency> + + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.2</version> + <scope>test</scope> + </dependency> + + </dependencies> + + <build> + <finalName>${artifactId}</finalName> + </build> +</project> diff --git a/sandbox/slaws/scatours/currencyconverter/src/main/java/currencyconverter/CurrencyConverter.java b/sandbox/slaws/scatours/currencyconverter/src/main/java/currencyconverter/CurrencyConverter.java new file mode 100644 index 0000000000..b73f35c40c --- /dev/null +++ b/sandbox/slaws/scatours/currencyconverter/src/main/java/currencyconverter/CurrencyConverter.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package currencyconverter; + +/** + * The CurrencyConverter service interface + */ +public interface CurrencyConverter { + + double getExchangeRate(String fromCurrency, String toCurrency); + +} diff --git a/sandbox/slaws/scatours/currencyconverter/src/main/java/currencyconverter/CurrencyConverterImpl.java b/sandbox/slaws/scatours/currencyconverter/src/main/java/currencyconverter/CurrencyConverterImpl.java new file mode 100644 index 0000000000..6769239b56 --- /dev/null +++ b/sandbox/slaws/scatours/currencyconverter/src/main/java/currencyconverter/CurrencyConverterImpl.java @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package currencyconverter; + + +/** + * An implementation of the CurrencyConverter service + */ +public class CurrencyConverterImpl implements CurrencyConverter { + + public double getExchangeRate(String fromCurrencyCode, String toCurrencyCode){ + // regardless of which currencies are specified return the same value + return 1.98; + } + + public double convert(String fromCurrencyCode, String toCurrencyCode, double amount){ + return amount * getExchangeRate(fromCurrencyCode, toCurrencyCode); + } +} diff --git a/sandbox/slaws/scatours/currencyconverter/src/main/resources/currencyconverter.composite b/sandbox/slaws/scatours/currencyconverter/src/main/resources/currencyconverter.composite new file mode 100644 index 0000000000..ae94401f6c --- /dev/null +++ b/sandbox/slaws/scatours/currencyconverter/src/main/resources/currencyconverter.composite @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" + targetNamespace="http://scatours" + xmlns:sample="http://scatours" + name="currencyconverter"> + + <component name="CurrencyConverterComponent"> + <implementation.java class="currencyconverter.CurrencyConverterImpl"/> + </component> + +</composite> diff --git a/sandbox/slaws/scatours/currencyconverter/src/test/java/currencyconverter/CurrencyConverterTestCase.java b/sandbox/slaws/scatours/currencyconverter/src/test/java/currencyconverter/CurrencyConverterTestCase.java new file mode 100644 index 0000000000..6bdf32dd0d --- /dev/null +++ b/sandbox/slaws/scatours/currencyconverter/src/test/java/currencyconverter/CurrencyConverterTestCase.java @@ -0,0 +1,47 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package currencyconverter; + +import junit.framework.TestCase; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +/** + * This shows how to test the Calculator service component. + */ +public class CurrencyConverterTestCase extends TestCase { + + private CurrencyConverter currencyConverter; + private SCADomain scaDomain; + + @Override + protected void setUp() throws Exception { + scaDomain = SCADomain.newInstance("currencyconverter.composite"); + currencyConverter = scaDomain.getService(CurrencyConverter.class, "CurrencyConverterComponent"); + } + + @Override + protected void tearDown() throws Exception { + scaDomain.close(); + } + + public void testCurrecncyConverter() throws Exception { + System.out.println(currencyConverter.getExchangeRate("GBP", "USD")); + } +} diff --git a/sandbox/slaws/scatours/gettingstarted/pom.xml b/sandbox/slaws/scatours/gettingstarted/pom.xml new file mode 100644 index 0000000000..122d04b272 --- /dev/null +++ b/sandbox/slaws/scatours/gettingstarted/pom.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<project> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-sca</artifactId> + <version>2.0-incubating-SNAPSHOT</version> + <relativePath>../../pom.xml</relativePath> + </parent> + <artifactId>scatours-gettingstarted</artifactId> + <name>Apache Tuscany SCA Tours Getting Started</name> + + <dependencies> + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-host-embedded</artifactId> + <version>2.0-incubating-SNAPSHOT</version> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-implementation-java-runtime</artifactId> + <version>2.0-incubating-SNAPSHOT</version> + <scope>runtime</scope> + </dependency> + + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.2</version> + <scope>test</scope> + </dependency> + + </dependencies> + + <build> + <finalName>${artifactId}</finalName> + </build> +</project> diff --git a/sandbox/slaws/scatours/gettingstarted/src/main/java/client/CurrencyConverterClient.java b/sandbox/slaws/scatours/gettingstarted/src/main/java/client/CurrencyConverterClient.java new file mode 100644 index 0000000000..80d2f4603c --- /dev/null +++ b/sandbox/slaws/scatours/gettingstarted/src/main/java/client/CurrencyConverterClient.java @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package client; + +import org.apache.tuscany.sca.host.embedded.SCADomain; +import currencyconverter.CurrencyConverter; + +/** + * This shows how to run the CurrencyConverter component. + */ +public class CurrencyConverterClient { + + public final static void main(String[] args) throws Exception { + SCADomain scaDomain = + SCADomain.newInstance("currencyconverter.composite"); + CurrencyConverter currencyConverter = + scaDomain.getService(CurrencyConverter.class, + "CurrencyConverterComponent"); + System.out.println(currencyConverter.convert("GBP", "USD", 27.65)); + scaDomain.close(); + } +} diff --git a/sandbox/slaws/scatours/gettingstarted/src/main/java/client/TripClient.java b/sandbox/slaws/scatours/gettingstarted/src/main/java/client/TripClient.java new file mode 100644 index 0000000000..73aa5e2146 --- /dev/null +++ b/sandbox/slaws/scatours/gettingstarted/src/main/java/client/TripClient.java @@ -0,0 +1,37 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package client; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +import trip.Trip; + +/** + * This shows how to run the CurrencyConverter component. + */ +public class TripClient { + + public final static void main(String[] args) throws Exception { + SCADomain scaDomain = SCADomain.newInstance("trip.composite"); + Trip trip = scaDomain.getService(Trip.class, "TripComponent"); + System.out.println(trip.getTotalPrice()); + + scaDomain.close(); + } +} diff --git a/sandbox/slaws/scatours/gettingstarted/src/main/java/currencyconverter/CurrencyConverter.java b/sandbox/slaws/scatours/gettingstarted/src/main/java/currencyconverter/CurrencyConverter.java new file mode 100644 index 0000000000..dbae9cbe53 --- /dev/null +++ b/sandbox/slaws/scatours/gettingstarted/src/main/java/currencyconverter/CurrencyConverter.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package currencyconverter; + +import org.osoa.sca.annotations.Remotable; + +/** + * The CurrencyConverter service interface + */ +public interface CurrencyConverter { + double convert(String fromCurrencyCode, + String toCurrencyCode, + double amount); +} diff --git a/sandbox/slaws/scatours/gettingstarted/src/main/java/currencyconverter/CurrencyConverterImpl.java b/sandbox/slaws/scatours/gettingstarted/src/main/java/currencyconverter/CurrencyConverterImpl.java new file mode 100644 index 0000000000..ed7e2691ff --- /dev/null +++ b/sandbox/slaws/scatours/gettingstarted/src/main/java/currencyconverter/CurrencyConverterImpl.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package currencyconverter; + + +/** + * An implementation of the CurrencyConverter service + */ +public class CurrencyConverterImpl implements CurrencyConverter { + public double convert(String fromCurrencyCode, + String toCurrencyCode, + double amount){ + // regardless of which currencies are specified the + // conversion is the same! + return amount * 1.23; + } +} diff --git a/sandbox/slaws/scatours/gettingstarted/src/main/java/trip/Trip.java b/sandbox/slaws/scatours/gettingstarted/src/main/java/trip/Trip.java new file mode 100644 index 0000000000..c7f930c631 --- /dev/null +++ b/sandbox/slaws/scatours/gettingstarted/src/main/java/trip/Trip.java @@ -0,0 +1,26 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package trip; + +/** + * The Trip service interface + */ +public interface Trip { + double getTotalPrice(); +} diff --git a/sandbox/slaws/scatours/gettingstarted/src/main/java/trip/TripImpl.java b/sandbox/slaws/scatours/gettingstarted/src/main/java/trip/TripImpl.java new file mode 100644 index 0000000000..6b3f3c7836 --- /dev/null +++ b/sandbox/slaws/scatours/gettingstarted/src/main/java/trip/TripImpl.java @@ -0,0 +1,46 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package trip; + +import org.osoa.sca.annotations.Reference; + +import currencyconverter.CurrencyConverter; + +/** + * An implementation of the Trip service + */ +public class TripImpl implements Trip { + + private CurrencyConverter currencyConverter; + + private double totalPrice = 123.45; + private String supplierCurrency = "USD"; + private String quoteCurrency = "GBP"; + + @Reference + public void setCurrencyConverter(CurrencyConverter currencyConverter){ + this.currencyConverter = currencyConverter; + } + + public double getTotalPrice(){ + return currencyConverter.convert(supplierCurrency, + quoteCurrency, + totalPrice); + } +} diff --git a/sandbox/slaws/scatours/gettingstarted/src/main/resources/currencyconverter.composite b/sandbox/slaws/scatours/gettingstarted/src/main/resources/currencyconverter.composite new file mode 100644 index 0000000000..ae94401f6c --- /dev/null +++ b/sandbox/slaws/scatours/gettingstarted/src/main/resources/currencyconverter.composite @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" + targetNamespace="http://scatours" + xmlns:sample="http://scatours" + name="currencyconverter"> + + <component name="CurrencyConverterComponent"> + <implementation.java class="currencyconverter.CurrencyConverterImpl"/> + </component> + +</composite> diff --git a/sandbox/slaws/scatours/gettingstarted/src/main/resources/trip.composite b/sandbox/slaws/scatours/gettingstarted/src/main/resources/trip.composite new file mode 100644 index 0000000000..ee5c6812db --- /dev/null +++ b/sandbox/slaws/scatours/gettingstarted/src/main/resources/trip.composite @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" + targetNamespace="http://scatours" + xmlns:sample="http://scatours" + name="trip"> + + <component name="TripComponent"> + <implementation.java class="trip.TripImpl"/> + <reference name="currencyConverter" target="CurrencyConverterComponent"/> + </component> + + <component name="CurrencyConverterComponent"> + <implementation.java class="currencyconverter.CurrencyConverterImpl"/> + </component> + +</composite> diff --git a/sandbox/slaws/scatours/pom.xml b/sandbox/slaws/scatours/pom.xml new file mode 100644 index 0000000000..6568384acb --- /dev/null +++ b/sandbox/slaws/scatours/pom.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<project> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-sca</artifactId> + <version>2.0-incubating-SNAPSHOT</version> + <relativePath>../pom.xml</relativePath> + </parent> + <artifactId>tuscany-scatours</artifactId> + <packaging>pom</packaging> + <name>Apache Tuscany SCA Tours Sample</name> + + <profiles> + <profile> + <id>default</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <modules> + <module>calendar</module> + <module>currencyconverter</module> + <module>gettingstarted</module> + </modules> + </profile> + + </profiles> + +</project> |