Interface ServiceRegistry
- All Known Implementing Classes:
ServiceRegistryImpl
public interface ServiceRegistry
A holder for common services leveraged by the broker.
-
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 instancesvoidremoveConnectorService(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)
-
Method Details
-
getPageExecutorService
ExecutorService getPageExecutorService() -
setPageExecutorService
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 paging -
getExecutorService
ExecutorService getExecutorService() -
setExecutorService
-
getIOExecutorService
ExecutorService getIOExecutorService() -
setIOExecutorService
-
getScheduledExecutorService
ScheduledExecutorService getScheduledExecutorService() -
setScheduledExecutorService
-
addConnectorService
void addConnectorService(ConnectorServiceFactory connectorServiceFactory, ConnectorServiceConfiguration configuration) -
removeConnectorService
-
getConnectorServices
Collection<Pair<ConnectorServiceFactory,ConnectorServiceConfiguration>> getConnectorServices(List<ConnectorServiceConfiguration> configs) Get a collection of paired org.apache.activemq.artemis.core.server.ConnectorServiceFactory and org.apache.activemq.artemis.core.config.ConnectorServiceConfiguration instances. -
getConnectorService
Get connector service for a given configuration.- Parameters:
configuration- The connector service configuration.- Returns:
- an instance of the connector service factory
-
addIncomingInterceptor
-
getIncomingInterceptors
Get a list of org.apache.activemq.artemis.api.core.BaseInterceptor instances -
addOutgoingInterceptor
-
getOutgoingInterceptors
Get a list of org.apache.activemq.artemis.api.core.BaseInterceptor instances -
getDivertTransformer
Get an instance of org.apache.activemq.artemis.core.server.transformer.Transformer for a divert- Parameters:
name- the name of divert for which the transformer will be usedtransformerConfiguration- the transformer configuration
-
addDivertTransformer
-
removeDivertTransformer
-
getBridgeTransformer
Get an instance of org.apache.activemq.artemis.core.server.transformer.Transformer for a bridge- Parameters:
name- the name of bridge for which the transformer will be usedtransformerConfiguration- the transformer configuration
-
addBridgeTransformer
-
getFederationTransformer
Transformer getFederationTransformer(String name, TransformerConfiguration transformerConfiguration) Get an instance of org.apache.activemq.artemis.core.server.transformer.Transformer for federation- Parameters:
name- the name of bridge for which the transformer will be usedtransformerConfiguration- the transformer configuration
-
addFederationTransformer
-
getAcceptorFactory
Get an instance of org.apache.activemq.artemis.spi.core.remoting.AcceptorFactory- 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
-