From bdb4aea7ddb7f525d5c476077a88d905d261fdb8 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 29 Dec 2020 22:32:00 -0800 Subject: Migrate more keys --- src/main/java/org/traccar/config/Keys.java | 37 +++++++++++++++++++----------- 1 file changed, 23 insertions(+), 14 deletions(-) (limited to 'src/main/java/org/traccar/config') 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 @@ -152,13 +152,6 @@ public final class Keys { "server.statistics", Collections.singletonList(KeyType.GLOBAL)); - /** - * Enable events subsystem. Flag to enable all events handlers. - */ - public static final ConfigKey EVENT_ENABLE = new ConfigKey<>( - "event.enable", - Collections.singletonList(KeyType.GLOBAL)); - /** * If true, the event is generated once at the beginning of overspeeding period. */ @@ -425,6 +418,13 @@ public final class Keys { Collections.singletonList(KeyType.GLOBAL), 600L); + /** + * Force additional state check when device status changes to 'offline' or 'unknown'. Default false. + */ + public static final ConfigKey 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. @@ -471,13 +471,6 @@ public final class Keys { "web.debug", Collections.singletonList(KeyType.GLOBAL)); - /** - * Enable positions forwarding to other web server. - */ - public static final ConfigKey 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. @@ -543,6 +536,22 @@ public final class Keys { "forward.retry.limit", Collections.singletonList(KeyType.GLOBAL)); + /** + * Events forwarding URL. + */ + public static final ConfigKey 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 EVENT_FORWARD_HEADERS = new ConfigKey<>( + "event.forward.header", + Collections.singletonList(KeyType.GLOBAL)); + /** * SMS API service full URL. Enables SMS commands and notifications. */ -- cgit v1.2.3