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
|
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
|
List<BaseInterceptor> |
getOutgoingInterceptors(List<String> classNames)
Get a list of org.apache.activemq.artemis.api.core.BaseInterceptor instances
|
ScheduledExecutorService |
getScheduledExecutorService() |
void |
removeConnectorService(ConnectorServiceConfiguration configuration) |
void |
setExecutorService(ExecutorService executorService) |
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 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, String className)
ServiceRegistry
getDivertTransformer
in interface ServiceRegistry
name
- the name of divert for which the transformer will be usedclassName
- the fully qualified name of the transformer implementation (can be null)public void addBridgeTransformer(String name, Transformer transformer)
addBridgeTransformer
in interface ServiceRegistry
public Transformer getBridgeTransformer(String name, String className)
ServiceRegistry
getBridgeTransformer
in interface ServiceRegistry
name
- 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)
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
Copyright © 2016 The Apache Software Foundation. All rights reserved.