diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-19 08:48:21 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-19 08:48:21 +0000 |
commit | ce208dd59902981b9fac895a6596d0e08b065da6 (patch) | |
tree | 6d146851fb908e0a17ebdebcfe174d5a82015f42 /sca-java-2.x/trunk/modules/domain-node | |
parent | 96b8adf748b455a3004b75de9f64a80747a6b399 (diff) |
Update to add APIs to get at which composites are running where
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1124606 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
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); + } + } |