Commit a12b523c authored by Ali Saeed's avatar Ali Saeed

Update ServiceRegistry class to make getAllServiceAddresses static method

parent c8cedf51
......@@ -17,9 +17,9 @@ public class ServiceRegistry implements Watcher {
private final ZooKeeper zooKeeper;
private String currentZnode = null;
private List<String> allServiceAddresses = null;
private static List<String> allServiceAddresses = null;
public List<String> getAllServiceAddresses() {
public static List<String> getAllServiceAddresses() {
return allServiceAddresses;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment