this.environment = nodeInfo.getEnvironment();
this.serviceInventoryUri = serviceInventoryConfig.getServiceInventoryUri();
updateInterval = serviceInventoryConfig.getUpdateInterval();
this.serviceDescriptorsCodec = serviceDescriptorsCodec;
this.discoveryListener = new HttpServiceBalancerListenerAdapter(discoveryBalancer);
if (serviceInventoryUri != null) {
String scheme = serviceInventoryUri.getScheme().toLowerCase();
checkArgument(scheme.equals("file"), "Service inventory uri must have a file scheme");