org.gcube.messaging.common.consumer.db
Class AccountingSystemDBManager

java.lang.Object
  extended by org.gcube.messaging.common.consumer.db.DBManager
      extended by 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)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.gcube.messaging.common.consumer.db.DBManager
DBManager.BaseConsumer
 
Constructor Summary
AccountingSystemDBManager()
          Default constructor
 
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 org.gcube.messaging.common.consumer.db.DBManager
backup, close, query, queryAndConsume, queryDBRS, queryJSON, toJSon, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountingSystemDBManager

public AccountingSystemDBManager()
Default constructor

Method Detail

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 -