Class ConnectorView

java.lang.Object
org.apache.activemq.broker.jmx.ConnectorView
All Implemented Interfaces:
ConnectorViewMBean, org.apache.activemq.Service

public class ConnectorView extends Object implements ConnectorViewMBean
  • Constructor Details

    • ConnectorView

      public ConnectorView(Connector connector)
  • Method Details

    • start

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

      public String getBrokerName()
    • stop

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

      public String getBrokerURL()
    • getBrokerInfo

      public org.apache.activemq.command.BrokerInfo getBrokerInfo()
    • resetStatistics

      public void resetStatistics()
      Resets the statistics
      Specified by:
      resetStatistics in interface ConnectorViewMBean
    • enableStatistics

      public void enableStatistics()
      enable statistics gathering
      Specified by:
      enableStatistics in interface ConnectorViewMBean
    • disableStatistics

      public void disableStatistics()
      disable statistics gathering
      Specified by:
      disableStatistics in interface ConnectorViewMBean
    • isStatisticsEnabled

      public boolean isStatisticsEnabled()
      Returns true if statistics is enabled
      Specified by:
      isStatisticsEnabled in interface ConnectorViewMBean
      Returns:
      true if statistics is enabled
    • connectionCount

      public int connectionCount()
      Returns the number of current connections
      Specified by:
      connectionCount in interface ConnectorViewMBean
    • isUpdateClusterClients

      public boolean isUpdateClusterClients()
      Returns true if updating cluster client URL is enabled
      Specified by:
      isUpdateClusterClients in interface ConnectorViewMBean
      Returns:
      true if update cluster client URL is enabled
    • isRebalanceClusterClients

      public boolean isRebalanceClusterClients()
      Returns true if rebalancing cluster clients is enabled
      Specified by:
      isRebalanceClusterClients in interface ConnectorViewMBean
      Returns:
      true if rebalance cluster clients is enabled
    • isUpdateClusterClientsOnRemove

      public boolean isUpdateClusterClientsOnRemove()
      Returns true if updating cluster client URL when brokers are removed is enabled
      Specified by:
      isUpdateClusterClientsOnRemove in interface ConnectorViewMBean
      Returns:
      true if update cluster client URL when brokers are removed is enabled
    • getUpdateClusterFilter

      public String getUpdateClusterFilter()
      Specified by:
      getUpdateClusterFilter in interface ConnectorViewMBean
      Returns:
      The comma separated string of regex patterns to match broker names for cluster client updates
    • isAllowLinkStealingEnabled

      public boolean isAllowLinkStealingEnabled()
      Description copied from interface: ConnectorViewMBean
      Returns true if link stealing is enabled on this Connector
      Specified by:
      isAllowLinkStealingEnabled in interface ConnectorViewMBean
      Returns:
      true if link stealing is enabled.
    • getMaxConnectionExceededCount

      public long getMaxConnectionExceededCount()
      Specified by:
      getMaxConnectionExceededCount in interface ConnectorViewMBean
      Returns:
      The number of occurrences the max connection count has been exceed
    • isStarted

      public boolean isStarted()
      Specified by:
      isStarted in interface ConnectorViewMBean
      Returns:
      true if transport connector is started