summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/domain-node
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-2.x/trunk/modules/domain-node')
-rw-r--r--sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/Node.java7
-rw-r--r--sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java10
2 files changed, 14 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/Node.java b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/Node.java
index 279ed709a3..89eeb09c2c 100644
--- a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/Node.java
+++ b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/Node.java
@@ -238,12 +238,13 @@ public interface Node {
List<String> getDeployableCompositeURIs(String contributionURI);
void validateContribution(String string) throws ContributionReadException, ValidationException;
-
+
+ // TODO: should these member getters be replaced with a getDomainRegistry?
List<String> getMembers();
+ String getLocalMember();
+ String getRunningMember(String contributionURI, String compositeURI);
// TODO: Add methods to get:
- // active members in domain
- // which composites are running on which members
// start and stop composites on remote members
// get/display contribution content
// a view-only Node
diff --git a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java
index 7027ee8c53..824b427380 100644
--- a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java
+++ b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java
@@ -392,4 +392,14 @@ public class NodeImpl implements Node {
return domainRegistry.getMembers();
}
+ @Override
+ public String getLocalMember() {
+ return domainRegistry.getLocalMember();
+ }
+
+ @Override
+ public String getRunningMember(String contributionURI, String compositeURI) {
+ return domainRegistry.getRunningMember(contributionURI, compositeURI);
+ }
+
}