aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/DataManager.java
diff options
context:
space:
mode:
authordrecchia <danilo@deltatecnologia.com>2016-05-31 08:54:29 -0300
committerdrecchia <danilo@deltatecnologia.com>2016-05-31 08:54:29 -0300
commit8ef478a317e9d3b58454699c053e5f9a1d53adf9 (patch)
tree1dbae6227c321048c56e203cef18104eb86634df /src/org/traccar/database/DataManager.java
parente91153481a220235130a277d20f724b97fcfd325 (diff)
downloadtrackermap-server-8ef478a317e9d3b58454699c053e5f9a1d53adf9.tar.gz
trackermap-server-8ef478a317e9d3b58454699c053e5f9a1d53adf9.tar.bz2
trackermap-server-8ef478a317e9d3b58454699c053e5f9a1d53adf9.zip
- Fixed style issues.
Diffstat (limited to 'src/org/traccar/database/DataManager.java')
-rw-r--r--src/org/traccar/database/DataManager.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java
index 898669c21..cf2b03d56 100644
--- a/src/org/traccar/database/DataManager.java
+++ b/src/org/traccar/database/DataManager.java
@@ -111,21 +111,21 @@ public class DataManager implements IdentityManager {
}
HikariConfig hConfig = new HikariConfig();
- hConfig.setDriverClassName( config.getString("database.driver") );
- hConfig.setJdbcUrl( config.getString("database.url") );
- hConfig.setUsername( config.getString("database.user") );
- hConfig.setPassword( config.getString("database.password") );
- hConfig.setConnectionInitSql( "SELECT 1 FROM DUAL" );
- hConfig.setIdleTimeout( 600000 ); // milliseconds
+ hConfig.setDriverClassName(config.getString("database.driver"));
+ hConfig.setJdbcUrl(config.getString("database.url"));
+ hConfig.setUsername(config.getString("database.user"));
+ hConfig.setPassword(config.getString("database.password"));
+ hConfig.setConnectionInitSql("SELECT 1 FROM DUAL");
+ hConfig.setIdleTimeout(600000); // milliseconds
// ds.setIdleConnectionTestPeriod(600);
// ds.setMaxStatementsPerConnection(config.getInteger("database.maxStatements"));
-
+
int maxPoolSize = config.getInteger("database.maxPoolSize");
-
+
if (maxPoolSize != 0) {
- hConfig.setMaximumPoolSize( maxPoolSize );
+ hConfig.setMaximumPoolSize(maxPoolSize);
}
-
+
dataSource = new HikariDataSource(hConfig);
}