DBManager.BaseConsumer| Modifier and Type | Field and Description |
|---|---|
protected static String |
DATE_FORMAT |
protected static SimpleDateFormat |
format |
backupFolder, backupIntervalMS, connection, dbFileBaseFolder, dbFileName, dbName, password, poolManager, queriesFile, username| Constructor and Description |
|---|
AccountingSystemDBManager()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
connectToMySql() |
void |
open()
Load the HSQL Database Engine JDBC driver and open the connection to the db.
|
void |
run()
(non-Javadoc)
|
void |
storeSystemAccoutingInfo(org.gcube.messaging.common.messages.SystemAccountingMessage message)
Store a system accounting message
|
backup, close, connectToEmbeddedDB, createDB, query, queryAndConsume, queryJSON, quote, reconnectToDB, toJSon, update, zipFolderprotected static final String DATE_FORMAT
protected static SimpleDateFormat format
protected void connectToMySql()
throws Exception
connectToMySql in class DBManagerExceptionpublic void open()
throws ClassNotFoundException,
SQLException,
Exception
DBManageropen in class DBManagerClassNotFoundException - if the HSQL Database Engine JDBC driver is not loadedSQLException - if the connection to the db failsException - if the tables creation failspublic void run()
run in interface RunnableRunnable.run()public void storeSystemAccoutingInfo(org.gcube.messaging.common.messages.SystemAccountingMessage message)
message - Copyright © 2015. All Rights Reserved.