private String fetchNode(int id, UUID shardUuid) { String node = dao.getNodeIdentifier(id); if (node == null) { throw new PrestoException( RAPTOR_ERROR, format("Missing node ID [%s] for shard: %s", id, shardUuid)); } return node; }
private void fetchNodes() { for (RaptorNode node : dao.getNodes()) { nodeMap.put(node.getNodeId(), node.getNodeIdentifier()); } }