Package org.apache.activemq.network
Class NetworkConnector
java.lang.Object
org.apache.activemq.network.NetworkBridgeConfiguration
org.apache.activemq.network.NetworkConnector
- All Implemented Interfaces:
org.apache.activemq.Service
- Direct Known Subclasses:
DiscoveryNetworkConnector,LdapNetworkConnector,MulticastNetworkConnector
public abstract class NetworkConnector
extends NetworkBridgeConfiguration
implements org.apache.activemq.Service
Connector class for bridging broker networks.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ConcurrentMap<URI,NetworkBridge> protected ConnectionFilterprotected URIprotected org.apache.activemq.util.ServiceSupportFields inherited from class org.apache.activemq.network.NetworkBridgeConfiguration
dynamicallyIncludedDestinations, excludedDestinations, staticallyIncludedDestinations -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDynamicallyIncludedDestination(org.apache.activemq.command.ActiveMQDestination destination) voidaddExcludedDestination(org.apache.activemq.command.ActiveMQDestination destination) voidaddStaticallyIncludedDestination(org.apache.activemq.command.ActiveMQDestination destination) protected NetworkBridgeprotected org.apache.activemq.transport.Transportprotected ObjectNameSet<org.apache.activemq.command.ActiveMQDestination>static org.apache.activemq.command.ActiveMQDestination[]getDurableTopicDestinations(Set<org.apache.activemq.command.ActiveMQDestination> durableDestinations) protected voidprotected voidhandleStop(org.apache.activemq.util.ServiceStopper stopper) booleanbooleanbooleanprotected voidbooleanremoveDemandSubscription(org.apache.activemq.command.ConsumerId consumerId) voidsetBrokerService(BrokerService brokerService) voidsetConnectionFilter(ConnectionFilter connectionFilter) voidsetDurableDestinations(Set<org.apache.activemq.command.ActiveMQDestination> durableDestinations) voidsetLocalUri(URI localURI) voidsetObjectName(ObjectName objectName) voidstart()voidstop()protected voidMethods inherited from class org.apache.activemq.network.NetworkBridgeConfiguration
getAdvisoryAckPercentage, getAdvisoryPrefetchSize, getBridgeFactory, getBrokerName, getBrokerURL, getClientIdToken, getConsumerPriorityBase, getConsumerTTL, getDestinationFilter, getDynamicallyIncludedDestinations, getExcludedDestinations, getGcSweepTime, getMessageTTL, getName, getNetworkTTL, getPassword, getPrefetchSize, getRemotePassword, getRemoteUserName, getSslContext, getStaticallyIncludedDestinations, getUserName, isAdvisoryForFailedForward, isAlwaysSyncSend, isBridgeTempDestinations, isCheckDuplicateMessagesOnDuplex, isConduitNetworkQueueSubscriptions, isConduitSubscriptions, isDecreaseNetworkConsumerPriority, isDispatchAsync, isDuplex, isDynamicOnly, isGcDestinationViews, isStaticBridge, isSuppressDuplicateQueueSubscriptions, isSuppressDuplicateTopicSubscriptions, isSyncDurableSubs, isUseBrokerNamesAsIdSeed, isUseCompression, isUseVirtualDestSubs, setAdvisoryAckPercentage, setAdvisoryForFailedForward, setAdvisoryPrefetchSize, setAlwaysSyncSend, setBridgeFactory, setBridgeTempDestinations, setBrokerName, setBrokerURL, setCheckDuplicateMessagesOnDuplex, setClientIdToken, setConduitNetworkQueueSubscriptions, setConduitSubscriptions, setConsumerPriorityBase, setConsumerTTL, setDecreaseNetworkConsumerPriority, setDestinationFilter, setDispatchAsync, setDuplex, setDynamicallyIncludedDestinations, setDynamicOnly, setExcludedDestinations, setGcDestinationViews, setGcSweepTime, setMessageTTL, setName, setNetworkTTL, setPassword, setPrefetchSize, setRemotePassword, setRemoteUserName, setSslContext, setStaticallyIncludedDestinations, setStaticBridge, setSuppressDuplicateQueueSubscriptions, setSuppressDuplicateTopicSubscriptions, setSyncDurableSubs, setUseBrokerNameAsIdSees, setUseCompression, setUserName, setUseVirtualDestSubs
-
Field Details
-
localURI
-
connectionFilter
-
bridges
-
serviceSupport
protected org.apache.activemq.util.ServiceSupport serviceSupport
-
-
Constructor Details
-
NetworkConnector
public NetworkConnector() -
NetworkConnector
-
-
Method Details
-
getLocalUri
- Throws:
URISyntaxException
-
setLocalUri
-
getDurableDestinations
- Returns:
- Returns the durableDestinations.
-
setDurableDestinations
public void setDurableDestinations(Set<org.apache.activemq.command.ActiveMQDestination> durableDestinations) - Parameters:
durableDestinations- The durableDestinations to set.
-
addExcludedDestination
public void addExcludedDestination(org.apache.activemq.command.ActiveMQDestination destination) -
addStaticallyIncludedDestination
public void addStaticallyIncludedDestination(org.apache.activemq.command.ActiveMQDestination destination) -
addDynamicallyIncludedDestination
public void addDynamicallyIncludedDestination(org.apache.activemq.command.ActiveMQDestination destination) -
getConnectionFilter
-
setConnectionFilter
-
configureBridge
-
createLocalTransport
- Throws:
Exception
-
getDurableTopicDestinations
public static org.apache.activemq.command.ActiveMQDestination[] getDurableTopicDestinations(Set<org.apache.activemq.command.ActiveMQDestination> durableDestinations) -
start
- Specified by:
startin interfaceorg.apache.activemq.Service- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.apache.activemq.Service- Throws:
Exception
-
handleStart
- Throws:
Exception
-
handleStop
- Throws:
Exception
-
isStarted
public boolean isStarted() -
isStopped
public boolean isStopped() -
isStopping
public boolean isStopping() -
getObjectName
-
setObjectName
-
getBrokerService
-
setBrokerService
-
registerNetworkBridgeMBean
-
unregisterNetworkBridgeMBean
-
createNetworkBridgeObjectName
protected ObjectName createNetworkBridgeObjectName(NetworkBridge bridge) throws MalformedObjectNameException - Throws:
MalformedObjectNameException
-
removeDemandSubscription
public boolean removeDemandSubscription(org.apache.activemq.command.ConsumerId consumerId) -
activeBridges
-