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, zipFolder
protected static final String DATE_FORMAT
protected static SimpleDateFormat format
protected void connectToMySql() throws Exception
connectToMySql
in class DBManager
Exception
public void open() throws ClassNotFoundException, SQLException, Exception
DBManager
open
in class DBManager
ClassNotFoundException
- 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 Runnable
Runnable.run()
public void storeSystemAccoutingInfo(org.gcube.messaging.common.messages.SystemAccountingMessage message)
message
- Copyright © 2015. All Rights Reserved.