2 * Copyright (c) 2014, 2015 Hewlett-Packard Development Company, L.P. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.aaa.h2.config;
13 * @author peter.mellquist@hp.com
17 import org.slf4j.Logger;
18 import org.slf4j.LoggerFactory;
20 public class IdmLightConfig {
21 private static Logger logger = LoggerFactory.getLogger(IdmLightConfig.class);
23 private String dbName;
24 private String dbPath;
25 private String dbDriver;
26 private String dbUser;
28 private int dbValidTimeOut;
30 public IdmLightConfig() {
31 dbName = "idmlight.db";
32 // TODO make configurable
33 dbPath = "jdbc:h2:./" + dbName;
34 dbDriver = "org.h2.Driver";
41 logger.info("DB Path : " + dbPath);
42 logger.info("DB Driver : " + dbDriver);
43 logger.info("DB Valid Time Out : " + dbValidTimeOut);
46 public String getDbName() {
50 public String getDbPath() {
54 public String getDbDriver() {
58 public String getDbUser() {
62 public String getDbPwd() {
66 public int getDbValidTimeOut() {
67 return this.dbValidTimeOut;