Class DataSourceStatisticsService
java.lang.Object
org.jboss.as.connector.services.datasources.statistics.DataSourceStatisticsService
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<org.jboss.as.controller.registry.ManagementResourceRegistration>,org.jboss.msc.value.Value<org.jboss.as.controller.registry.ManagementResourceRegistration>
public class DataSourceStatisticsService
extends Object
implements org.jboss.msc.service.Service<org.jboss.as.controller.registry.ManagementResourceRegistration>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.jboss.msc.value.InjectedValue<org.jboss.jca.deployers.common.CommonDeployment>Fields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
ConstructorsConstructorDescriptionDataSourceStatisticsService(org.jboss.as.controller.registry.ManagementResourceRegistration registration, boolean statsEnabled) create an instance * -
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.msc.inject.Injector<org.jboss.jca.deployers.common.CommonDeployment>org.jboss.as.controller.registry.ManagementResourceRegistrationgetValue()static voidregisterStatisticsResources(org.jboss.as.controller.registry.Resource datasourceResource) static voidremoveStatisticsResources(org.jboss.as.controller.registry.Resource datasourceResource) voidstart(org.jboss.msc.service.StartContext context) voidstop(org.jboss.msc.service.StopContext context)
-
Field Details
-
injectedDeploymentMD
protected final org.jboss.msc.value.InjectedValue<org.jboss.jca.deployers.common.CommonDeployment> injectedDeploymentMD
-
-
Constructor Details
-
DataSourceStatisticsService
public DataSourceStatisticsService(org.jboss.as.controller.registry.ManagementResourceRegistration registration, boolean statsEnabled) create an instance *
-
-
Method Details
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException - Specified by:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context) - Specified by:
stopin interfaceorg.jboss.msc.Service
-
getValue
public org.jboss.as.controller.registry.ManagementResourceRegistration getValue() throws IllegalStateException, IllegalArgumentException- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<org.jboss.as.controller.registry.ManagementResourceRegistration>- Throws:
IllegalStateExceptionIllegalArgumentException
-
getCommonDeploymentInjector
public org.jboss.msc.inject.Injector<org.jboss.jca.deployers.common.CommonDeployment> getCommonDeploymentInjector() -
registerStatisticsResources
public static void registerStatisticsResources(org.jboss.as.controller.registry.Resource datasourceResource) -
removeStatisticsResources
public static void removeStatisticsResources(org.jboss.as.controller.registry.Resource datasourceResource)
-