public class DataSourceStatisticsService extends Object implements org.jboss.msc.service.Service<org.jboss.as.controller.registry.ManagementResourceRegistration>
Modifier and Type | Field and Description |
---|---|
protected org.jboss.msc.value.InjectedValue<org.jboss.jca.deployers.common.CommonDeployment> |
injectedDeploymentMD |
Constructor and Description |
---|
DataSourceStatisticsService(org.jboss.as.controller.registry.ManagementResourceRegistration registration,
boolean statsEnabled)
create an instance *
|
Modifier and Type | Method and Description |
---|---|
org.jboss.msc.inject.Injector<org.jboss.jca.deployers.common.CommonDeployment> |
getCommonDeploymentInjector() |
org.jboss.as.controller.registry.ManagementResourceRegistration |
getValue() |
static void |
registerStatisticsResources(org.jboss.as.controller.registry.Resource datasourceResource) |
static void |
removeStatisticsResources(org.jboss.as.controller.registry.Resource datasourceResource) |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
protected final org.jboss.msc.value.InjectedValue<org.jboss.jca.deployers.common.CommonDeployment> injectedDeploymentMD
public DataSourceStatisticsService(org.jboss.as.controller.registry.ManagementResourceRegistration registration, boolean statsEnabled)
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<org.jboss.as.controller.registry.ManagementResourceRegistration>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<org.jboss.as.controller.registry.ManagementResourceRegistration>
public org.jboss.as.controller.registry.ManagementResourceRegistration getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<org.jboss.as.controller.registry.ManagementResourceRegistration>
IllegalStateException
IllegalArgumentException
public org.jboss.msc.inject.Injector<org.jboss.jca.deployers.common.CommonDeployment> getCommonDeploymentInjector()
public static void registerStatisticsResources(org.jboss.as.controller.registry.Resource datasourceResource)
public static void removeStatisticsResources(org.jboss.as.controller.registry.Resource datasourceResource)
Copyright © 2017 JBoss by Red Hat. All rights reserved.