org.apache.activemq.artemis.api.core.management

## Interface ClusterConnectionControl

- All Superinterfaces:
    ActiveMQComponentControl

      public interface ClusterConnectionControl
      extends ActiveMQComponentControl

  A ClusterConnectionControl is used to manage a cluster connection.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getAddress()` Returns the address used by this cluster connection.
    `String` | `getDiscoveryGroupName()` Returns the name of the discovery group used by this cluster connection.
    `int` | `getMaxHops()` Returns the maximum number of hops used by this cluster connection.
    `String` | `getMessageLoadBalancingType()` Return whether this cluster connection forward messages when it has no local consumers.
    `String` | `getName()` Returns the configuration name of this cluster connection.
    `String` | `getNodeID()` Returns the node ID used by this cluster connection.
    `Map<String,String>` | `getNodes()` Returns a map of the nodes connected to this cluster connection.
    `long` | `getRetryInterval()` Returns the connection retry interval used by this cluster connection.
    `Object[]` | `getStaticConnectors()` Returns the list of static connectors
    `String` | `getStaticConnectorsAsJSON()` Returns the list of static connectors as JSON
    `String` | `getTopology()` Return the Topology that this Cluster Connection knows about
    `boolean` | `isDuplicateDetection()` Return whether this cluster connection use duplicate detection.

    - ### Methods inherited from interface org.apache.activemq.artemis.api.core.management.ActiveMQComponentControl

      `isStarted, start, stop`

- - ### Method Detail

    - #### getName

          String getName()

      Returns the configuration name of this cluster connection.

    - #### getAddress

          String getAddress()

      Returns the address used by this cluster connection.

    - #### getNodeID

          String getNodeID()

      Returns the node ID used by this cluster connection.

    - #### isDuplicateDetection

          boolean isDuplicateDetection()

      Return whether this cluster connection use duplicate detection.

    - #### getMessageLoadBalancingType

          String getMessageLoadBalancingType()

      Return whether this cluster connection forward messages when it has no local consumers.

    - #### getTopology

          String getTopology()

      Return the Topology that this Cluster Connection knows about

    - #### getMaxHops

          int getMaxHops()

      Returns the maximum number of hops used by this cluster connection.

    - #### getStaticConnectors

          Object[] getStaticConnectors()

      Returns the list of static connectors

    - #### getStaticConnectorsAsJSON

          String getStaticConnectorsAsJSON()
                                    throws Exception

      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.

    - #### getRetryInterval

          long getRetryInterval()

      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.
      Throws:
        `Exception`

Copyright © 2015. All rights reserved.