Package org.wso2.carbon.andes.internal
Class QpidServiceDataHolder
java.lang.Object
org.wso2.carbon.andes.internal.QpidServiceDataHolder
This is a singleton class that holds data that is shared within this component.
-
Method Summary
Modifier and TypeMethodDescriptionGet stored access key that was received when the bundle started upGet list of external andes server shutdown listenersorg.wso2.carbon.base.api.ServerConfigurationServiceGet Carbon ServerConfiguration instanceorg.wso2.carbon.andes.event.core.EventBundleNotificationServicestatic QpidServiceDataHolderorg.wso2.carbon.server.admin.common.IServerAdminGet IServerAdmin that was stored when the bundle started upvoidregisterEventBundleNotificationService(org.wso2.carbon.andes.event.core.EventBundleNotificationService eventBundleNotificationService) voidsetAccessKey(String accessKey) Store access key received from the authentication service when the bundle activatesvoidsetBrokerLifecycleListeners(List<BrokerLifecycleListener> brokerLifecycleListeners) Set the list of external andes server shutdown listenersvoidsetCarbonConfiguration(org.wso2.carbon.base.api.ServerConfigurationService carbonConfiguration) Set Carbon ServerConfiguration instancevoidsetService(org.wso2.carbon.server.admin.common.IServerAdmin service) Store IServerAdmin; that was received when the bundle started up
-
Method Details
-
getService
public org.wso2.carbon.server.admin.common.IServerAdmin getService()Get IServerAdmin that was stored when the bundle started up- Returns:
-
setService
public void setService(org.wso2.carbon.server.admin.common.IServerAdmin service) Store IServerAdmin; that was received when the bundle started up- Parameters:
service-
-
getInstance
-
setAccessKey
Store access key received from the authentication service when the bundle activates- Parameters:
accessKey-
-
getAccessKey
Get stored access key that was received when the bundle started up- Returns:
-
setCarbonConfiguration
public void setCarbonConfiguration(org.wso2.carbon.base.api.ServerConfigurationService carbonConfiguration) Set Carbon ServerConfiguration instance- Parameters:
carbonConfiguration-
-
getCarbonConfiguration
public org.wso2.carbon.base.api.ServerConfigurationService getCarbonConfiguration()Get Carbon ServerConfiguration instance- Returns:
-
registerEventBundleNotificationService
public void registerEventBundleNotificationService(org.wso2.carbon.andes.event.core.EventBundleNotificationService eventBundleNotificationService) -
getEventBundleNotificationService
public org.wso2.carbon.andes.event.core.EventBundleNotificationService getEventBundleNotificationService() -
getBrokerLifecycleListeners
Get list of external andes server shutdown listeners- Returns:
- List of broker shutdown listeners
-
setBrokerLifecycleListeners
Set the list of external andes server shutdown listeners- Parameters:
brokerLifecycleListeners-
-