Class ClusterConnectionControlImpl
- java.lang.Object
-
- javax.management.StandardMBean
-
- org.apache.activemq.artemis.core.management.impl.AbstractControl
-
- org.apache.activemq.artemis.core.management.impl.ClusterConnectionControlImpl
-
- All Implemented Interfaces:
DynamicMBean,MBeanRegistration,ActiveMQComponentControl,ClusterConnectionControl
public class ClusterConnectionControlImpl extends AbstractControl implements ClusterConnectionControl
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.core.management.impl.AbstractControl
storageManager
-
-
Constructor Summary
Constructors Constructor Description ClusterConnectionControlImpl(ClusterConnection clusterConnection, StorageManager storageManager, ClusterConnectionConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MBeanAttributeInfo[]fillMBeanAttributeInfo()protected MBeanOperationInfo[]fillMBeanOperationInfo()StringgetAddress()Returns the address used by this cluster connection.Map<String,Object>getBridgeMetrics(String nodeId)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.StringgetDiscoveryGroupName()Returns the name of the discovery group used by this cluster connection.intgetMaxHops()Returns the maximum number of hops used by this cluster connection.StringgetMessageLoadBalancingType()Return the type of message load balancing strategy this bridge will use.longgetMessagesAcknowledged()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.longgetMessagesPendingAcknowledgement()The messagesPendingAcknowledgement counter is incremented when any bridge in the cluster connection has forwarded a message and is waiting acknowledgement from the other broker.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.StringgetName()Returns the configuration name of this cluster connection.StringgetNodeID()Returns the node ID used by this cluster connection.Map<String,String>getNodes()Returns a map of the nodes connected to this cluster connection.longgetRetryInterval()Returns the connection retry interval used by this cluster connection.String[]getStaticConnectors()Returns the list of static connectorsStringgetStaticConnectorsAsJSON()Returns the list of static connectors as JSONStringgetTopology()Return the Topology that this Cluster Connection knows aboutbooleanisDuplicateDetection()Return whether this cluster connection use duplicate detection.booleanisStarted()Returnstrueif this component is started,falseelse.voidstart()Starts this component.voidstop()Stops this component.-
Methods inherited from class org.apache.activemq.artemis.core.management.impl.AbstractControl
blockOnIO, clearIO, getMBeanInfo, sendMessage, tcclCall, tcclInvoke
-
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
-
-
-
-
Constructor Detail
-
ClusterConnectionControlImpl
public ClusterConnectionControlImpl(ClusterConnection clusterConnection, StorageManager storageManager, ClusterConnectionConfiguration configuration) throws Exception
- Throws:
Exception
-
-
Method Detail
-
getAddress
public String getAddress()
Description copied from interface:ClusterConnectionControlReturns the address used by this cluster connection.- Specified by:
getAddressin interfaceClusterConnectionControl
-
getDiscoveryGroupName
public String getDiscoveryGroupName()
Description copied from interface:ClusterConnectionControlReturns the name of the discovery group used by this cluster connection.- Specified by:
getDiscoveryGroupNamein interfaceClusterConnectionControl
-
getMaxHops
public int getMaxHops()
Description copied from interface:ClusterConnectionControlReturns the maximum number of hops used by this cluster connection.- Specified by:
getMaxHopsin interfaceClusterConnectionControl
-
getName
public String getName()
Description copied from interface:ClusterConnectionControlReturns the configuration name of this cluster connection.- Specified by:
getNamein interfaceClusterConnectionControl
-
getRetryInterval
public long getRetryInterval()
Description copied from interface:ClusterConnectionControlReturns the connection retry interval used by this cluster connection.- Specified by:
getRetryIntervalin interfaceClusterConnectionControl
-
getNodeID
public String getNodeID()
Description copied from interface:ClusterConnectionControlReturns the node ID used by this cluster connection.- Specified by:
getNodeIDin interfaceClusterConnectionControl
-
getStaticConnectors
public String[] getStaticConnectors()
Description copied from interface:ClusterConnectionControlReturns the list of static connectors- Specified by:
getStaticConnectorsin interfaceClusterConnectionControl
-
getStaticConnectorsAsJSON
public String getStaticConnectorsAsJSON() throws Exception
Description copied from interface:ClusterConnectionControlReturns the list of static connectors as JSON- Specified by:
getStaticConnectorsAsJSONin interfaceClusterConnectionControl- Throws:
Exception
-
isDuplicateDetection
public boolean isDuplicateDetection()
Description copied from interface:ClusterConnectionControlReturn whether this cluster connection use duplicate detection.- Specified by:
isDuplicateDetectionin interfaceClusterConnectionControl
-
getMessageLoadBalancingType
public String getMessageLoadBalancingType()
Description copied from interface:ClusterConnectionControlReturn the type of message load balancing strategy this bridge will use.- Specified by:
getMessageLoadBalancingTypein interfaceClusterConnectionControl
-
getTopology
public String getTopology()
Description copied from interface:ClusterConnectionControlReturn the Topology that this Cluster Connection knows about- Specified by:
getTopologyin interfaceClusterConnectionControl
-
getNodes
public Map<String,String> getNodes() throws Exception
Description copied from interface:ClusterConnectionControlReturns a map of the nodes connected to this cluster connection.
keys are node IDs, values are the addresses used to connect to the nodes.- Specified by:
getNodesin interfaceClusterConnectionControl- Throws:
Exception
-
isStarted
public boolean isStarted()
Description copied from interface:ActiveMQComponentControlReturnstrueif this component is started,falseelse.- Specified by:
isStartedin interfaceActiveMQComponentControl
-
start
public void start() throws ExceptionDescription copied from interface:ActiveMQComponentControlStarts this component.- Specified by:
startin interfaceActiveMQComponentControl- Throws:
Exception
-
stop
public void stop() throws ExceptionDescription copied from interface:ActiveMQComponentControlStops this component.- Specified by:
stopin interfaceActiveMQComponentControl- Throws:
Exception
-
fillMBeanOperationInfo
protected MBeanOperationInfo[] fillMBeanOperationInfo()
- Specified by:
fillMBeanOperationInfoin classAbstractControl
-
fillMBeanAttributeInfo
protected MBeanAttributeInfo[] fillMBeanAttributeInfo()
- Specified by:
fillMBeanAttributeInfoin classAbstractControl
-
getMessagesPendingAcknowledgement
public long getMessagesPendingAcknowledgement()
Description copied from interface:ClusterConnectionControlThe 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.- Specified by:
getMessagesPendingAcknowledgementin interfaceClusterConnectionControl
-
getMessagesAcknowledged
public long getMessagesAcknowledged()
Description copied from interface:ClusterConnectionControlThe 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.- Specified by:
getMessagesAcknowledgedin interfaceClusterConnectionControl
-
getMetrics
public Map<String,Object> getMetrics()
Description copied from interface:ClusterConnectionControlThe 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- Specified by:
getMetricsin interfaceClusterConnectionControl- Returns:
-
getBridgeMetrics
public Map<String,Object> getBridgeMetrics(String nodeId)
Description copied from interface:ClusterConnectionControlThe 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.- Specified by:
getBridgeMetricsin interfaceClusterConnectionControl
-
-