while building the list of instances for ConfigPropertyBasedDiscovery, is it possible to support port as part of hostname instead of reading ports from attributes property of Instance?
String[] parts = instanceList.split(",");
List<Instance> instances = new ArrayList<Instance>();
for (String s : parts) {
instances.add(new Instance(s, cluster, true));
}
or else provide the users on how to set the port explicitly as part of property for ConfigPropertyBasedDiscovery rather than providing custom implementation of the discovery?
while building the list of instances for ConfigPropertyBasedDiscovery, is it possible to support port as part of hostname instead of reading ports from attributes property of Instance?
FROM
To
Tweaking below code might do the trick:
or else provide the users on how to set the port explicitly as part of property for ConfigPropertyBasedDiscovery rather than providing custom implementation of the discovery?