m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorMartin <marcin.j.chrzanowski@gmail.com>2020-01-11 18:25:10 +0100
committerGitHub <noreply@github.com>2020-01-11 18:25:10 +0100
commit0c94ea210579436f5a1723117f83ced974517b55 (patch)
tree6af826662de612f5b91644845845630753dac856 /build.gradle
parent2b8b0560346fe7e55c293550efb003d9bd25db98 (diff)
parentb4e25a3cb8a9c54cd1d4ec4cbe78dd44f2873eeb (diff)
Merge pull request #96 from m-chrzan/start-gossip-girl
Create repeating task for initiating gossip
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle10
1 files changed, 10 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index e2174a7..66c50d1 100644
--- a/build.gradle
+++ b/build.gradle
@@ -22,6 +22,14 @@ ext.freshnessPeriod = {
return System.getProperty("freshnessPeriod") ?: 60 * 1000
}
+ext.queryPeriod = {
+ return System.getProperty("queryPeriod") ?: 5 * 1000
+}
+
+ext.gossipPeriod = {
+ return System.getProperty("gossipPeriod") ?: 5 * 1000
+}
+
ext.UDUPHostname = {
return System.getProperty("hostname") ?: "localhost"
}
@@ -79,6 +87,8 @@ task runAgent(type: JavaExec) {
main = 'pl.edu.mimuw.cloudatlas.agent.Agent'
systemProperty 'java.rmi.server.hostname', hostname()
systemProperty 'freshness_period', freshnessPeriod()
+ systemProperty 'query_period', queryPeriod()
+ systemProperty 'gossip_period', gossipPeriod()
systemProperty 'UDUPServer.hostname', UDUPHostname()
systemProperty 'UDUPServer.port', port()
systemProperty 'UDUPServer.timeout', port()