org.gcube.messaging.common.consumer.db
Class AccountingSystemDBManager
java.lang.Object
org.gcube.messaging.common.consumer.db.DBManager
org.gcube.messaging.common.consumer.db.AccountingSystemDBManager
- All Implemented Interfaces:
- java.lang.Runnable
public class AccountingSystemDBManager
- extends DBManager
- implements java.lang.Runnable
- Author:
- Andrea Manzi (CERN)
Method Summary |
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccountingSystemDBManager
public AccountingSystemDBManager()
- Default constructor
open
public void open()
throws java.lang.ClassNotFoundException,
java.sql.SQLException,
java.lang.Exception
- Description copied from class:
DBManager
- Load the HSQL Database Engine JDBC driver and open the connection to the db.
- Specified by:
open
in class DBManager
- Throws:
java.lang.ClassNotFoundException
- if the HSQL Database Engine JDBC driver is not loaded
java.sql.SQLException
- if the connection to the db fails
java.lang.Exception
- if the tables creation fails
run
public void run()
- (non-Javadoc)
- Specified by:
run
in interface java.lang.Runnable
- See Also:
Runnable.run()
storeSystemAccoutingInfo
public void storeSystemAccoutingInfo(org.gcube.messaging.common.messages.SystemAccountingMessage message)
- Store a system accounting message
- Parameters:
message
-