199200201202203204205206207208
short localNodeId; try { localNodeId = Short.parseShort(localNodeIdStr); } catch (NumberFormatException e) { throw new SyncException("Failed to parse local node ID: " + localNodeIdStr, e); } return localNodeId; }
279280281282283284285286287
} } if (bestAddr != null) return bestAddr.getHostName(); } catch (Exception e) { throw new SyncException("Failed to find interface addresses", e); } throw new SyncException("No usable interface addresses found"); }
55565758596061
logger.debug("ClusterConfig provider {} failed: {}", provider.getClass().getSimpleName(), e.getMessage()); } } throw new SyncException("All cluster config providers failed"); }