/** * Get the next node from the system. * * @return the node * @throws ProtocolException */ public Node getNextNode() throws ProtocolException { BidibMessage response = send(requestFactory.createNodeTabGetNext(), null, true, NodeTabResponse.TYPE); if (response instanceof NodeTabResponse) { // create a new node from the received data LOGGER.debug("Get next tab returned: {}, own addr: {}", response, addr); // create the new Node instance Node childNode = ((NodeTabResponse) response).getNode(addr); LOGGER.debug("Fetched child node: {}", childNode); return childNode; } if (ignoreWaitTimeout) { LOGGER.warn("No response received but ignoreWaitTimeout ist set! Current node: {}", this); return null; } throw createNoResponseAvailable("get next node"); }