|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.core.contexts.GCUBEContext
org.gcube.common.core.contexts.GCUBEServiceContext
org.gcube.messaging.common.consumer.ServiceContext
public class ServiceContext
The service context
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.gcube.common.core.contexts.GCUBEServiceContext |
|---|
org.gcube.common.core.contexts.GCUBEServiceContext.IllegalStateTransitionException, org.gcube.common.core.contexts.GCUBEServiceContext.RILifetimeEvent, org.gcube.common.core.contexts.GCUBEServiceContext.RILifetimeTopic, org.gcube.common.core.contexts.GCUBEServiceContext.ServiceSecurityStatus, org.gcube.common.core.contexts.GCUBEServiceContext.Stager, org.gcube.common.core.contexts.GCUBEServiceContext.StateTransitionException, org.gcube.common.core.contexts.GCUBEServiceContext.Status |
| Nested classes/interfaces inherited from interface org.gcube.common.core.security.GCUBEServiceSecurityManager |
|---|
org.gcube.common.core.security.GCUBEServiceSecurityManager.LifetimeConsumer, org.gcube.common.core.security.GCUBEServiceSecurityManager.LifetimeEvent, org.gcube.common.core.security.GCUBEServiceSecurityManager.LifetimeTopic |
| Nested classes/interfaces inherited from interface org.gcube.common.core.security.GCUBESecurityManager |
|---|
org.gcube.common.core.security.GCUBESecurityManager.AuthMethod, org.gcube.common.core.security.GCUBESecurityManager.AuthMode, org.gcube.common.core.security.GCUBESecurityManager.DelegationMode |
| Nested classes/interfaces inherited from interface org.gcube.common.core.scope.GCUBEScopeManager |
|---|
org.gcube.common.core.scope.GCUBEScopeManager.IllegalScopeException |
| Field Summary | |
|---|---|
protected static ServiceContext |
cache
|
| Fields inherited from class org.gcube.common.core.contexts.GCUBEServiceContext |
|---|
AUTHENTICATION_MANAGER_JNDI_NAME, AUTHORISATION_MANAGER_JNDI_NAME, CONFIG_DIR_JNDI_NAME, LISTENER_UPDATE_INTERVAL, LTEventProducer, PERSISTENCE_MANAGER_JNDI_NAME, PLUGIN_MANAGER_JNDI_NAME, PROFILE_FILE_NAME, PROPAGATE_CALLER_CREDENTIALS_JNDI_NAME, PUBLISHED_HOST_JNDI_NAME, PUBLISHED_PORT_JNDI_NAME, RIPROFILE_FILENAME, SECURITY_MANAGER_JNDI_NAME, START_SCOPES_JNDI_NAME |
| Fields inherited from class org.gcube.common.core.contexts.GCUBEContext |
|---|
timers |
| Fields inherited from interface org.gcube.common.core.scope.GCUBEScopeManager |
|---|
CLASS_HEADER_NAME, DEFAULT, NAME_HEADER_NAME, SCOPE_HEADER_NAME, SCOPE_NS |
| 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. |
String |
getDbhost()
|
String |
getDbpass()
get the DB pass value |
Long |
getDbport()
|
String |
getDbuser()
Set the value of the property DB user |
Long |
getEdnpointWaitingTime()
|
Long |
getEndpointRefreshTime()
|
int |
getHttpServerPort()
ger web server port |
String |
getJNDIName()
|
MailClient |
getMailClient()
get the mail client |
MailTemplateParser |
getMailTemplateParser()
The mail template parser |
Long |
getMaxDBConnections()
|
HashMap<org.gcube.common.core.scope.GCUBEScope,HashMap<Class<? extends org.gcube.common.core.monitoring.GCUBEMessage>,MessageChecker<?>>> |
getMessageCheckerMap()
get the Message checker map |
MonitoringDBManager |
getMonitoringManager()
get the MonitoringDB manager |
Notifier |
getNotifier()
get the notifier |
Boolean |
getNotifyByMail()
get the notify by mail parameter value |
WebServer |
getServer()
get the Web server |
static ArrayList<BrokerSubscription<?>> |
getSubscriptionsList()
get the list of subscriptions |
Boolean |
getUseEmbeddedBroker()
get the embedded broker parameter |
Boolean |
getUseEmbeddedDB()
get the value of property UseEmbeddedDB |
protected void |
onInitialisation()
|
protected void |
onReady()
|
protected void |
onShutdown()
|
void |
setAccountingManager(AccountingDBManager manager)
set the accountingManager manager |
void |
setAccountingSystemManager(AccountingSystemDBManager accountingSystemManager)
Set the Accounting System Manager |
void |
setDbhost(String dbhost)
|
void |
setDbpass(String dbpass)
Set the DB pass value |
void |
setDbport(Long dbport)
|
void |
setDbuser(String dbuser)
set the DBuser value |
void |
setEdnpointWaitingTime(Long ednpointWaitingTime)
|
void |
setEndpointRefreshTime(Long endpointRefreshTime)
|
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(Long maxDBConnections)
|
void |
setMessageCheckerMap(HashMap<org.gcube.common.core.scope.GCUBEScope,HashMap<Class<? extends org.gcube.common.core.monitoring.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(Boolean notifyByMail)
set the notify by mail parameter value |
void |
setServer(WebServer server)
ser the Web Server |
static void |
setSubscriptionsList(ArrayList<BrokerSubscription<?>> subscriptionsList)
set the array of broker subscriptions |
void |
setUseEmbeddedBroker(Boolean useEmbeddedBroker)
set the use embedded broker |
void |
setUseEmbeddedDB(Boolean useEmbeddedDB)
set the value of property UseEmbeddedDB |
void |
stopDurableSubscriber()
Close Subscription to broker |
| Methods inherited from class org.gcube.common.core.contexts.GCUBEServiceContext |
|---|
addScope, getAuthenticationManager, getAuthorizationManager, getCallerCredentials, getCredentials, getDefaultException, getDefaultException, getFile, getID, getInstance, getLogger, getManagementBean, getName, getPersistenceRoot, getPersistentFile, getPluginManager, getPolicy, getProperty, getScope, getScopeManager, getSecurityManager, getService, getServiceClass, getServiceCredentials, getServiceSecurityStatus, getStartScopes, getStatus, initialise, isSecurityEnabled, needServiceCredentials, notifyStateChange, onFailure, onStateChange, onUpdate, prepareCall, propagateCallerCredentials, removeScope, setAuthMethod, setScope, setScope, setScope, setSecurity, setStatus, subscribe, subscribeLifetTime, unsubscribe, unsubscribeLifetTime, useCallerCredentials, useCredentials, useCredentials, useCredentials, useServiceCredentials |
| Methods inherited from class org.gcube.common.core.contexts.GCUBEContext |
|---|
debugContext, getJNDIContext, getResource, getTiming, printContext, resetTimer, setJNDIContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static ServiceContext cache
| 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 Long getEdnpointWaitingTime()
public void setEdnpointWaitingTime(Long ednpointWaitingTime)
public Long getEndpointRefreshTime()
public void setEndpointRefreshTime(Long endpointRefreshTime)
public Boolean getNotifyByMail()
public void setNotifyByMail(Boolean notifyByMail)
notifyByMail - get the notify by mail parameter valuepublic String getJNDIName()
getJNDIName in class org.gcube.common.core.contexts.GCUBEServiceContextpublic HashMap<org.gcube.common.core.scope.GCUBEScope,HashMap<Class<? extends org.gcube.common.core.monitoring.GCUBEMessage>,MessageChecker<?>>> getMessageCheckerMap()
public void setMessageCheckerMap(HashMap<org.gcube.common.core.scope.GCUBEScope,HashMap<Class<? extends org.gcube.common.core.monitoring.GCUBEMessage>,MessageChecker<?>>> messageCheckerMap)
messageCheckerMap -
protected void onInitialisation()
throws Exception
onInitialisation in class org.gcube.common.core.contexts.GCUBEServiceContextException
protected void onReady()
throws Exception
onReady in class org.gcube.common.core.contexts.GCUBEServiceContextException
protected void onShutdown()
throws Exception
onShutdown in class org.gcube.common.core.contexts.GCUBEServiceContextExceptionpublic MailClient getMailClient()
public void setMailClient(MailClient mailClient)
mailClient - the mail clientpublic Boolean getUseEmbeddedBroker()
public void setUseEmbeddedBroker(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()
javax.jms.JMSExceptionpublic static ArrayList<BrokerSubscription<?>> getSubscriptionsList()
public static void setSubscriptionsList(ArrayList<BrokerSubscription<?>> subscriptionsList)
subscriptionsList - the subscription listpublic Boolean getUseEmbeddedDB()
public void setUseEmbeddedDB(Boolean useEmbeddedDB)
useEmbeddedDB - the value to setpublic String getDbuser()
public void setDbuser(String dbuser)
dbuser - DB userpublic String getDbpass()
public void setDbpass(String dbpass)
dbpass - the DB passpublic MailTemplateParser getMailTemplateParser()
public void setMailTemplateParser(MailTemplateParser mailTemplateParser)
mailTemplateParser - the mail template parserpublic boolean connectToUsermanagementDB()
public String getDbhost()
public void setDbhost(String dbhost)
public Long getDbport()
public void setDbport(Long dbport)
public Long getMaxDBConnections()
public void setMaxDBConnections(Long maxDBConnections)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||