|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.messaging.common.consumer.db.DBManager
org.gcube.messaging.common.consumer.db.MonitoringDBManager
public class MonitoringDBManager
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.gcube.messaging.common.consumer.db.DBManager |
|---|
DBManager.BaseConsumer |
| Constructor Summary | |
|---|---|
MonitoringDBManager()
Constructor |
|
| Method Summary | |
|---|---|
void |
associateUserAndDomain(java.lang.String userMail,
java.lang.String domain,
java.lang.String scope)
Associate a user to a domain |
void |
cleanMonitoringConf(java.lang.String scope)
clean the given table |
java.sql.ResultSet |
getDomains()
|
void |
insertDomain(java.lang.String domain,
java.lang.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()
|
| 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 |
|---|
public MonitoringDBManager()
| Method Detail |
|---|
public void open()
throws java.lang.ClassNotFoundException,
java.sql.SQLException,
java.lang.Exception
open in class DBManagerjava.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 failspublic void insertUser(MailRecipientHelper.MonitorUser user)
user - the user to addpublic java.sql.ResultSet getDomains()
public void insertDomain(java.lang.String domain,
java.lang.String siteName)
domain - the domain to add
public void associateUserAndDomain(java.lang.String userMail,
java.lang.String domain,
java.lang.String scope)
userMail - the userMail to adddomain - the domain to addpublic void cleanMonitoringConf(java.lang.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 notificationpublic void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||