Class BridgeControlImpl
- java.lang.Object
-
- javax.management.StandardMBean
-
- org.apache.activemq.artemis.core.management.impl.AbstractControl
-
- org.apache.activemq.artemis.core.management.impl.BridgeControlImpl
-
- All Implemented Interfaces:
DynamicMBean,MBeanRegistration,ActiveMQComponentControl,BridgeControl
public class BridgeControlImpl extends AbstractControl implements BridgeControl
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.core.management.impl.AbstractControl
storageManager
-
-
Constructor Summary
Constructors Constructor Description BridgeControlImpl(Bridge bridge, StorageManager storageManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MBeanAttributeInfo[]fillMBeanAttributeInfo()protected MBeanOperationInfo[]fillMBeanOperationInfo()StringgetDiscoveryGroupName()Returns the name of the discovery group used by this bridge.StringgetFilterString()Returns the filter string associated with this bridge.StringgetForwardingAddress()Returns the address this bridge will forward messages to.longgetMaxRetryInterval()Returns the max retry interval used by this bridge.longgetMessagesAcknowledged()The messagesAcknowledged counter is the number of messages actually received by the remote broker.longgetMessagesPendingAcknowledgement()The messagesPendingAcknowledgement counter is incremented when the bridge is has forwarded a message but is waiting acknowledgement from the other broker.Map<String,Object>getMetrics()The bridge metrics for this bridge The messagesPendingAcknowledgement counter is incremented when the bridge is has forwarded a message but is waiting acknowledgement from the other broker.StringgetName()Returns the name of this bridgeStringgetQueueName()Returns the name of the queue this bridge is consuming messages from.intgetReconnectAttempts()Returns the number of reconnection attempts used by this bridge.longgetRetryInterval()Returns the retry interval used by this bridge.doublegetRetryIntervalMultiplier()Returns the retry interval multiplier used by this bridge.String[]getStaticConnectors()Returns any list of static connectors used by this bridgeStringgetTransformerClassName()Return the name of the org.apache.activemq.artemis.core.server.cluster.Transformer implementation associated with this bridge.Map<String,String>getTransformerProperties()Returns a map of the properties configured for the transformer.StringgetTransformerPropertiesAsJSON()Returns a map of the properties configured for the transformer.booleanisHA()Returns whether this bridge is using high availabilitybooleanisStarted()Returnstrueif this component is started,falseelse.booleanisUseDuplicateDetection()Returns whether this bridge is using duplicate detection.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
-
BridgeControlImpl
public BridgeControlImpl(Bridge bridge, StorageManager storageManager) throws Exception
- Throws:
Exception
-
-
Method Detail
-
getStaticConnectors
public String[] getStaticConnectors() throws Exception
Description copied from interface:BridgeControlReturns any list of static connectors used by this bridge- Specified by:
getStaticConnectorsin interfaceBridgeControl- Throws:
Exception
-
getForwardingAddress
public String getForwardingAddress()
Description copied from interface:BridgeControlReturns the address this bridge will forward messages to.- Specified by:
getForwardingAddressin interfaceBridgeControl
-
getQueueName
public String getQueueName()
Description copied from interface:BridgeControlReturns the name of the queue this bridge is consuming messages from.- Specified by:
getQueueNamein interfaceBridgeControl
-
getDiscoveryGroupName
public String getDiscoveryGroupName()
Description copied from interface:BridgeControlReturns the name of the discovery group used by this bridge.- Specified by:
getDiscoveryGroupNamein interfaceBridgeControl
-
getFilterString
public String getFilterString()
Description copied from interface:BridgeControlReturns the filter string associated with this bridge.- Specified by:
getFilterStringin interfaceBridgeControl
-
getReconnectAttempts
public int getReconnectAttempts()
Description copied from interface:BridgeControlReturns the number of reconnection attempts used by this bridge.- Specified by:
getReconnectAttemptsin interfaceBridgeControl
-
getName
public String getName()
Description copied from interface:BridgeControlReturns the name of this bridge- Specified by:
getNamein interfaceBridgeControl
-
getRetryInterval
public long getRetryInterval()
Description copied from interface:BridgeControlReturns the retry interval used by this bridge.- Specified by:
getRetryIntervalin interfaceBridgeControl
-
getRetryIntervalMultiplier
public double getRetryIntervalMultiplier()
Description copied from interface:BridgeControlReturns the retry interval multiplier used by this bridge.- Specified by:
getRetryIntervalMultiplierin interfaceBridgeControl
-
getMaxRetryInterval
public long getMaxRetryInterval()
Description copied from interface:BridgeControlReturns the max retry interval used by this bridge.- Specified by:
getMaxRetryIntervalin interfaceBridgeControl
-
getTransformerClassName
public String getTransformerClassName()
Description copied from interface:BridgeControlReturn the name of the org.apache.activemq.artemis.core.server.cluster.Transformer implementation associated with this bridge.- Specified by:
getTransformerClassNamein interfaceBridgeControl
-
getTransformerPropertiesAsJSON
public String getTransformerPropertiesAsJSON()
Description copied from interface:BridgeControlReturns a map of the properties configured for the transformer.- Specified by:
getTransformerPropertiesAsJSONin interfaceBridgeControl
-
getTransformerProperties
public Map<String,String> getTransformerProperties()
Description copied from interface:BridgeControlReturns a map of the properties configured for the transformer.- Specified by:
getTransformerPropertiesin interfaceBridgeControl
-
isStarted
public boolean isStarted()
Description copied from interface:ActiveMQComponentControlReturnstrueif this component is started,falseelse.- Specified by:
isStartedin interfaceActiveMQComponentControl
-
isUseDuplicateDetection
public boolean isUseDuplicateDetection()
Description copied from interface:BridgeControlReturns whether this bridge is using duplicate detection.- Specified by:
isUseDuplicateDetectionin interfaceBridgeControl
-
isHA
public boolean isHA()
Description copied from interface:BridgeControlReturns whether this bridge is using high availability- Specified by:
isHAin interfaceBridgeControl
-
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:BridgeControlThe messagesPendingAcknowledgement counter is incremented when the bridge is has forwarded a message but is waiting acknowledgement from the other broker. This is a cumulative total and the number of outstanding pending messages can be computed by subtracting messagesAcknowledged from messagesPendingAcknowledgement.- Specified by:
getMessagesPendingAcknowledgementin interfaceBridgeControl
-
getMessagesAcknowledged
public long getMessagesAcknowledged()
Description copied from interface:BridgeControlThe messagesAcknowledged counter is the number of messages actually received by the remote broker. This is a cumulative total and the number of outstanding pending messages can be computed by subtracting messagesAcknowledged from messagesPendingAcknowledgement.- Specified by:
getMessagesAcknowledgedin interfaceBridgeControl
-
getMetrics
public Map<String,Object> getMetrics()
Description copied from interface:BridgeControlThe bridge metrics for this bridge 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.- Specified by:
getMetricsin interfaceBridgeControl
-
-