m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pl/edu/mimuw/cloudatlas
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/pl/edu/mimuw/cloudatlas')
-rw-r--r--src/main/java/pl/edu/mimuw/cloudatlas/agent/Agent.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/agent/Agent.java b/src/main/java/pl/edu/mimuw/cloudatlas/agent/Agent.java
index 8652a3d..85faa9c 100644
--- a/src/main/java/pl/edu/mimuw/cloudatlas/agent/Agent.java
+++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/Agent.java
@@ -271,7 +271,9 @@ public class Agent {
runRegistry();
initZones();
// TODO: make query period confiurable with config file and from tests
- startQueries(100l);
- startGossip(5000l);
+ Long queryPeriod = Long.getLong("query_period");
+ startQueries(queryPeriod);
+ Long gossipPeriod = Long.getLong("gossip_period");
+ startGossip(gossipPeriod);
}
}