diff options
author | Anton Tananaev <atananaev@lyft.com> | 2020-12-29 11:22:01 -0800 |
---|---|---|
committer | Anton Tananaev <atananaev@lyft.com> | 2020-12-29 11:22:01 -0800 |
commit | c0dee04079cb2edb855e6eeeab9cb6f1b43fa465 (patch) | |
tree | 4692f986852f2b7a557c47a332f40e5ce82d2058 /src/main/java/org/traccar/config | |
parent | 47468774b6b87c67d8ba98e52bfece04d6d48d1a (diff) | |
download | trackermap-server-c0dee04079cb2edb855e6eeeab9cb6f1b43fa465.tar.gz trackermap-server-c0dee04079cb2edb855e6eeeab9cb6f1b43fa465.tar.bz2 trackermap-server-c0dee04079cb2edb855e6eeeab9cb6f1b43fa465.zip |
Migrate keys and remove database cleanup
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r-- | src/main/java/org/traccar/config/Keys.java | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java index 4531c7541..f1efa7515 100644 --- a/src/main/java/org/traccar/config/Keys.java +++ b/src/main/java/org/traccar/config/Keys.java @@ -162,12 +162,27 @@ public final class Keys { Collections.singletonList(KeyType.GLOBAL)); /** + * Automatically generate SQL database queries when possible. + */ + public static final ConfigKey<Boolean> DATABASE_GENERATE_QUERIES = new ConfigKey<>( + "database.generateQueries", + Collections.singletonList(KeyType.GLOBAL)); + + /** + * Database connection pool size. Default value is defined by the HikariCP library. + */ + public static final ConfigKey<Integer> DATABASE_MAX_POOL_SIZE = new ConfigKey<>( + "database.maxPoolSize", + Collections.singletonList(KeyType.GLOBAL)); + + /** * SQL query to check connection status. Default value is 'SELECT 1'. For Oracle database you can use * 'SELECT 1 FROM DUAL'. */ public static final ConfigKey<String> DATABASE_CHECK_CONNECTION = new ConfigKey<>( "database.checkConnection", - Collections.singletonList(KeyType.GLOBAL)); + Collections.singletonList(KeyType.GLOBAL), + "SELECT 1"); /** * Store original HEX or string data as "raw" attribute in the corresponding position. @@ -321,6 +336,13 @@ public final class Keys { 60000L); /** + * Authentication sessions timeout in seconds. By default no timeout. + */ + public static final ConfigKey<Integer> WEB_SESSION_TIMEOUT = new ConfigKey<>( + "web.sessionTimeout", + Collections.singletonList(KeyType.GLOBAL)); + + /** * Enable positions forwarding to other web server. */ public static final ConfigKey<Boolean> FORWARD_ENABLE = new ConfigKey<>( |