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,
String className)
Get an instance of org.apache.activemq.artemis.core.server.cluster.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,
String className)
Get an instance of org.apache.activemq.artemis.core.server.cluster.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 ServiceRegistrypublic void setExecutorService(ExecutorService executorService)
setExecutorService in interface ServiceRegistrypublic ScheduledExecutorService getScheduledExecutorService()
getScheduledExecutorService in interface ServiceRegistrypublic void setScheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
setScheduledExecutorService in interface ServiceRegistrypublic void addConnectorService(ConnectorServiceFactory connectorServiceFactory, ConnectorServiceConfiguration configuration)
addConnectorService in interface ServiceRegistrypublic void removeConnectorService(ConnectorServiceConfiguration configuration)
removeConnectorService in interface ServiceRegistrypublic Collection<Pair<ConnectorServiceFactory,ConnectorServiceConfiguration>> getConnectorServices(List<ConnectorServiceConfiguration> configs)
ServiceRegistrygetConnectorServices in interface ServiceRegistrypublic ConnectorServiceFactory getConnectorService(ConnectorServiceConfiguration configuration)
ServiceRegistrygetConnectorService in interface ServiceRegistryconfiguration - The connector service configuration.public void addIncomingInterceptor(BaseInterceptor interceptor)
addIncomingInterceptor in interface ServiceRegistrypublic List<BaseInterceptor> getIncomingInterceptors(List<String> classNames)
ServiceRegistrygetIncomingInterceptors in interface ServiceRegistrypublic void addOutgoingInterceptor(BaseInterceptor interceptor)
addOutgoingInterceptor in interface ServiceRegistrypublic List<BaseInterceptor> getOutgoingInterceptors(List<String> classNames)
ServiceRegistrygetOutgoingInterceptors in interface ServiceRegistrypublic void addDivertTransformer(String name, Transformer transformer)
addDivertTransformer in interface ServiceRegistrypublic Transformer getDivertTransformer(String name, String className)
ServiceRegistrygetDivertTransformer in interface ServiceRegistryname - the name of divert for which the transformer will be usedclassName - the fully qualified name of the transformer implementation (can be null)public ExecutorService getIOExecutorService()
getIOExecutorService in interface ServiceRegistrypublic void setIOExecutorService(ExecutorService ioExecutorService)
setIOExecutorService in interface ServiceRegistrypublic void addBridgeTransformer(String name, Transformer transformer)
addBridgeTransformer in interface ServiceRegistrypublic Transformer getBridgeTransformer(String name, String className)
ServiceRegistrygetBridgeTransformer in interface ServiceRegistryname - the name of bridge for which the transformer will be usedclassName - the fully qualified name of the transformer implementation (can be null)public AcceptorFactory getAcceptorFactory(String name, String className)
ServiceRegistrygetAcceptorFactory in interface ServiceRegistryname - 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 ServiceRegistrypublic <T> T loadClass(String className)
Copyright © 2018 JBoss by Red Hat. All rights reserved.