public static Map < InetAddress , UUID > loadHostIds ( ) { Map < InetAddress , UUID > hostIdMap = new HashMap < InetAddress , UUID > ( ) ; for ( UntypedResultSet . Row row : executeInternal ( "SELECT peer, host_id FROM system." + PEERS_CF ) ) { InetAddress peer = row . getInetAddress ( "peer" ) ; if ( row . has ( "host_id" ) ) { hostIdMap . put ( peer , row . getUUID ( "host_id" ) ) ; } } return hostIdMap ; }
Return a map of store host_ids to IP addresses