Class ExternalPooledConnectionFactoryService
java.lang.Object
org.wildfly.extension.messaging.activemq.jms.ExternalPooledConnectionFactoryService
- All Implemented Interfaces:
Service,Service<ExternalPooledConnectionFactoryService>,Value<ExternalPooledConnectionFactoryService>
public class ExternalPooledConnectionFactoryService
extends Object
implements Service<ExternalPooledConnectionFactoryService>
A service which translates a pooled connection factory into a resource adapter driven connection pool
- Author:
- Emmanuel Hugonnet (c) 2018 Red Hat, inc.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExternalPooledConnectionFactoryService(String name, TransportConfiguration[] connectors, DiscoveryGroupConfiguration groupConfiguration, String jgroupsClusterName, String jgroupsChannelName, List<PooledConnectionFactoryConfigProperties> adapterParams, ContextNames.BindInfo bindInfo, List<String> jndiAliases, String txSupport, int minPoolSize, int maxPoolSize, String managedConnectionPoolClassName, Boolean enlistmentTrace, org.jboss.as.controller.capability.CapabilityServiceSupport capabilityServiceSupport, boolean createBinderService) -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Get the actual dependency value.installService(org.jboss.as.controller.OperationContext context, String name, TransportConfiguration[] connectors, DiscoveryGroupConfiguration groupConfiguration, Set<String> connectorsSocketBindings, Set<String> sslContextNames, String jgroupClusterName, String jgroupChannelName, List<PooledConnectionFactoryConfigProperties> adapterParams, ContextNames.BindInfo bindInfo, List<String> jndiAliases, String txSupport, int minPoolSize, int maxPoolSize, String managedConnectionPoolClassName, Boolean enlistmentTrace, ModelNode model) installService(ServiceTarget serviceTarget, ExternalBrokerConfigurationService configuration, String name, TransportConfiguration[] connectors, DiscoveryGroupConfiguration groupConfiguration, Set<String> connectorsSocketBindings, Set<String> sslContextNames, String jgroupClusterName, String jgroupChannelName, List<PooledConnectionFactoryConfigProperties> adapterParams, ContextNames.BindInfo bindInfo, List<String> jndiAliases, String txSupport, int minPoolSize, int maxPoolSize, String managedConnectionPoolClassName, Boolean enlistmentTrace, org.jboss.as.controller.capability.CapabilityServiceSupport capabilityServiceSupport) voidstart(StartContext context) Start the service.voidstop(StopContext context) Stop the service.
-
Field Details
-
CONNECTOR_CLASSNAME
- See Also:
-
CONNECTION_PARAMETERS
- See Also:
-
GROUP_ADDRESS
- See Also:
-
DISCOVERY_INITIAL_WAIT_TIMEOUT
- See Also:
-
GROUP_PORT
- See Also:
-
REFRESH_TIMEOUT
- See Also:
-
DISCOVERY_LOCAL_BIND_ADDRESS
- See Also:
-
JGROUPS_CHANNEL_LOCATOR_CLASS
- See Also:
-
JGROUPS_CHANNEL_NAME
- See Also:
-
JGROUPS_CHANNEL_REF_NAME
- See Also:
-
-
Constructor Details
-
ExternalPooledConnectionFactoryService
public ExternalPooledConnectionFactoryService(String name, TransportConfiguration[] connectors, DiscoveryGroupConfiguration groupConfiguration, String jgroupsClusterName, String jgroupsChannelName, List<PooledConnectionFactoryConfigProperties> adapterParams, ContextNames.BindInfo bindInfo, List<String> jndiAliases, String txSupport, int minPoolSize, int maxPoolSize, String managedConnectionPoolClassName, Boolean enlistmentTrace, org.jboss.as.controller.capability.CapabilityServiceSupport capabilityServiceSupport, boolean createBinderService)
-
-
Method Details
-
getConnectors
-
getBindInfo
-
installService
public static ExternalPooledConnectionFactoryService installService(ServiceTarget serviceTarget, ExternalBrokerConfigurationService configuration, String name, TransportConfiguration[] connectors, DiscoveryGroupConfiguration groupConfiguration, Set<String> connectorsSocketBindings, Set<String> sslContextNames, String jgroupClusterName, String jgroupChannelName, List<PooledConnectionFactoryConfigProperties> adapterParams, ContextNames.BindInfo bindInfo, List<String> jndiAliases, String txSupport, int minPoolSize, int maxPoolSize, String managedConnectionPoolClassName, Boolean enlistmentTrace, org.jboss.as.controller.capability.CapabilityServiceSupport capabilityServiceSupport) throws org.jboss.as.controller.OperationFailedException - Throws:
org.jboss.as.controller.OperationFailedException
-
installService
public static ExternalPooledConnectionFactoryService installService(org.jboss.as.controller.OperationContext context, String name, TransportConfiguration[] connectors, DiscoveryGroupConfiguration groupConfiguration, Set<String> connectorsSocketBindings, Set<String> sslContextNames, String jgroupClusterName, String jgroupChannelName, List<PooledConnectionFactoryConfigProperties> adapterParams, ContextNames.BindInfo bindInfo, List<String> jndiAliases, String txSupport, int minPoolSize, int maxPoolSize, String managedConnectionPoolClassName, Boolean enlistmentTrace, ModelNode model) throws org.jboss.as.controller.OperationFailedException - Throws:
org.jboss.as.controller.OperationFailedException
-
getValue
public ExternalPooledConnectionFactoryService getValue() throws IllegalStateException, IllegalArgumentExceptionDescription copied from interface:ValueGet the actual dependency value.- Specified by:
getValuein interfaceValue<ExternalPooledConnectionFactoryService>- 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
-
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. -
getCommandDispatcherFactory
-