DBManager.BaseConsumerbackupFolder, backupIntervalMS, connection, dbFileBaseFolder, dbFileName, dbName, password, poolManager, queriesFile, username| Constructor and Description |
|---|
MonitoringDBManager()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
associateUserAndDomain(String userMail,
String domain,
String scope)
Associate a user to a domain
|
void |
cleanMonitoringConf(String scope)
clean the given table
|
protected void |
connectToMySql() |
ResultSet |
getDomains() |
void |
insertDomain(String domain,
String siteName)
Insert a domain on the DB
|
void |
InsertGHNMessage(org.gcube.messaging.common.messages.GHNMessage<?> message)
Insert a GHNMessage on the DB
|
void |
insertNotification(Notification not)
insert a Notification on the DB
|
void |
InsertRIMessage(org.gcube.messaging.common.messages.RIMessage<?> message)
Insert a RIMessage
|
void |
insertUser(MailRecipientHelper.MonitorUser user)
Insert a user on the DB
|
void |
open()
Load the HSQL Database Engine JDBC driver and open the connection to the db.
|
void |
run() |
backup, close, connectToEmbeddedDB, createDB, query, queryAndConsume, queryJSON, quote, reconnectToDB, toJSon, update, zipFolderprotected void connectToMySql()
throws Exception
connectToMySql in class DBManagerExceptionpublic void open()
throws ClassNotFoundException,
SQLException,
Exception
open 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 insertUser(MailRecipientHelper.MonitorUser user)
user - the user to addpublic ResultSet getDomains()
public void insertDomain(String domain, String siteName)
domain - the domain to addpublic void associateUserAndDomain(String userMail, String domain, String scope)
userMail - the userMail to adddomain - the domain to addpublic void cleanMonitoringConf(String scope)
tableName - public void InsertGHNMessage(org.gcube.messaging.common.messages.GHNMessage<?> message)
message - the Messagepublic void InsertRIMessage(org.gcube.messaging.common.messages.RIMessage<?> message)
message - messagepublic void insertNotification(Notification not)
notification - the notificationCopyright © 2015. All Rights Reserved.