Class UsageAgentServiceComponent


  • public class UsageAgentServiceComponent
    extends Object
    this class is used to activate and deactivate the UsageAgentServiceComponent, set and unset Serverconfigurarion, set and unset EventBrokerService.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void activate​(org.osgi.service.component.ComponentContext context)
      method to activate UsageAgentServiceComponent
      protected void deactivate​(org.osgi.service.component.ComponentContext context)
      method to deactivate bundle
      protected void setConfigurationContextService​(org.wso2.carbon.utils.ConfigurationContextService contextService)
      method to set ConfigurationContextService
      protected void setEventBrokerService​(org.wso2.carbon.event.core.EventBroker registryEventBrokerService)
      method to set EventBrokerService
      protected void setRealmService​(org.wso2.carbon.user.core.service.RealmService realmService)
      method to set RealmService
      protected void setServerConfiguration​(org.wso2.carbon.base.api.ServerConfigurationService serverConfiguration)
      method to set server configurations
      protected void setSystemStatisticsUtil​(org.wso2.carbon.statistics.services.SystemStatisticsUtil systemStatisticsUtil)  
      protected void unsetConfigurationContextService​(org.wso2.carbon.utils.ConfigurationContextService contextService)
      method to unset ConfigurationContextService
      protected void unsetEventBrokerService​(org.wso2.carbon.event.core.EventBroker registryEventBrokerService)
      method to unset EventBrokerService
      protected void unsetRealmService​(org.wso2.carbon.user.core.service.RealmService realmService)
      method to unsetRealmService
      protected void unsetServerConfiguration​(org.wso2.carbon.base.api.ServerConfigurationService serverConfiguration)
      method to unset server configurations
      protected void unsetSystemStatisticsUtil​(org.wso2.carbon.statistics.services.SystemStatisticsUtil systemStatisticsUtil)  
    • Constructor Detail

      • UsageAgentServiceComponent

        public UsageAgentServiceComponent()
    • Method Detail

      • activate

        protected void activate​(org.osgi.service.component.ComponentContext context)
        method to activate UsageAgentServiceComponent
        Parameters:
        context - componentContext
      • deactivate

        protected void deactivate​(org.osgi.service.component.ComponentContext context)
        method to deactivate bundle
        Parameters:
        context - ComponentContext
      • setRealmService

        protected void setRealmService​(org.wso2.carbon.user.core.service.RealmService realmService)
        method to set RealmService
        Parameters:
        realmService - RealmService
      • unsetRealmService

        protected void unsetRealmService​(org.wso2.carbon.user.core.service.RealmService realmService)
        method to unsetRealmService
        Parameters:
        realmService - RealmService
      • setConfigurationContextService

        protected void setConfigurationContextService​(org.wso2.carbon.utils.ConfigurationContextService contextService)
        method to set ConfigurationContextService
        Parameters:
        contextService - ConfigurationContextService
      • unsetConfigurationContextService

        protected void unsetConfigurationContextService​(org.wso2.carbon.utils.ConfigurationContextService contextService)
        method to unset ConfigurationContextService
        Parameters:
        contextService - ConfigurationContextService
      • setServerConfiguration

        protected void setServerConfiguration​(org.wso2.carbon.base.api.ServerConfigurationService serverConfiguration)
        method to set server configurations
        Parameters:
        serverConfiguration - ServerConfiguration
      • unsetServerConfiguration

        protected void unsetServerConfiguration​(org.wso2.carbon.base.api.ServerConfigurationService serverConfiguration)
        method to unset server configurations
        Parameters:
        serverConfiguration - ServerConfiguration
      • setEventBrokerService

        protected void setEventBrokerService​(org.wso2.carbon.event.core.EventBroker registryEventBrokerService)
        method to set EventBrokerService
        Parameters:
        registryEventBrokerService - EventBroker
      • unsetEventBrokerService

        protected void unsetEventBrokerService​(org.wso2.carbon.event.core.EventBroker registryEventBrokerService)
        method to unset EventBrokerService
        Parameters:
        registryEventBrokerService - EventBroker
      • setSystemStatisticsUtil

        protected void setSystemStatisticsUtil​(org.wso2.carbon.statistics.services.SystemStatisticsUtil systemStatisticsUtil)
      • unsetSystemStatisticsUtil

        protected void unsetSystemStatisticsUtil​(org.wso2.carbon.statistics.services.SystemStatisticsUtil systemStatisticsUtil)