diff options
author | Magdalena GrodziĆska <mag.grodzinska@gmail.com> | 2020-01-12 14:59:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-12 14:59:48 +0100 |
commit | 936b20454adad57eb7e0897d2090af0591910f19 (patch) | |
tree | 45dee00d1c152cea4a3c62e0f0570fa3ea17e897 /src/main/java/pl/edu/mimuw/cloudatlas/agent/HierarchyConfig.java | |
parent | 100e3d23b47d9d772d64dd0c7e596cd20de218b9 (diff) | |
parent | 5995da144818842e69b9d0afa9f392a9e6419508 (diff) |
Merge pull request #110 from m-chrzan/setting_zones_3
Setting zones 3
Diffstat (limited to 'src/main/java/pl/edu/mimuw/cloudatlas/agent/HierarchyConfig.java')
-rw-r--r-- | src/main/java/pl/edu/mimuw/cloudatlas/agent/HierarchyConfig.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/agent/HierarchyConfig.java b/src/main/java/pl/edu/mimuw/cloudatlas/agent/HierarchyConfig.java index dc5241d..f9e323a 100644 --- a/src/main/java/pl/edu/mimuw/cloudatlas/agent/HierarchyConfig.java +++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/HierarchyConfig.java @@ -37,7 +37,7 @@ public class HierarchyConfig { } } - public void startGossip(long gossipPeriod) { + public void startGossip(long gossipPeriod, String zonePath) { Supplier<TimerScheduledTask> taskSupplier = () -> new TimerScheduledTask() { public void run() { @@ -47,7 +47,7 @@ public class HierarchyConfig { ValueContact contact = selectContactFromLevel(gossipLevel); if (contact != null) { System.out.println("INFO: found a contact " + contact.toString()); - InitiateGossipMessage message = new InitiateGossipMessage("", 0, new PathName("/uw/violet07"), contact); + InitiateGossipMessage message = new InitiateGossipMessage("", 0, new PathName(zonePath), contact); sendMessage(message); } else { System.out.println("DEBUG: couldn't find contact for gossip"); |