aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-07-13 14:36:56 -0700
committerAnton Tananaev <anton@traccar.org>2024-07-13 14:36:56 -0700
commit50e9eced4a045c6d1e71abc5203b73da9673abc0 (patch)
tree7c449b7268287e2eb25a76b2311394b2e32c2baa /src/main/java/org/traccar/config
parent2d1b4aad57da93d171170b2c63d9b6380bf59e44 (diff)
downloadtrackermap-server-50e9eced4a045c6d1e71abc5203b73da9673abc0.tar.gz
trackermap-server-50e9eced4a045c6d1e71abc5203b73da9673abc0.tar.bz2
trackermap-server-50e9eced4a045c6d1e71abc5203b73da9673abc0.zip
Some tasks on single server only
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r--src/main/java/org/traccar/config/Keys.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index ac2adca8a..dcd9aaa28 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -1937,8 +1937,8 @@ public final class Keys {
"time,position,speed,course,accuracy,result");
/**
- * Broadcast method. Available options are "multicast" and "redis". By default (if the value is not
- * specified or does not matches available options) server disables broadcast.
+ * Broadcast method. Available options are "multicast" and "redis". By default, (if the value is not
+ * specified or does not match available options) server disables broadcast.
*/
public static final ConfigKey<String> BROADCAST_TYPE = new StringConfigKey(
"broadcast.type",
@@ -1965,4 +1965,11 @@ public final class Keys {
"broadcast.port",
List.of(KeyType.CONFIG));
+ /**
+ * Flag to mark secondary servers. Some tasks, like scheduled reports, will be executed on the main server only.
+ */
+ public static final ConfigKey<Boolean> BROADCAST_SECONDARY = new BooleanConfigKey(
+ "broadcast.secondary",
+ List.of(KeyType.CONFIG));
+
}