tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sl...@apache.org
Subject svn commit: r552342 - in /incubator/tuscany/java/sca/modules/topology/src/main/java/org/apache/tuscany/sca/topology: Runtime.java impl/RuntimeImpl.java
Date Sun, 01 Jul 2007 17:40:59 GMT
Author: slaws
Date: Sun Jul  1 10:40:58 2007
New Revision: 552342

URL: http://svn.apache.org/viewvc?view=rev&rev=552342
Log:
Start using the topology to configure distributed nodes. 

Modified:
    incubator/tuscany/java/sca/modules/topology/src/main/java/org/apache/tuscany/sca/topology/Runtime.java
    incubator/tuscany/java/sca/modules/topology/src/main/java/org/apache/tuscany/sca/topology/impl/RuntimeImpl.java

Modified: incubator/tuscany/java/sca/modules/topology/src/main/java/org/apache/tuscany/sca/topology/Runtime.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/topology/src/main/java/org/apache/tuscany/sca/topology/Runtime.java?view=diff&rev=552342&r1=552341&r2=552342
==============================================================================
--- incubator/tuscany/java/sca/modules/topology/src/main/java/org/apache/tuscany/sca/topology/Runtime.java
(original)
+++ incubator/tuscany/java/sca/modules/topology/src/main/java/org/apache/tuscany/sca/topology/Runtime.java
Sun Jul  1 10:40:58 2007
@@ -37,4 +37,12 @@
      * @return
      */
     public List<Node> getNodes();
+    
+    /**
+     * Get a node by node name
+     * 
+     * @param nodeName the name of the node to return
+     * @return the node
+     */
+    public Node getNode(String nodeName);
 }

Modified: incubator/tuscany/java/sca/modules/topology/src/main/java/org/apache/tuscany/sca/topology/impl/RuntimeImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/topology/src/main/java/org/apache/tuscany/sca/topology/impl/RuntimeImpl.java?view=diff&rev=552342&r1=552341&r2=552342
==============================================================================
--- incubator/tuscany/java/sca/modules/topology/src/main/java/org/apache/tuscany/sca/topology/impl/RuntimeImpl.java
(original)
+++ incubator/tuscany/java/sca/modules/topology/src/main/java/org/apache/tuscany/sca/topology/impl/RuntimeImpl.java
Sun Jul  1 10:40:58 2007
@@ -38,5 +38,18 @@
     public List<Node> getNodes() {
         return nodes;
     }
+    
+    public Node getNode(String nodeName){
+        Node returnNode = null;
+        
+        for(Node node : getNodes()){
+            if ( node.getName().equals(nodeName)){
+                returnNode = node;
+                break;
+            }
+        }
+            
+        return returnNode;
+    }
 
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message