153154155156157158159160161162163
while (!newNode.isReady() && !newNode.joinFailed()) { newNode.wait(500); if (newNode.joinFailed()) { throw new IOException( "Could not join the Pastry ring with reason: " + newNode.joinFailedReason()); } } } this.node = newNode;