aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config/Keys.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2022-01-15 23:19:23 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2022-01-15 23:19:23 -0800
commit0ce163ba62cc991fee56d9c05fca41c9f7a28143 (patch)
treeecdad61979167b4fc605ba2ec4420709b5c1b0fd /src/main/java/org/traccar/config/Keys.java
parent93745ce5de3f5004cb98d951794c692db284a2e2 (diff)
downloadtrackermap-server-0ce163ba62cc991fee56d9c05fca41c9f7a28143.tar.gz
trackermap-server-0ce163ba62cc991fee56d9c05fca41c9f7a28143.tar.bz2
trackermap-server-0ce163ba62cc991fee56d9c05fca41c9f7a28143.zip
Finish initial implementation
Diffstat (limited to 'src/main/java/org/traccar/config/Keys.java')
-rw-r--r--src/main/java/org/traccar/config/Keys.java31
1 files changed, 30 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index 8f93b21c1..cb3bd4de8 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -38,13 +38,28 @@ public final class Keys {
Collections.singletonList(KeyType.GLOBAL));
/**
- * List of devices for polling protocols. List should contain unique ids separated by commas.
+ * List of devices for polling protocols. List should contain unique ids separated by commas. Used only for polling
+ * protocols.
*/
public static final ConfigSuffix<String> PROTOCOL_DEVICES = new ConfigSuffix<>(
".devices",
Collections.singletonList(KeyType.GLOBAL));
/**
+ * Polling interval in seconds. Used only for polling protocols.
+ */
+ public static final ConfigSuffix<Long> PROTOCOL_INTERVAL = new ConfigSuffix<>(
+ ".interval",
+ Collections.singletonList(KeyType.GLOBAL));
+
+ /**
+ * Enable SSL support for the protocol. Not all protocols support this.
+ */
+ public static final ConfigSuffix<Boolean> PROTOCOL_SSL = new ConfigSuffix<>(
+ ".ssl",
+ Collections.singletonList(KeyType.GLOBAL));
+
+ /**
* Connection timeout value in seconds. Because sometimes there is no way to detect lost TCP connection old
* connections stay in open state. On most systems there is a limit on number of open connection, so this leads to
* problems with establishing new connections when number of devices is high or devices data connections are
@@ -183,6 +198,20 @@ public final class Keys {
Collections.singletonList(KeyType.GLOBAL));
/**
+ * ORBCOMM API access id.
+ */
+ public static final ConfigKey<String> ORBCOMM_ACCESS_ID = new ConfigKey<>(
+ "orbcomm.accessId",
+ Collections.singletonList(KeyType.GLOBAL));
+
+ /**
+ * ORBCOMM API password.
+ */
+ public static final ConfigKey<String> ORBCOMM_PASSWORD = new ConfigKey<>(
+ "orbcomm.password",
+ Collections.singletonList(KeyType.GLOBAL));
+
+ /**
* Skip device connection session cache. Global configuration.
*/
public static final ConfigKey<Boolean> DECODER_IGNORE_SESSIONS_CACHE = new ConfigKey<>(