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 Details

    • localURI

      protected URI localURI
    • connectionFilter

      protected ConnectionFilter connectionFilter
    • bridges

      protected ConcurrentMap<URI,NetworkBridge> bridges
    • serviceSupport

      protected org.apache.activemq.util.ServiceSupport serviceSupport
  • Constructor Details

    • NetworkConnector

      public NetworkConnector()
    • NetworkConnector

      public NetworkConnector(URI localURI)
  • Method Details

    • getLocalUri

      public URI getLocalUri() throws URISyntaxException
      Throws:
      URISyntaxException
    • setLocalUri

      public void setLocalUri(URI localURI)
    • getDurableDestinations

      public Set<org.apache.activemq.command.ActiveMQDestination> 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

      public ConnectionFilter getConnectionFilter()
    • setConnectionFilter

      public void setConnectionFilter(ConnectionFilter connectionFilter)
    • configureBridge

      protected NetworkBridge configureBridge(DemandForwardingBridgeSupport result)
    • createLocalTransport

      protected org.apache.activemq.transport.Transport createLocalTransport() throws Exception
      Throws:
      Exception
    • getDurableTopicDestinations

      public static org.apache.activemq.command.ActiveMQDestination[] getDurableTopicDestinations(Set<org.apache.activemq.command.ActiveMQDestination> durableDestinations)
    • start

      public void start() throws Exception
      Specified by:
      start in interface org.apache.activemq.Service
      Throws:
      Exception
    • stop

      public void stop() throws Exception
      Specified by:
      stop in interface org.apache.activemq.Service
      Throws:
      Exception
    • handleStart

      protected void handleStart() throws Exception
      Throws:
      Exception
    • handleStop

      protected void handleStop(org.apache.activemq.util.ServiceStopper stopper) throws Exception
      Throws:
      Exception
    • isStarted

      public boolean isStarted()
    • isStopped

      public boolean isStopped()
    • isStopping

      public boolean isStopping()
    • getObjectName

      public ObjectName getObjectName()
    • setObjectName

      public void setObjectName(ObjectName objectName)
    • getBrokerService

      public BrokerService getBrokerService()
    • setBrokerService

      public void setBrokerService(BrokerService brokerService)
    • registerNetworkBridgeMBean

      protected void registerNetworkBridgeMBean(NetworkBridge bridge)
    • unregisterNetworkBridgeMBean

      protected void unregisterNetworkBridgeMBean(NetworkBridge bridge)
    • createNetworkBridgeObjectName

      protected ObjectName createNetworkBridgeObjectName(NetworkBridge bridge) throws MalformedObjectNameException
      Throws:
      MalformedObjectNameException
    • removeDemandSubscription

      public boolean removeDemandSubscription(org.apache.activemq.command.ConsumerId consumerId)
    • activeBridges

      public Collection<NetworkBridge> activeBridges()