Class ServiceRegistryImpl
java.lang.Object
org.apache.activemq.artemis.core.server.impl.ServiceRegistryImpl
- All Implemented Interfaces:
ServiceRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAcceptorFactory(String name, AcceptorFactory acceptorFactory) voidaddBridgeTransformer(String name, Transformer transformer) voidaddConnectorService(ConnectorServiceFactory connectorServiceFactory, ConnectorServiceConfiguration configuration) voidaddDivertTransformer(String name, Transformer transformer) voidaddFederationTransformer(String name, Transformer transformer) voidaddIncomingInterceptor(BaseInterceptor interceptor) voidaddOutgoingInterceptor(BaseInterceptor interceptor) getAcceptorFactory(String name, String className) Get an instance of org.apache.activemq.artemis.spi.core.remoting.AcceptorFactorygetBridgeTransformer(String name, TransformerConfiguration transformerConfiguration) Get an instance of org.apache.activemq.artemis.core.server.transformer.Transformer for a bridgegetConnectorService(ConnectorServiceConfiguration configuration) Get connector service for a given configuration.Get a collection of paired org.apache.activemq.artemis.core.server.ConnectorServiceFactory and org.apache.activemq.artemis.core.config.ConnectorServiceConfiguration instances.getDivertTransformer(String name, TransformerConfiguration transformerConfiguration) Get an instance of org.apache.activemq.artemis.core.server.transformer.Transformer for a divertgetFederationTransformer(String name, TransformerConfiguration transformerConfiguration) Get an instance of org.apache.activemq.artemis.core.server.transformer.Transformer for federationgetIncomingInterceptors(List<String> classNames) Get a list of org.apache.activemq.artemis.api.core.BaseInterceptor instancesgetOutgoingInterceptors(List<String> classNames) Get a list of org.apache.activemq.artemis.api.core.BaseInterceptor instances<T> TvoidremoveConnectorService(ConnectorServiceConfiguration configuration) voidvoidsetExecutorService(ExecutorService executorService) voidsetIOExecutorService(ExecutorService ioExecutorService) voidsetPageExecutorService(ExecutorService executorService) Notice that if you want to provide your own PageExecutor, you should limit the number of threads to the number of parallel reads you want to perform on pagingvoidsetScheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
-
Constructor Details
-
ServiceRegistryImpl
public ServiceRegistryImpl()
-
-
Method Details
-
getPageExecutorService
- Specified by:
getPageExecutorServicein interfaceServiceRegistry
-
setPageExecutorService
Description copied from interface:ServiceRegistryNotice that if you want to provide your own PageExecutor, you should limit the number of threads to the number of parallel reads you want to perform on paging- Specified by:
setPageExecutorServicein interfaceServiceRegistry
-
getExecutorService
- Specified by:
getExecutorServicein interfaceServiceRegistry
-
setExecutorService
- Specified by:
setExecutorServicein interfaceServiceRegistry
-
getScheduledExecutorService
- Specified by:
getScheduledExecutorServicein interfaceServiceRegistry
-
setScheduledExecutorService
- Specified by:
setScheduledExecutorServicein interfaceServiceRegistry
-
addConnectorService
public void addConnectorService(ConnectorServiceFactory connectorServiceFactory, ConnectorServiceConfiguration configuration) - Specified by:
addConnectorServicein interfaceServiceRegistry
-
removeConnectorService
- Specified by:
removeConnectorServicein interfaceServiceRegistry
-
getConnectorServices
public Collection<Pair<ConnectorServiceFactory,ConnectorServiceConfiguration>> getConnectorServices(List<ConnectorServiceConfiguration> configs) Description copied from interface:ServiceRegistryGet a collection of paired org.apache.activemq.artemis.core.server.ConnectorServiceFactory and org.apache.activemq.artemis.core.config.ConnectorServiceConfiguration instances.- Specified by:
getConnectorServicesin interfaceServiceRegistry
-
getConnectorService
Description copied from interface:ServiceRegistryGet connector service for a given configuration.- Specified by:
getConnectorServicein interfaceServiceRegistry- Parameters:
configuration- The connector service configuration.- Returns:
- an instance of the connector service factory
-
addIncomingInterceptor
- Specified by:
addIncomingInterceptorin interfaceServiceRegistry
-
getIncomingInterceptors
Description copied from interface:ServiceRegistryGet a list of org.apache.activemq.artemis.api.core.BaseInterceptor instances- Specified by:
getIncomingInterceptorsin interfaceServiceRegistry
-
addOutgoingInterceptor
- Specified by:
addOutgoingInterceptorin interfaceServiceRegistry
-
getOutgoingInterceptors
Description copied from interface:ServiceRegistryGet a list of org.apache.activemq.artemis.api.core.BaseInterceptor instances- Specified by:
getOutgoingInterceptorsin interfaceServiceRegistry
-
addDivertTransformer
- Specified by:
addDivertTransformerin interfaceServiceRegistry
-
removeDivertTransformer
- Specified by:
removeDivertTransformerin interfaceServiceRegistry
-
getDivertTransformer
public Transformer getDivertTransformer(String name, TransformerConfiguration transformerConfiguration) Description copied from interface:ServiceRegistryGet an instance of org.apache.activemq.artemis.core.server.transformer.Transformer for a divert- Specified by:
getDivertTransformerin interfaceServiceRegistry- Parameters:
name- the name of divert for which the transformer will be usedtransformerConfiguration- the transformer configuration
-
getIOExecutorService
- Specified by:
getIOExecutorServicein interfaceServiceRegistry
-
setIOExecutorService
- Specified by:
setIOExecutorServicein interfaceServiceRegistry
-
addBridgeTransformer
- Specified by:
addBridgeTransformerin interfaceServiceRegistry
-
getBridgeTransformer
public Transformer getBridgeTransformer(String name, TransformerConfiguration transformerConfiguration) Description copied from interface:ServiceRegistryGet an instance of org.apache.activemq.artemis.core.server.transformer.Transformer for a bridge- Specified by:
getBridgeTransformerin interfaceServiceRegistry- Parameters:
name- the name of bridge for which the transformer will be usedtransformerConfiguration- the transformer configuration
-
addFederationTransformer
- Specified by:
addFederationTransformerin interfaceServiceRegistry
-
getFederationTransformer
public Transformer getFederationTransformer(String name, TransformerConfiguration transformerConfiguration) Description copied from interface:ServiceRegistryGet an instance of org.apache.activemq.artemis.core.server.transformer.Transformer for federation- Specified by:
getFederationTransformerin interfaceServiceRegistry- Parameters:
name- the name of bridge for which the transformer will be usedtransformerConfiguration- the transformer configuration
-
getAcceptorFactory
Description copied from interface:ServiceRegistryGet an instance of org.apache.activemq.artemis.spi.core.remoting.AcceptorFactory- Specified by:
getAcceptorFactoryin interfaceServiceRegistry- Parameters:
name- the name of acceptor for which the factory will be usedclassName- the fully qualified name of the factory implementation (can be null)
-
addAcceptorFactory
- Specified by:
addAcceptorFactoryin interfaceServiceRegistry
-
loadClass
-