diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-12-29 22:32:00 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-12-29 22:32:00 -0800 |
commit | bdb4aea7ddb7f525d5c476077a88d905d261fdb8 (patch) | |
tree | cfa8352aab61762644ece9f01b7997c05b4a19a4 /src/main/java/org/traccar/config | |
parent | 8fe1e679935688676f7139bb9ed6dc61838d0e2f (diff) | |
download | trackermap-server-bdb4aea7ddb7f525d5c476077a88d905d261fdb8.tar.gz trackermap-server-bdb4aea7ddb7f525d5c476077a88d905d261fdb8.tar.bz2 trackermap-server-bdb4aea7ddb7f525d5c476077a88d905d261fdb8.zip |
Migrate more keys
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r-- | src/main/java/org/traccar/config/Keys.java | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java index 96ed7773b..da6c46ee9 100644 --- a/src/main/java/org/traccar/config/Keys.java +++ b/src/main/java/org/traccar/config/Keys.java @@ -153,13 +153,6 @@ public final class Keys { Collections.singletonList(KeyType.GLOBAL)); /** - * Enable events subsystem. Flag to enable all events handlers. - */ - public static final ConfigKey<Boolean> EVENT_ENABLE = new ConfigKey<>( - "event.enable", - Collections.singletonList(KeyType.GLOBAL)); - - /** * If true, the event is generated once at the beginning of overspeeding period. */ public static final ConfigKey<Boolean> EVENT_OVERSPEED_NOT_REPEAT = new ConfigKey<>( @@ -426,6 +419,13 @@ public final class Keys { 600L); /** + * Force additional state check when device status changes to 'offline' or 'unknown'. Default false. + */ + public static final ConfigKey<Boolean> STATUS_UPDATE_DEVICE_STATE = new ConfigKey<>( + "status.updateDeviceState", + Collections.singletonList(KeyType.GLOBAL)); + + /** * Optional parameter to specify network interface for web interface to bind to. By default server will bind to all * available interfaces. */ @@ -472,13 +472,6 @@ public final class Keys { Collections.singletonList(KeyType.GLOBAL)); /** - * Enable positions forwarding to other web server. - */ - public static final ConfigKey<Boolean> FORWARD_ENABLE = new ConfigKey<>( - "forward.enable", - Collections.singletonList(KeyType.GLOBAL)); - - /** * URL to forward positions. Data is passed through URL parameters. For example, {uniqueId} for device identifier, * {latitude} and {longitude} for coordinates. */ @@ -544,6 +537,22 @@ public final class Keys { Collections.singletonList(KeyType.GLOBAL)); /** + * Events forwarding URL. + */ + public static final ConfigKey<String> EVENT_FORWARD_URL = new ConfigKey<>( + "event.forward.url", + Collections.singletonList(KeyType.GLOBAL)); + + /** + * Events forwarding headers. Example value: + * FirstHeader: hello + * SecondHeader: world + */ + public static final ConfigKey<String> EVENT_FORWARD_HEADERS = new ConfigKey<>( + "event.forward.header", + Collections.singletonList(KeyType.GLOBAL)); + + /** * SMS API service full URL. Enables SMS commands and notifications. */ public static final ConfigKey<String> SMS_HTTP_URL = new ConfigKey<>( |