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 final org.apache.activemq.management.CountStatisticImplprotected ConcurrentMap<URI, NetworkBridge> protected ConnectionFilterprotected URIprotected final NetworkBridgeStatisticsprotected org.apache.activemq.util.ServiceSupportprotected final AtomicLongprotected final AtomicLongFields inherited from class NetworkBridgeConfiguration
DURABLE_SUB_PREFIX, 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 ObjectNameorg.apache.activemq.management.CountStatisticSet<org.apache.activemq.command.ActiveMQDestination> static org.apache.activemq.command.ActiveMQDestination[]getDurableTopicDestinations(Set<org.apache.activemq.command.ActiveMQDestination> durableDestinations) org.apache.activemq.management.CountStatisticorg.apache.activemq.management.CountStatisticlonglongabstract URIgetUri()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 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, isAutoStart, isBridgeTempDestinations, isCheckDuplicateMessagesOnDuplex, isConduitNetworkQueueSubscriptions, isConduitSubscriptions, isDecreaseNetworkConsumerPriority, isDispatchAsync, isDuplex, isDynamicOnly, isGcDestinationViews, isStaticBridge, isSuppressDuplicateQueueSubscriptions, isSuppressDuplicateTopicSubscriptions, isSyncDurableSubs, isUseBrokerNamesAsIdSeed, isUseCompression, isUseVirtualDestSubs, setAdvisoryAckPercentage, setAdvisoryForFailedForward, setAdvisoryPrefetchSize, setAlwaysSyncSend, setAutoStart, 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
-
startedTimestamp
-
stoppedTimestamp
-
bridgeExceptionCounter
protected final org.apache.activemq.management.CountStatisticImpl bridgeExceptionCounter -
networkBridgeStatistics
-
serviceSupport
protected org.apache.activemq.util.ServiceSupport serviceSupport
-
-
Constructor Details
-
NetworkConnector
public NetworkConnector() -
NetworkConnector
-
-
Method Details
-
getUri
-
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
-
getDurableTopicDestinations
public static org.apache.activemq.command.ActiveMQDestination[] getDurableTopicDestinations(Set<org.apache.activemq.command.ActiveMQDestination> durableDestinations) -
start
-
stop
-
handleStart
-
handleStop
-
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
-
getStartedTimestamp
public long getStartedTimestamp() -
getStoppedTimestamp
public long getStoppedTimestamp() -
getBridgeExceptionCounter
public org.apache.activemq.management.CountStatistic getBridgeExceptionCounter() -
getLocalExceptionCounter
public org.apache.activemq.management.CountStatistic getLocalExceptionCounter() -
getRemoteExceptionCounter
public org.apache.activemq.management.CountStatistic getRemoteExceptionCounter() -
getNetworkBridgeStatistics
- Returns:
- the connector-level statistics that aggregate every bridge's statistics.
A bridge sets this as the parent of its own
NetworkBridgeStatisticsso the counts roll up automatically.
-