Mercurial > hg > Database > Christie
changeset 207:437f06e034b8
Correct PrefixTree
author | ichikitakahiro <e165713@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 11 Mar 2019 22:21:23 +0900 |
parents | 7beaa2839c3c |
children | 7d08e76d2553 5647450a26ca |
files | src/test/java/christie/example/PrefixTree/CountCalculate.java src/test/java/christie/example/PrefixTree/CountMessage.java src/test/java/christie/example/PrefixTree/StartPrefixTree.java |
diffstat | 3 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/test/java/christie/example/PrefixTree/CountCalculate.java Mon Mar 11 22:20:51 2019 +0900 +++ b/src/test/java/christie/example/PrefixTree/CountCalculate.java Mon Mar 11 22:21:23 2019 +0900 @@ -18,7 +18,7 @@ if(nodeName.matches("parent")) { childNum = childNum - 1; } - + } if (childNum == 0) { put("pushedNum", 0);
--- a/src/test/java/christie/example/PrefixTree/CountMessage.java Mon Mar 11 22:20:51 2019 +0900 +++ b/src/test/java/christie/example/PrefixTree/CountMessage.java Mon Mar 11 22:21:23 2019 +0900 @@ -27,7 +27,7 @@ System.out.print("success"); for(String nodeName : topoDG.getConnectionList()) { put(nodeName, "start", new Message()); - System.out.println(nodeName); + //child0,1へのメッセージ送信はできてる。 } cgm.setup(new CountCalculate());
--- a/src/test/java/christie/example/PrefixTree/StartPrefixTree.java Mon Mar 11 22:20:51 2019 +0900 +++ b/src/test/java/christie/example/PrefixTree/StartPrefixTree.java Mon Mar 11 22:21:23 2019 +0900 @@ -21,10 +21,11 @@ String[] managerArg = {"--localPort", String.valueOf(topologyManagerPort), "--Topology", "tree"}; TopologyManagerConfig topologyManagerConfig = new TopologyManagerConfig(managerArg); new StartTopologyManager(topologyManagerConfig); + //TopologyManagerの作成 for (int i = 0; i < nodeNum ; i++){ String[] nodeArg = { - "--managerPort", String.valueOf(topologyManagerPort), + "--managerPort", String.valueOf(topologyManagerPort), //使うトポロジーマネージャーを選ぶ "--managerHost", "localhost", "--localPort", String.valueOf(topologyNodePort + i)}; TopologyNodeConfig nodeConfig = new TopologyNodeConfig(nodeArg);