Example #1
0
 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;
 }
Example #2
0
 private void fetchNodes() {
   for (RaptorNode node : dao.getNodes()) {
     nodeMap.put(node.getNodeId(), node.getNodeIdentifier());
   }
 }