summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-06-07 13:20:43 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-06-07 13:20:43 +0000
commit835a1f814cc883179ca76fc3071a21e14c339d0f (patch)
tree7df35abebe36474eccd2f0e36af065f0574b4b15 /sca-java-2.x/trunk/modules/shell/src/main/java/org/apache
parented75826096c181c1e217f1d197a9c1acf0093a00 (diff)
Rename 'member' to 'node' as it seems too confusing to try to have a different name for it
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1132994 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/shell/src/main/java/org/apache')
-rw-r--r--sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java36
1 files changed, 18 insertions, 18 deletions
diff --git a/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java b/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java
index 4345f3732e..2d91e64d49 100644
--- a/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java
+++ b/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java
@@ -73,7 +73,7 @@ public class Shell {
private Map<String, Node> nodes = new HashMap<String, Node>();
public static final String[] COMMANDS = new String[] {"addComposite", "bye", "domain", "domains", "domainComposite", "help", "install", "installed", "invoke",
- "load", "members", "remove", "run", "save", "services", "start", "started", "stop"};
+ "load", "nodes", "remove", "run", "save", "services", "start", "started", "stop"};
public static void main(final String[] args) throws Exception {
boolean useJline = true;
@@ -451,8 +451,8 @@ public class Shell {
return true;
}
- boolean remoteStart(String contributionURI, String compositeURI, String member) throws ActivationException {
- getNode().startComposite(member, contributionURI, compositeURI);
+ boolean remoteStart(String contributionURI, String compositeURI, String nodeName) throws ActivationException {
+ getNode().startComposite(nodeName, contributionURI, compositeURI);
return true;
}
@@ -487,17 +487,17 @@ public class Shell {
for (String curi : node.getStartedCompositeURIs().keySet()) {
for (String compositeURI : node.getStartedCompositeURIs().get(curi)) {
- String runningMember = node.getRunningMember(curi, compositeURI);
- if (node.getLocalMember().equals(runningMember)) {
- runningMember = "this";
+ String runningNodeName = node.getRunningNodeName(curi, compositeURI);
+ if (node.getLocalNodeName().equals(runningNodeName)) {
+ runningNodeName = "this";
}
- if ("LocalOnly".equals(runningMember)) {
- runningMember = "";
+ if ("LocalOnly".equals(runningNodeName)) {
+ runningNodeName = "";
} else {
- runningMember = " (" + runningMember + ")";
+ runningNodeName = " (" + runningNodeName + ")";
}
- out.println(" " + curi + " " + compositeURI + runningMember);
+ out.println(" " + curi + " " + compositeURI + runningNodeName);
}
}
// }
@@ -507,10 +507,10 @@ public class Shell {
return true;
}
- boolean members() {
- String localMember = getNode().getLocalMember();
- for (String member : getNode().getMembers()) {
- out.println(member + (localMember.equals(member) ? " (this)" : ""));
+ boolean nodes() {
+ String localNode = getNode().getLocalNodeName();
+ for (String node : getNode().getNodeNames()) {
+ out.println(node + (localNode.equals(node) ? " (this)" : ""));
}
return true;
}
@@ -632,10 +632,10 @@ public class Shell {
return load(toks.get(1));
}
};
- if (op.equalsIgnoreCase("members"))
+ if (op.equalsIgnoreCase("nodes"))
return new Callable<Boolean>() {
public Boolean call() throws Exception {
- return members();
+ return nodes();
}
};
if (op.equalsIgnoreCase("remove"))
@@ -814,12 +814,12 @@ public class Shell {
out.println(" installed [<contributionURI>]");
out.println(" invoke <component>[/<service>] <operation> [<arg0> <arg1> ...]");
out.println(" load <configXmlURL>");
- out.println(" members");
+ out.println(" nodes");
out.println(" remove <contributionURI>");
out.println(" run <commandsFileURL>");
out.println(" save <directoryPath>");
out.println(" services");
- out.println(" start <curi> <compositeUri> [<member>]");
+ out.println(" start <curi> <compositeUri> [<nodeName>]");
out.println(" started");
out.println(" status");
out.println(" stop <curi> <compositeUri>");