use of com.netflix.exhibitor.core.config.PropertyBasedInstanceConfig in project exhibitor by soabase.
the class ZookeeperConfigProvider method loadConfig.
@Override
public LoadedInstanceConfig loadConfig() throws Exception {
int version = -1;
Properties properties = new Properties();
ChildData childData = getConfigNode();
if (childData != null) {
version = childData.getStat().getVersion();
properties.load(new ByteArrayInputStream(childData.getData()));
}
PropertyBasedInstanceConfig config = new PropertyBasedInstanceConfig(properties, defaults);
return new LoadedInstanceConfig(config, version);
}
Aggregations