Mercurial > hg > FederatedLinda
comparison src/fdl/test/topology/NodeManager.java @ 81:c001797f3fdb
connect bug fix
author | one |
---|---|
date | Mon, 23 Nov 2009 20:39:39 +0900 |
parents | 805645cf5ec0 |
children |
comparison
equal
deleted
inserted
replaced
80:04bd4ae97e7c | 81:c001797f3fdb |
---|---|
60 connect(node); | 60 connect(node); |
61 finishConnection(node); | 61 finishConnection(node); |
62 } | 62 } |
63 } | 63 } |
64 } | 64 } |
65 for (int i = 0; i < waitingNodes.size(); i++) { | |
66 NodeManager node = waitingNodes.get(i); | |
67 if (node.isRunning()) { | |
68 connect(node); | |
69 finishConnection(node); | |
70 if (node.waitingNodes.contains(this)) { | |
71 node.connect(this); | |
72 node.finishConnection(this); | |
73 } | |
74 } | |
75 } | |
65 } | 76 } |
66 | 77 |
67 public void connect(NodeManager node) { | 78 public void connect(NodeManager node) { |
68 ByteBuffer data = ByteBuffer.wrap(node.hostName.getBytes()); | 79 ByteBuffer data = ByteBuffer.wrap(node.hostName.getBytes()); |
69 linda.out(manageId, data); | 80 linda.out(manageId, data); |