Class MetricsComponent


  • public class MetricsComponent
    extends java.lang.Object
    Metrics OSGi Component to Initialize/Destroy Metrics.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void activate()
      This is the activation method of MetricsComponent.
      protected void deactivate()
      This is the deactivation method of MetricsComponent.
      protected void setMetricManagementService​(org.wso2.carbon.metrics.core.MetricManagementService metricManagementService)
      This bind method will be called when MetricManagementService is registered.
      protected void setMetricService​(org.wso2.carbon.metrics.core.MetricService metricService)
      This bind method will be called when MetricService is registered.
      protected void unsetMetricManagementService​(org.wso2.carbon.metrics.core.MetricManagementService metricManagementService)
      This is the unbind method which gets called at the un-registration of MetricManagementService
      protected void unsetMetricService​(org.wso2.carbon.metrics.core.MetricService metricService)
      This is the unbind method which gets called at the un-registration of MetricService
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MetricsComponent

        public MetricsComponent()
    • Method Detail

      • activate

        protected void activate()
        This is the activation method of MetricsComponent. This will be called when its references are satisfied.
      • deactivate

        protected void deactivate()
        This is the deactivation method of MetricsComponent.
      • setMetricService

        protected void setMetricService​(org.wso2.carbon.metrics.core.MetricService metricService)
        This bind method will be called when MetricService is registered.
        Parameters:
        metricService - The MetricService instance registered as an OSGi service
      • unsetMetricService

        protected void unsetMetricService​(org.wso2.carbon.metrics.core.MetricService metricService)
        This is the unbind method which gets called at the un-registration of MetricService
        Parameters:
        metricService - The MetricService instance registered as an OSGi service
      • setMetricManagementService

        protected void setMetricManagementService​(org.wso2.carbon.metrics.core.MetricManagementService metricManagementService)
        This bind method will be called when MetricManagementService is registered.
        Parameters:
        metricManagementService - The MetricManagementService instance registered as an OSGi service
      • unsetMetricManagementService

        protected void unsetMetricManagementService​(org.wso2.carbon.metrics.core.MetricManagementService metricManagementService)
        This is the unbind method which gets called at the un-registration of MetricManagementService
        Parameters:
        metricManagementService - The MetricManagementService instance registered as an OSGi service