public class ServiceRegistryImpl extends Object implements ServiceRegistry
Constructor and Description |
---|
ServiceRegistryImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addAcceptorFactory(String name,
AcceptorFactory acceptorFactory) |
void |
addBridgeTransformer(String name,
Transformer transformer) |
void |
addConnectorService(ConnectorServiceFactory connectorServiceFactory,
ConnectorServiceConfiguration configuration) |
void |
addDivertTransformer(String name,
Transformer transformer) |
void |
addIncomingInterceptor(BaseInterceptor interceptor) |
void |
addOutgoingInterceptor(BaseInterceptor interceptor) |
AcceptorFactory |
getAcceptorFactory(String name,
String className)
Get an instance of org.apache.activemq.artemis.spi.core.remoting.AcceptorFactory
|
Transformer |
getBridgeTransformer(String name,
TransformerConfiguration transformerConfiguration)
Get an instance of org.apache.activemq.artemis.core.server.transformer.Transformer for a bridge
|
ConnectorServiceFactory |
getConnectorService(ConnectorServiceConfiguration configuration)
Get connector service for a given configuration.
|
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.
|
Transformer |
getDivertTransformer(String name,
TransformerConfiguration transformerConfiguration)
Get an instance of org.apache.activemq.artemis.core.server.transformer.Transformer for a divert
|
ExecutorService |
getExecutorService() |
List<BaseInterceptor> |
getIncomingInterceptors(List<String> classNames)
Get a list of org.apache.activemq.artemis.api.core.BaseInterceptor instances
|
ExecutorService |
getIOExecutorService() |
List<BaseInterceptor> |
getOutgoingInterceptors(List<String> classNames)
Get a list of org.apache.activemq.artemis.api.core.BaseInterceptor instances
|
ScheduledExecutorService |
getScheduledExecutorService() |
<T> T |
loadClass(String className) |
void |
removeConnectorService(ConnectorServiceConfiguration configuration) |
void |
setExecutorService(ExecutorService executorService) |
void |
setIOExecutorService(ExecutorService ioExecutorService) |
void |
setScheduledExecutorService(ScheduledExecutorService scheduledExecutorService) |
public ExecutorService getExecutorService()
getExecutorService
in interface ServiceRegistry
public void setExecutorService(ExecutorService executorService)
setExecutorService
in interface ServiceRegistry
public ScheduledExecutorService getScheduledExecutorService()
getScheduledExecutorService
in interface ServiceRegistry
public void setScheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
setScheduledExecutorService
in interface ServiceRegistry
public void addConnectorService(ConnectorServiceFactory connectorServiceFactory, ConnectorServiceConfiguration configuration)
addConnectorService
in interface ServiceRegistry
public void removeConnectorService(ConnectorServiceConfiguration configuration)
removeConnectorService
in interface ServiceRegistry
public Collection<Pair<ConnectorServiceFactory,ConnectorServiceConfiguration>> getConnectorServices(List<ConnectorServiceConfiguration> configs)
ServiceRegistry
getConnectorServices
in interface ServiceRegistry
public ConnectorServiceFactory getConnectorService(ConnectorServiceConfiguration configuration)
ServiceRegistry
getConnectorService
in interface ServiceRegistry
configuration
- The connector service configuration.public void addIncomingInterceptor(BaseInterceptor interceptor)
addIncomingInterceptor
in interface ServiceRegistry
public List<BaseInterceptor> getIncomingInterceptors(List<String> classNames)
ServiceRegistry
getIncomingInterceptors
in interface ServiceRegistry
public void addOutgoingInterceptor(BaseInterceptor interceptor)
addOutgoingInterceptor
in interface ServiceRegistry
public List<BaseInterceptor> getOutgoingInterceptors(List<String> classNames)
ServiceRegistry
getOutgoingInterceptors
in interface ServiceRegistry
public void addDivertTransformer(String name, Transformer transformer)
addDivertTransformer
in interface ServiceRegistry
public Transformer getDivertTransformer(String name, TransformerConfiguration transformerConfiguration)
ServiceRegistry
getDivertTransformer
in interface ServiceRegistry
name
- the name of divert for which the transformer will be usedtransformerConfiguration
- the transformer configurationpublic ExecutorService getIOExecutorService()
getIOExecutorService
in interface ServiceRegistry
public void setIOExecutorService(ExecutorService ioExecutorService)
setIOExecutorService
in interface ServiceRegistry
public void addBridgeTransformer(String name, Transformer transformer)
addBridgeTransformer
in interface ServiceRegistry
public Transformer getBridgeTransformer(String name, TransformerConfiguration transformerConfiguration)
ServiceRegistry
getBridgeTransformer
in interface ServiceRegistry
name
- the name of bridge for which the transformer will be usedtransformerConfiguration
- the transformer configurationpublic AcceptorFactory getAcceptorFactory(String name, String className)
ServiceRegistry
getAcceptorFactory
in interface ServiceRegistry
name
- the name of acceptor for which the factory will be usedclassName
- the fully qualified name of the factory implementation (can be null)public void addAcceptorFactory(String name, AcceptorFactory acceptorFactory)
addAcceptorFactory
in interface ServiceRegistry
public <T> T loadClass(String className)
Copyright © 2018 JBoss by Red Hat. All rights reserved.