Package org.wso2.msf4j.analytics.metrics
Class MetricsComponent
- java.lang.Object
-
- org.wso2.msf4j.analytics.metrics.MetricsComponent
-
public class MetricsComponent extends java.lang.ObjectMetrics OSGi Component to Initialize/Destroy Metrics.
-
-
Constructor Summary
Constructors Constructor Description MetricsComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidactivate()This is the activation method of MetricsComponent.protected voiddeactivate()This is the deactivation method of MetricsComponent.protected voidsetMetricManagementService(org.wso2.carbon.metrics.core.MetricManagementService metricManagementService)This bind method will be called whenMetricManagementServiceis registered.protected voidsetMetricService(org.wso2.carbon.metrics.core.MetricService metricService)This bind method will be called whenMetricServiceis registered.protected voidunsetMetricManagementService(org.wso2.carbon.metrics.core.MetricManagementService metricManagementService)This is the unbind method which gets called at the un-registration ofMetricManagementServiceprotected voidunsetMetricService(org.wso2.carbon.metrics.core.MetricService metricService)This is the unbind method which gets called at the un-registration ofMetricService
-
-
-
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 whenMetricServiceis registered.- Parameters:
metricService- TheMetricServiceinstance 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 ofMetricService- Parameters:
metricService- TheMetricServiceinstance registered as an OSGi service
-
setMetricManagementService
protected void setMetricManagementService(org.wso2.carbon.metrics.core.MetricManagementService metricManagementService)
This bind method will be called whenMetricManagementServiceis registered.- Parameters:
metricManagementService- TheMetricManagementServiceinstance 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 ofMetricManagementService- Parameters:
metricManagementService- TheMetricManagementServiceinstance registered as an OSGi service
-
-