}
if (isSelf(uriString)) {
return;
}
NodeServiceVitals vitals = discoveredServices.get(uriString);
if (vitals == null) {
try {
vitals = serviceVitalsFactory.createSerivceVitals(new NodeService(uriString));
discoveredServices.put(uriString, vitals);
fireServiceAddEvent(vitals.getService().getUri());
} catch (URISyntaxException e) {
// don't continuously log this
}
} else {
vitals.heartbeat();
if (vitals.doRecovery()) {
fireServiceAddEvent(vitals.getService().getUri());
}
}
}