aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/traccar/config/Config.java6
-rw-r--r--src/main/java/org/traccar/config/KeyType.java2
-rw-r--r--src/main/java/org/traccar/config/Keys.java154
3 files changed, 79 insertions, 83 deletions
diff --git a/src/main/java/org/traccar/config/Config.java b/src/main/java/org/traccar/config/Config.java
index c6d87bfd6..13d9ccc83 100644
--- a/src/main/java/org/traccar/config/Config.java
+++ b/src/main/java/org/traccar/config/Config.java
@@ -116,7 +116,7 @@ public class Config {
return hasKey(key) ? Integer.parseInt(getString(key)) : defaultValue;
}
- public long getLong(ConfigKey key) {
+ public long getLong(ConfigKey<Long> key) {
return getLong(key.getKey());
}
@@ -125,10 +125,6 @@ public class Config {
return getLong(key, 0);
}
- public long getLong(ConfigKey key, long defaultValue) {
- return getLong(key.getKey(), defaultValue);
- }
-
@Deprecated
public long getLong(String key, long defaultValue) {
return hasKey(key) ? Long.parseLong(getString(key)) : defaultValue;
diff --git a/src/main/java/org/traccar/config/KeyType.java b/src/main/java/org/traccar/config/KeyType.java
index 35f958be6..57a95c9ec 100644
--- a/src/main/java/org/traccar/config/KeyType.java
+++ b/src/main/java/org/traccar/config/KeyType.java
@@ -16,7 +16,7 @@
package org.traccar.config;
public enum KeyType {
- FILE,
+ GLOBAL,
SERVER,
USER,
DEVICE,
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index dc204b2f5..cc4211d8b 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -27,14 +27,14 @@ public final class Keys {
*/
public static final ConfigSuffix<Integer> PROTOCOL_TIMEOUT = new ConfigSuffix<>(
".timeout",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Server wide connection timeout value in seconds. See protocol timeout for more information.
*/
public static final ConfigKey<Integer> SERVER_TIMEOUT = new ConfigKey<>(
"server.timeout",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Address for uploading aggregated anonymous usage statistics. Uploaded information is the same you can see on the
@@ -42,56 +42,56 @@ public final class Keys {
*/
public static final ConfigKey<Boolean> SERVER_STATISTICS = new ConfigKey<>(
"server.statistics",
- Collections.singletonList(KeyType.FILE));
+ 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.FILE));
+ 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<>(
"event.overspeed.notRepeat",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Minimal over speed duration to trigger the event. Value in seconds.
*/
public static final ConfigKey<Long> EVENT_OVERSPEED_MINIMAL_DURATION = new ConfigKey<>(
"event.overspeed.minimalDuration",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Relevant only for geofence speed limits. Use lowest speed limits from all geofences.
*/
public static final ConfigKey<Boolean> EVENT_OVERSPEED_PREFER_LOWEST = new ConfigKey<>(
"event.overspeed.preferLowest",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Do not generate alert event if same alert was present in last known location.
*/
public static final ConfigKey<Boolean> EVENT_IGNORE_DUPLICATE_ALERTS = new ConfigKey<>(
"event.ignoreDuplicateAlerts",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* If set to true, invalid positions will be considered for motion logic.
*/
public static final ConfigKey<Boolean> EVENT_MOTION_PROCESS_INVALID_POSITIONS = new ConfigKey<>(
"event.motion.processInvalidPositions",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* If the speed is above specified value, the object is considered to be in motion. Default value is 0.01 knots.
*/
public static final ConfigKey<Double> EVENT_MOTION_SPEED_THRESHOLD = new ConfigKey<>(
"event.motion.speedThreshold",
- Collections.singletonList(KeyType.FILE),
+ Collections.singletonList(KeyType.GLOBAL),
0.01);
/**
@@ -100,7 +100,7 @@ public final class Keys {
*/
public static final ConfigKey<Double> GEOFENCE_POLYLINE_DISTANCE = new ConfigKey<>(
"geofence.polylineDistance",
- Collections.singletonList(KeyType.FILE),
+ Collections.singletonList(KeyType.GLOBAL),
25.0);
/**
@@ -109,42 +109,42 @@ public final class Keys {
*/
public static final ConfigKey<String> DATABASE_DRIVER_FILE = new ConfigKey<>(
"database.driverFile",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Database driver Java class. For H2 use 'org.h2.Driver'. MySQL driver class name is 'com.mysql.jdbc.Driver'.
*/
public static final ConfigKey<String> DATABASE_DRIVER = new ConfigKey<>(
"database.driver",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Database connection URL. By default Traccar uses H2 database.
*/
public static final ConfigKey<String> DATABASE_URL = new ConfigKey<>(
"database.url",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Database user name. Default administrator user for H2 database is 'sa'.
*/
public static final ConfigKey<String> DATABASE_USER = new ConfigKey<>(
"database.user",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Database user password. Default password for H2 admin (sa) user is empty.
*/
public static final ConfigKey<String> DATABASE_PASSWORD = new ConfigKey<>(
"database.password",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Path to Liquibase master changelog file.
*/
public static final ConfigKey<String> DATABASE_CHANGELOG = new ConfigKey<>(
"database.changelog",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* SQL query to check connection status. Default value is 'SELECT 1'. For Oracle database you can use
@@ -152,21 +152,21 @@ public final class Keys {
*/
public static final ConfigKey<String> DATABASE_CHECK_CONNECTION = new ConfigKey<>(
"database.checkConnection",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Store original HEX or string data as "raw" attribute in the corresponding position.
*/
public static final ConfigKey<Boolean> DATABASE_SAVE_ORIGINAL = new ConfigKey<>(
"database.saveOriginal",
- Collections.singletonList(KeyType.FILE));
+ 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.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* URL to forward positions. Data is passed through URL parameters. For example, {uniqueId} for device identifier,
@@ -174,21 +174,21 @@ public final class Keys {
*/
public static final ConfigKey<String> FORWARD_URL = new ConfigKey<>(
"forward.url",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Additional HTTP header, can be used for authorization.
*/
public static final ConfigKey<String> FORWARD_HEADER = new ConfigKey<>(
"forward.header",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Boolean value to enable forwarding in JSON format.
*/
public static final ConfigKey<Boolean> FORWARD_JSON = new ConfigKey<>(
"forward.json",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Boolean value to enable URL parameters in json mode. For example, {uniqueId} for device identifier,
@@ -196,7 +196,7 @@ public final class Keys {
*/
public static final ConfigKey<Boolean> FORWARD_URL_VARIABLES = new ConfigKey<>(
"forward.urlVariables",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Position forwarding retrying enable. When enabled, additional attempts are made to deliver positions. If initial
@@ -207,7 +207,7 @@ public final class Keys {
*/
public static final ConfigKey<Boolean> FORWARD_RETRY_ENABLE = new ConfigKey<>(
"forward.retry.enable",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Position forwarding retry first delay in milliseconds.
@@ -215,7 +215,7 @@ public final class Keys {
*/
public static final ConfigKey<Integer> FORWARD_RETRY_DELAY = new ConfigKey<>(
"forward.retry.delay",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Position forwarding retry maximum retries.
@@ -223,7 +223,7 @@ public final class Keys {
*/
public static final ConfigKey<Integer> FORWARD_RETRY_COUNT = new ConfigKey<>(
"forward.retry.count",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Position forwarding retry pending positions limit.
@@ -231,21 +231,21 @@ public final class Keys {
*/
public static final ConfigKey<Integer> FORWARD_RETRY_LIMIT = new ConfigKey<>(
"forward.retry.limit",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Boolean flag to enable or disable position filtering.
*/
public static final ConfigKey<Boolean> FILTER_ENABLE = new ConfigKey<>(
"filter.enable",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Filter invalid (valid field is set to false) positions.
*/
public static final ConfigKey<Boolean> FILTER_INVALID = new ConfigKey<>(
"filter.invalid",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Filter zero coordinates. Zero latitude and longitude are theoretically valid values, but it practice it usually
@@ -253,14 +253,14 @@ public final class Keys {
*/
public static final ConfigKey<Boolean> FILTER_ZERO = new ConfigKey<>(
"filter.zero",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Filter duplicate records (duplicates are detected by time value).
*/
public static final ConfigKey<Boolean> FILTER_DUPLICATE = new ConfigKey<>(
"filter.duplicate",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Filter records with fix time in future. The values is specified in seconds. Records that have fix time more than
@@ -268,28 +268,28 @@ public final class Keys {
*/
public static final ConfigKey<Long> FILTER_FUTURE = new ConfigKey<>(
"filter.future",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Filter positions with accuracy less than specified value in meters.
*/
public static final ConfigKey<Integer> FILTER_ACCURACY = new ConfigKey<>(
"filter.accuracy",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Filter cell and wifi locations that are coming from geolocation provider.
*/
public static final ConfigKey<Boolean> FILTER_APPROXIMATE = new ConfigKey<>(
"filter.approximate",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Filter positions with exactly zero speed values.
*/
public static final ConfigKey<Boolean> FILTER_STATIC = new ConfigKey<>(
"filter.static",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Filter records by distance. The values is specified in meters. If the new position is less far than this value
@@ -297,7 +297,7 @@ public final class Keys {
*/
public static final ConfigKey<Integer> FILTER_DISTANCE = new ConfigKey<>(
"filter.distance",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Filter records by Maximum Speed value in knots. Can be used to filter jumps to far locations even if they're
@@ -305,14 +305,14 @@ public final class Keys {
*/
public static final ConfigKey<Integer> FILTER_MAX_SPEED = new ConfigKey<>(
"filter.maxSpeed",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Filter position if time from previous position is less than specified value in seconds.
*/
public static final ConfigKey<Integer> FILTER_MIN_PERIOD = new ConfigKey<>(
"filter.minPeriod",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Time limit for the filtering in seconds. If the time difference between last position and a new one is more than
@@ -320,21 +320,21 @@ public final class Keys {
*/
public static final ConfigKey<Long> FILTER_SKIP_LIMIT = new ConfigKey<>(
"filter.skipLimit",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Enable attributes skipping. Attribute skipping can be enabled in the config or device attributes.
*/
public static final ConfigKey<Boolean> FILTER_SKIP_ATTRIBUTES_ENABLE = new ConfigKey<>(
"filter.skipAttributes.enable",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Override device time. Possible values are 'deviceTime' and 'serverTime'
*/
public static final ConfigKey<String> TIME_OVERRIDE = new ConfigKey<>(
"time.override",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* List of protocols for overriding time. If not specified override is applied globally. List consist of protocol
@@ -342,7 +342,7 @@ public final class Keys {
*/
public static final ConfigKey<String> TIME_PROTOCOLS = new ConfigKey<>(
"time.protocols",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Replaces coordinates with last known if change is less than a 'coordinates.minError' meters
@@ -351,14 +351,14 @@ public final class Keys {
*/
public static final ConfigKey<Boolean> COORDINATES_FILTER = new ConfigKey<>(
"coordinates.filter",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Distance in meters. Distances below this value gets handled like explained in 'coordinates.filter'.
*/
public static final ConfigKey<Integer> COORDINATES_MIN_ERROR = new ConfigKey<>(
"coordinates.minError",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Distance in meters. Distances above this value gets handled like explained in 'coordinates.filter', but only if
@@ -366,21 +366,21 @@ public final class Keys {
*/
public static final ConfigKey<Integer> COORDINATES_MAX_ERROR = new ConfigKey<>(
"coordinates.maxError",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Enable to save device IP addresses information. Disabled by default.
*/
public static final ConfigKey<Boolean> PROCESSING_REMOTE_ADDRESS_ENABLE = new ConfigKey<>(
"processing.remoteAddress.enable",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Enable engine hours calculation on the server side. It uses ignition value to determine engine state.
*/
public static final ConfigKey<Boolean> PROCESSING_ENGINE_HOURS_ENABLE = new ConfigKey<>(
"processing.engineHours.enable",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Enable copying of missing attributes from last position to the current one. Might be useful if device doesn't
@@ -388,28 +388,28 @@ public final class Keys {
*/
public static final ConfigKey<Boolean> PROCESSING_COPY_ATTRIBUTES_ENABLE = new ConfigKey<>(
"processing.copyAttributes.enable",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Enable computed attributes processing.
*/
public static final ConfigKey<Boolean> PROCESSING_COMPUTED_ATTRIBUTES_ENABLE = new ConfigKey<>(
"processing.computedAttributes.enable",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Enable computed attributes processing.
*/
public static final ConfigKey<Boolean> PROCESSING_COMPUTED_ATTRIBUTES_DEVICE_ATTRIBUTES = new ConfigKey<>(
"processing.computedAttributes.deviceAttributes",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Boolean flag to enable or disable reverse geocoder.
*/
public static final ConfigKey<Boolean> GEOCODER_ENABLE = new ConfigKey<>(
"geocoder.enable",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Reverse geocoder type. Check reverse geocoding documentation for more info. By default (if the value is not
@@ -417,63 +417,63 @@ public final class Keys {
*/
public static final ConfigKey<String> GEOCODER_TYPE = new ConfigKey<>(
"geocoder.type",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Geocoder server URL. Applicable only to Nominatim and Gisgraphy providers.
*/
public static final ConfigKey<String> GEOCODER_URL = new ConfigKey<>(
"geocoder.url",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* App id for use with Here provider.
*/
public static final ConfigKey<String> GEOCODER_ID = new ConfigKey<>(
"geocoder.id",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Provider API key. Most providers require API keys.
*/
public static final ConfigKey<String> GEOCODER_KEY = new ConfigKey<>(
"geocoder.key",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Language parameter for providers that support localization (e.g. Google and Nominatim).
*/
public static final ConfigKey<String> GEOCODER_LANGUAGE = new ConfigKey<>(
"geocoder.language",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Address format string. Default value is %h %r, %t, %s, %c. See AddressFormat for more info.
*/
public static final ConfigKey<String> GEOCODER_FORMAT = new ConfigKey<>(
"geocoder.format",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Cache size for geocoding results.
*/
public static final ConfigKey<Integer> GEOCODER_CACHE_SIZE = new ConfigKey<>(
"geocoder.cacheSize",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Disable automatic reverse geocoding requests for all positions.
*/
public static final ConfigKey<Boolean> GEOCODER_IGNORE_POSITIONS = new ConfigKey<>(
"geocoder.ignorePositions",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Boolean flag to apply reverse geocoding to invalid positions.
*/
public static final ConfigKey<Boolean> GEOCODER_PROCESS_INVALID_POSITIONS = new ConfigKey<>(
"geocoder.processInvalidPositions",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Optional parameter to specify minimum distance for new reverse geocoding request. If distance is less than
@@ -481,7 +481,7 @@ public final class Keys {
*/
public static final ConfigKey<Integer> GEOCODER_REUSE_DISTANCE = new ConfigKey<>(
"geocoder.reuseDistance",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Boolean flag to enable LBS location resolution. Some devices send cell towers information and WiFi point when GPS
@@ -490,7 +490,7 @@ public final class Keys {
*/
public static final ConfigKey<Boolean> GEOLOCATION_ENABLE = new ConfigKey<>(
"geolocation.enable",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Provider to use for LBS location. Available options: google, mozilla and opencellid. By default opencellid is
@@ -499,49 +499,49 @@ public final class Keys {
*/
public static final ConfigKey<String> GEOLOCATION_TYPE = new ConfigKey<>(
"geolocation.type",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Geolocation provider API URL address. Not required for most providers.
*/
public static final ConfigKey<String> GEOLOCATION_URL = new ConfigKey<>(
"geolocation.url",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Provider API key. OpenCellID service requires API key.
*/
public static final ConfigKey<String> GEOLOCATION_KEY = new ConfigKey<>(
"geolocation.key",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Boolean flag to apply geolocation to invalid positions.
*/
public static final ConfigKey<Boolean> GEOLOCATION_PROCESS_INVALID_POSITIONS = new ConfigKey<>(
"geolocation.processInvalidPositions",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Boolean flag to enable speed limit API to get speed limit values depending on location. Default value is false.
*/
public static final ConfigKey<Boolean> SPEED_LIMIT_ENABLE = new ConfigKey<>(
"speedLimit.enable",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Provider to use for speed limit. Available options: overpass. By default overpass is used.
*/
public static final ConfigKey<String> SPEED_LIMIT_TYPE = new ConfigKey<>(
"speedLimit.type",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Speed limit provider API URL address.
*/
public static final ConfigKey<String> SPEED_LIMIT_URL = new ConfigKey<>(
"speedLimit.url",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Override latitude sign / hemisphere. Useful in cases where value is incorrect because of device bug. Value can be
@@ -549,7 +549,7 @@ public final class Keys {
*/
public static final ConfigKey<Boolean> LOCATION_LATITUDE_HEMISPHERE = new ConfigKey<>(
"location.latitudeHemisphere",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Override longitude sign / hemisphere. Useful in cases where value is incorrect because of device bug. Value can
@@ -557,14 +557,14 @@ public final class Keys {
*/
public static final ConfigKey<Boolean> LOCATION_LONGITUDE_HEMISPHERE = new ConfigKey<>(
"location.longitudeHemisphere",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Enable Jetty Request Log.
*/
public static final ConfigKey<Boolean> WEB_REQUEST_LOG_ENABLE = new ConfigKey<>(
"web.requestLog.enable",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Jetty Request Log Path.
@@ -574,21 +574,21 @@ public final class Keys {
*/
public static final ConfigKey<String> WEB_REQUEST_LOG_PATH = new ConfigKey<>(
"web.requestLog.path",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Set the number of days before rotated request log files are deleted.
*/
public static final ConfigKey<Integer> WEB_REQUEST_LOG_RETAIN_DAYS = new ConfigKey<>(
"web.requestLog.retainDays",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Disable systemd health checks.
*/
public static final ConfigKey<Boolean> WEB_DISABLE_HEALTH_CHECK = new ConfigKey<>(
"web.disableHealthCheck",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
/**
* Sets SameSite cookie attribute value.
@@ -596,7 +596,7 @@ public final class Keys {
*/
public static final ConfigKey<String> WEB_SAME_SITE_COOKIE = new ConfigKey<>(
"web.sameSiteCookie",
- Collections.singletonList(KeyType.FILE));
+ Collections.singletonList(KeyType.GLOBAL));
private Keys() {
}