Class AMQPFederationConsumerControlType
java.lang.Object
javax.management.StandardMBean
org.apache.activemq.artemis.core.management.impl.AbstractControl
org.apache.activemq.artemis.protocol.amqp.connect.federation.AMQPFederationConsumerControlType
- All Implemented Interfaces:
DynamicMBean, MBeanRegistration, AMQPFederationConsumerControl
public class AMQPFederationConsumerControlType
extends org.apache.activemq.artemis.core.management.impl.AbstractControl
implements AMQPFederationConsumerControl
Management object used for AMQP federation address and queue consumers to expose consumer state.
-
Field Summary
Fields inherited from class org.apache.activemq.artemis.core.management.impl.AbstractControl
storageManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MBeanAttributeInfo[]protected MBeanOperationInfo[]Gets the address that will be used for this federation consumer instance.Gets the filter string that will be used when creating the remote consumer.getFqqn()Gets the FQQN that comprises the address and queue where the remote consumer will be attached.longReturns the number of messages this federation consumer has received from the remote.intGets the priority value that will be requested for the remote consumer that is created.Gets the queue name that will be used for this federation consumer instance.getRole()Returns the type of federation consumer being represented.Gets the routing type that will be requested when creating a consumer on the remote server.Methods inherited from class org.apache.activemq.artemis.core.management.impl.AbstractControl
blockOnIO, clearIO, getMBeanInfo, sendMessage, tcclCall, tcclInvokeMethods inherited from class 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 Details
-
AMQPFederationConsumerControlType
public AMQPFederationConsumerControlType(AMQPFederationConsumer consumer) throws NotCompliantMBeanException - Throws:
NotCompliantMBeanException
-
-
Method Details
-
getMessagesReceived
public long getMessagesReceived()Description copied from interface:AMQPFederationConsumerControlReturns the number of messages this federation consumer has received from the remote.- Specified by:
getMessagesReceivedin interfaceAMQPFederationConsumerControl- Returns:
- the number of messages this federation consumer has received from the remote
-
getRole
Description copied from interface:AMQPFederationConsumerControlReturns the type of federation consumer being represented.- Specified by:
getRolein interfaceAMQPFederationConsumerControl- Returns:
- the type of federation consumer being represented
-
getQueueName
Description copied from interface:AMQPFederationConsumerControlGets the queue name that will be used for this federation consumer instance.For Queue federation this will be the name of the queue whose messages are being federated to this server instance. For an Address federation this will be an automatically generated name that should be unique to a given federation instance
- Specified by:
getQueueNamein interfaceAMQPFederationConsumerControl- Returns:
- the queue name associated with the federation consumer
-
getAddress
Description copied from interface:AMQPFederationConsumerControlGets the address that will be used for this federation consumer instance.For Queue federation this is the address under which the matching queue must reside. For Address federation this is the actual address whose messages are being federated.
- Specified by:
getAddressin interfaceAMQPFederationConsumerControl- Returns:
- the address associated with this federation consumer
-
getFqqn
Description copied from interface:AMQPFederationConsumerControlGets the FQQN that comprises the address and queue where the remote consumer will be attached.- Specified by:
getFqqnin interfaceAMQPFederationConsumerControl- Returns:
- provides the FQQN that can be used to address the consumer queue directly
-
getRoutingType
Description copied from interface:AMQPFederationConsumerControlGets the routing type that will be requested when creating a consumer on the remote server.- Specified by:
getRoutingTypein interfaceAMQPFederationConsumerControl- Returns:
- the routing type of the remote consumer
-
getFilterString
Description copied from interface:AMQPFederationConsumerControlGets the filter string that will be used when creating the remote consumer.For Queue federation this will be the filter that exists on the local queue that is requesting federation of messages from the remote. For address federation this filter will be used to restrict some movement of messages amongst federated server addresses.
- Specified by:
getFilterStringin interfaceAMQPFederationConsumerControl- Returns:
- the filter string in use for the federation consumer
-
getPriority
public int getPriority()Description copied from interface:AMQPFederationConsumerControlGets the priority value that will be requested for the remote consumer that is created.- Specified by:
getPriorityin interfaceAMQPFederationConsumerControl- Returns:
- the assigned consumer priority for the federation consumer
-
fillMBeanOperationInfo
- Specified by:
fillMBeanOperationInfoin classorg.apache.activemq.artemis.core.management.impl.AbstractControl
-
fillMBeanAttributeInfo
- Specified by:
fillMBeanAttributeInfoin classorg.apache.activemq.artemis.core.management.impl.AbstractControl
-