|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGCUBEServiceContext
org.gcube.messaging.common.consumer.ServiceContext
public class ServiceContext
The service context
Method Summary | |
---|---|
boolean |
connectToUsermanagementDB()
check if the consumer is configured to connect to usermanagement ws |
AccountingDBManager |
getAccountingManager()
get the accountingManager manager |
AccountingSystemDBManager |
getAccountingSystemManager()
get the Accounting System Manager |
static ServiceContext |
getContext()
Returns the single context instance. |
java.lang.String |
getDbhost()
|
java.lang.String |
getDbpass()
get the DB pass value |
java.lang.Long |
getDbport()
|
java.lang.String |
getDbuser()
Set the value of the property DB user |
int |
getHttpServerPort()
ger web server port |
java.lang.String |
getJNDIName()
|
MailClient |
getMailClient()
get the mail client |
MailTemplateParser |
getMailTemplateParser()
The mail template parser |
java.lang.Long |
getMaxDBConnections()
|
java.util.HashMap<GCUBEScope,java.util.HashMap<java.lang.Class<? extends GCUBEMessage>,MessageChecker<?>>> |
getMessageCheckerMap()
get the Message checker map |
MonitoringDBManager |
getMonitoringManager()
get the MonitoringDB manager |
Notifier |
getNotifier()
get the notifier |
java.lang.Boolean |
getNotifyByMail()
get the notify by mail parameter value |
WebServer |
getServer()
get the Web server |
static java.util.ArrayList<BrokerSubscription<?>> |
getSubscriptionsList()
get the list of subscriptions |
java.lang.Boolean |
getUseEmbeddedBroker()
get the embedded broker parameter |
java.lang.Boolean |
getUseEmbeddedDB()
get the value of property UseEmbeddedDB |
void |
setAccountingManager(AccountingDBManager manager)
set the accountingManager manager |
void |
setAccountingSystemManager(AccountingSystemDBManager accountingSystemManager)
Set the Accounting System Manager |
void |
setDbhost(java.lang.String dbhost)
|
void |
setDbpass(java.lang.String dbpass)
Set the DB pass value |
void |
setDbport(java.lang.Long dbport)
|
void |
setDbuser(java.lang.String dbuser)
set the DBuser value |
void |
setHttpServerPort(int httpServerPort)
set teh web server port |
void |
setMailClient(MailClient mailClient)
set the mail client |
void |
setMailTemplateParser(MailTemplateParser mailTemplateParser)
set the mail template parser |
void |
setMaxDBConnections(java.lang.Long maxDBConnections)
|
void |
setMessageCheckerMap(java.util.HashMap<GCUBEScope,java.util.HashMap<java.lang.Class<? extends GCUBEMessage>,MessageChecker<?>>> messageCheckerMap)
set the message checker map |
void |
setMonitoringManager(MonitoringDBManager manager)
set the MonitoringDB manager |
void |
setNotifier(Notifier notifier)
set the notifier |
void |
setNotifyByMail(java.lang.Boolean notifyByMail)
set the notify by mail parameter value |
void |
setServer(WebServer server)
ser the Web Server |
static void |
setSubscriptionsList(java.util.ArrayList<BrokerSubscription<?>> subscriptionsList)
set the array of broker subscriptions |
void |
setUseEmbeddedBroker(java.lang.Boolean useEmbeddedBroker)
set the use embedded broker |
void |
setUseEmbeddedDB(java.lang.Boolean useEmbeddedDB)
set the value of property UseEmbeddedDB |
void |
stopDurableSubscriber()
Close Subscription to broker |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ServiceContext getContext()
public Notifier getNotifier()
public void setNotifier(Notifier notifier)
notifier
- the notifierpublic MonitoringDBManager getMonitoringManager()
public void setMonitoringManager(MonitoringDBManager manager)
manager
- the DB managerpublic AccountingDBManager getAccountingManager()
public void setAccountingManager(AccountingDBManager manager)
manager
- the accountingManager managerpublic AccountingSystemDBManager getAccountingSystemManager()
public void setAccountingSystemManager(AccountingSystemDBManager accountingSystemManager)
accountingSystemManager
- managerpublic java.lang.Boolean getNotifyByMail()
public void setNotifyByMail(java.lang.Boolean notifyByMail)
notifyByMail
- get the notify by mail parameter valuepublic java.lang.String getJNDIName()
public java.util.HashMap<GCUBEScope,java.util.HashMap<java.lang.Class<? extends GCUBEMessage>,MessageChecker<?>>> getMessageCheckerMap()
public void setMessageCheckerMap(java.util.HashMap<GCUBEScope,java.util.HashMap<java.lang.Class<? extends GCUBEMessage>,MessageChecker<?>>> messageCheckerMap)
messageCheckerMap
- public MailClient getMailClient()
public void setMailClient(MailClient mailClient)
mailClient
- the mail clientpublic java.lang.Boolean getUseEmbeddedBroker()
public void setUseEmbeddedBroker(java.lang.Boolean useEmbeddedBroker)
useEmbeddedBroker
- use embedded brokerpublic WebServer getServer()
public void setServer(WebServer server)
server
- the wewb serverpublic int getHttpServerPort()
public void setHttpServerPort(int httpServerPort)
httpServerPort
- the web server portpublic void stopDurableSubscriber()
JMSException
public static java.util.ArrayList<BrokerSubscription<?>> getSubscriptionsList()
public static void setSubscriptionsList(java.util.ArrayList<BrokerSubscription<?>> subscriptionsList)
subscriptionsList
- the subscription listpublic java.lang.Boolean getUseEmbeddedDB()
public void setUseEmbeddedDB(java.lang.Boolean useEmbeddedDB)
useEmbeddedDB
- the value to setpublic java.lang.String getDbuser()
public void setDbuser(java.lang.String dbuser)
dbuser
- DB userpublic java.lang.String getDbpass()
public void setDbpass(java.lang.String dbpass)
dbpass
- the DB passpublic MailTemplateParser getMailTemplateParser()
public void setMailTemplateParser(MailTemplateParser mailTemplateParser)
mailTemplateParser
- the mail template parserpublic boolean connectToUsermanagementDB()
public java.lang.String getDbhost()
public void setDbhost(java.lang.String dbhost)
public java.lang.Long getDbport()
public void setDbport(java.lang.Long dbport)
public java.lang.Long getMaxDBConnections()
public void setMaxDBConnections(java.lang.Long maxDBConnections)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |