Class PooledConnectionFactoryStatisticsService
java.lang.Object
org.wildfly.extension.messaging.activemq.jms.PooledConnectionFactoryStatisticsService
- All Implemented Interfaces:
Service,Service<org.jboss.as.controller.registry.ManagementResourceRegistration>,Value<org.jboss.as.controller.registry.ManagementResourceRegistration>
public class PooledConnectionFactoryStatisticsService
extends Object
implements Service<org.jboss.as.controller.registry.ManagementResourceRegistration>
Service providing statistics for the pooled-connection-factory's pool.
copied from
DataSourceStatisticsService-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final InjectedValue<org.jboss.as.connector.metadata.deployment.ResourceAdapterDeployment> -
Constructor Summary
ConstructorsConstructorDescriptionPooledConnectionFactoryStatisticsService(org.jboss.as.controller.registry.ManagementResourceRegistration registration, boolean statsEnabled) create an instance * -
Method Summary
Modifier and TypeMethodDescriptionInjector<org.jboss.as.connector.metadata.deployment.ResourceAdapterDeployment>org.jboss.as.controller.registry.ManagementResourceRegistrationgetValue()Get the actual dependency value.static voidregisterStatisticsResources(org.jboss.as.controller.registry.Resource resource) static voidremoveStatisticsResources(org.jboss.as.controller.registry.Resource resource) voidstart(StartContext context) Start the service.voidstop(StopContext context) Stop the service.
-
Field Details
-
injectedRADeployment
protected final InjectedValue<org.jboss.as.connector.metadata.deployment.ResourceAdapterDeployment> injectedRADeployment
-
-
Constructor Details
-
PooledConnectionFactoryStatisticsService
public PooledConnectionFactoryStatisticsService(org.jboss.as.controller.registry.ManagementResourceRegistration registration, boolean statsEnabled) create an instance *
-
-
Method Details
-
start
Description copied from interface:ServiceStart the service. Do not return until the service has been fully started, unless an asynchronous service start is performed. All injections will be complete before this method is called.If the service start involves any activities that may block, the asynchronous mechanism provided by the
contextshould be used. See theclass javadocfor details.- Specified by:
startin interfaceService- Parameters:
context- the context which can be used to trigger an asynchronous service start- Throws:
StartException- if the service could not be started for some reason
-
stop
Description copied from interface:ServiceStop the service. Do not return until the service has been fully stopped, unless an asynchronous service stop is performed. All injections will remain intact until the service is fully stopped. This method should not throw an exception.If the service start involves any activities that may block, the asynchronous mechanism provided by the
contextshould be used. See theclass javadocfor details. -
getValue
public org.jboss.as.controller.registry.ManagementResourceRegistration getValue() throws IllegalStateException, IllegalArgumentExceptionDescription copied from interface:ValueGet the actual dependency value.- Specified by:
getValuein interfaceValue<org.jboss.as.controller.registry.ManagementResourceRegistration>- Returns:
- the actual dependency value
- Throws:
IllegalStateException- if the value is time-sensitive and the current state does not allow retrieval.IllegalArgumentException- when the value cannot be read due to misconfiguration
-
getRADeploymentInjector
public Injector<org.jboss.as.connector.metadata.deployment.ResourceAdapterDeployment> getRADeploymentInjector() -
registerStatisticsResources
public static void registerStatisticsResources(org.jboss.as.controller.registry.Resource resource) -
removeStatisticsResources
public static void removeStatisticsResources(org.jboss.as.controller.registry.Resource resource)
-