aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config/Keys.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-04-30 18:29:37 -0700
committerAnton Tananaev <anton@traccar.org>2022-04-30 18:29:37 -0700
commit2a6e75c5d9527cb7b5b54e257fd756e717d5347a (patch)
tree9d8bd9d7302953ce4d65e458f1dd72be92e2c26b /src/main/java/org/traccar/config/Keys.java
parent94fa65d6961fc369923b11a60758b83ac7c3ecae (diff)
downloadtrackermap-server-2a6e75c5d9527cb7b5b54e257fd756e717d5347a.tar.gz
trackermap-server-2a6e75c5d9527cb7b5b54e257fd756e717d5347a.tar.bz2
trackermap-server-2a6e75c5d9527cb7b5b54e257fd756e717d5347a.zip
Implement cluster broadcasting
Diffstat (limited to 'src/main/java/org/traccar/config/Keys.java')
-rw-r--r--src/main/java/org/traccar/config/Keys.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index ccfe4bee7..dc6bcbec9 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -1309,4 +1309,18 @@ public final class Keys {
Collections.singletonList(KeyType.GLOBAL),
"time,position,speed,course,accuracy,result");
+ /**
+ * Multicast address for broadcasting synchronization events.
+ */
+ public static final ConfigKey<String> BROADCAST_ADDRESS = new ConfigKey<>(
+ "broadcast.address",
+ Collections.singletonList(KeyType.GLOBAL));
+
+ /**
+ * Multicast port for broadcasting synchronization events.
+ */
+ public static final ConfigKey<Integer> BROADCAST_PORT = new ConfigKey<>(
+ "broadcast.port",
+ Collections.singletonList(KeyType.GLOBAL));
+
}