Interface ClusterConnectionControl

All Superinterfaces:
ActiveMQComponentControl

public interface ClusterConnectionControl extends ActiveMQComponentControl
A ClusterConnectionControl is used to manage a cluster connection.
  • Method Details

    • getName

      String getName()
      Returns the configuration name of this cluster connection.
      Returns:
      the configuration name of this cluster connection
    • getAddress

      String getAddress()
      Returns the address used by this cluster connection.
      Returns:
      the address used by this cluster connection
    • getNodeID

      String getNodeID()
      Returns the node ID used by this cluster connection.
      Returns:
      the node ID used by this cluster connection
    • isDuplicateDetection

      boolean isDuplicateDetection()
      Returns whether this cluster connection use duplicate detection.
      Returns:
      whether this cluster connection use duplicate detection
    • getMessageLoadBalancingType

      String getMessageLoadBalancingType()
      Returns the type of message load balancing strategy this bridge will use.
      Returns:
      the type of message load balancing strategy this bridge will use
    • getTopology

      String getTopology()
      Returns the Topology that this Cluster Connection knows about.
      Returns:
      the Topology that this Cluster Connection knows about
    • getMaxHops

      int getMaxHops()
      Returns the maximum number of hops used by this cluster connection.
      Returns:
      the maximum number of hops used by this cluster connection
    • getStaticConnectors

      Object[] getStaticConnectors()
      Returns the list of static connectors.
      Returns:
      the list of static connectors
    • getStaticConnectorsAsJSON

      String getStaticConnectorsAsJSON() throws Exception
      Returns the list of static connectors as JSON.
      Returns:
      the list of static connectors as JSON
      Throws:
      Exception
    • getDiscoveryGroupName

      String getDiscoveryGroupName()
      Returns the name of the discovery group used by this cluster connection.
      Returns:
      the name of the discovery group used by this cluster connection
    • getRetryInterval

      long getRetryInterval()
      Returns the connection retry interval used by this cluster connection.
      Returns:
      the connection retry interval used by this cluster connection
    • getNodes

      Map<String,String> getNodes() throws Exception
      Returns a map of the nodes connected to this cluster connection; keys are node IDs, values are the addresses used to connect to the nodes.
      Returns:
      a map of the nodes connected to this cluster connection; keys are node IDs, values are the addresses used to connect to the nodes
      Throws:
      Exception
    • getMessagesPendingAcknowledgement

      long getMessagesPendingAcknowledgement()
      The messagesPendingAcknowledgement counter is incremented when any bridge in the cluster connection has forwarded a message and is waiting acknowledgement from the other broker. (aggregate over all bridges)

      This is a cumulative total and the number of outstanding pending messages for the cluster connection can be computed by subtracting messagesAcknowledged from messagesPendingAcknowledgement.

    • getMessagesAcknowledged

      long getMessagesAcknowledged()
      The messagesAcknowledged counter is the number of messages actually received by a remote broker for all bridges in this cluster connection

      This is a cumulative total and the number of outstanding pending messages for the cluster connection can be computed by subtracting messagesAcknowledged from messagesPendingAcknowledgement.

    • getMetrics

      Map<String,Object> getMetrics()
      The current metrics for this cluster connection (aggregate over all bridges to other nodes)

      The messagesPendingAcknowledgement counter is incremented when any bridge in the cluster connection has forwarded a message and is waiting acknowledgement from the other broker.

      The messagesAcknowledged counter is the number of messages actually received by a remote broker for all bridges in this cluster connection

    • getBridgeMetrics

      Map<String,Object> getBridgeMetrics(String nodeId) throws Exception
      The bridge metrics for the given node in the cluster connection

      The messagesPendingAcknowledgement counter is incremented when the bridge is has forwarded a message but is waiting acknowledgement from the other broker. The messagesAcknowledged counter is the number of messages actually received by the remote broker for this bridge.

      Throws:
      Exception
    • getProducerWindowSize

      long getProducerWindowSize()