org.wso2.carbon.usage.agent.util
Class Util
java.lang.Object
org.wso2.carbon.usage.agent.util.Util
public class Util
- extends Object
this class provide utility methods to set and get RealmService, initializing listeners,
initializing PersistenceManager etc
Further it provide methods to create statistics event subscription
|
Constructor Summary |
Util()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util
public Util()
setRealmService
public static void setRealmService(org.wso2.carbon.user.core.service.RealmService service)
getRealmService
public static org.wso2.carbon.user.core.service.RealmService getRealmService()
initializeAllListeners
public static void initializeAllListeners()
throws Exception
- Throws:
Exception
setConfigurationContextService
public static void setConfigurationContextService(org.wso2.carbon.utils.ConfigurationContextService contextService)
getConfigurationContextService
public static org.wso2.carbon.utils.ConfigurationContextService getConfigurationContextService()
initializePersistenceManager
public static void initializePersistenceManager()
- this method create a PersistenceManager instance and start a thread for persisting statistics
addToPersistingControllerQueue
public static void addToPersistingControllerQueue(BandwidthUsage usage)
getEventBrokerService
public static org.wso2.carbon.event.core.EventBroker getEventBrokerService()
setEventBrokerService
public static void setEventBrokerService(org.wso2.carbon.event.core.EventBroker eventBrokerService)
getServerConfiguration
public static org.wso2.carbon.base.api.ServerConfigurationService getServerConfiguration()
setServerConfiguration
public static void setServerConfiguration(org.wso2.carbon.base.api.ServerConfigurationService serverConfiguration)
getSystemStatisticsUtil
public static org.wso2.carbon.statistics.services.SystemStatisticsUtil getSystemStatisticsUtil()
setSystemStatisticsUtil
public static void setSystemStatisticsUtil(org.wso2.carbon.statistics.services.SystemStatisticsUtil systemStatisticsUtil)
createStaticEventSubscription
public static void createStaticEventSubscription()
throws org.wso2.carbon.event.core.exception.EventBrokerException
- method to create static subscription to BAM
- Throws:
EventBrokerException, - if creating the static subscription to BAM failed.
org.wso2.carbon.event.core.exception.EventBrokerException
getTenantId
public static int getTenantId(String toAddress)
throws Exception
- Throws:
Exception
Copyright © 2015 WSO2. All rights reserved.