Class BrokerConnectionControlImpl
java.lang.Object
javax.management.StandardMBean
org.apache.activemq.artemis.core.management.impl.AbstractControl
org.apache.activemq.artemis.core.management.impl.BrokerConnectionControlImpl
- All Implemented Interfaces:
DynamicMBean,MBeanRegistration,ActiveMQComponentControl,BrokerConnectionControl
-
Field Summary
Fields inherited from class org.apache.activemq.artemis.core.management.impl.AbstractControl
storageManager -
Constructor Summary
ConstructorsConstructorDescriptionBrokerConnectionControlImpl(BrokerConnection brokerConnection, StorageManager storageManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected MBeanAttributeInfo[]protected MBeanOperationInfo[]getName()Returns the name of this broker connection.Returns the wire protocol this broker connection is using.intReturns the number of reconnection attempts configured for this broker connection.longReturns the retry interval configured for this broker connection.getUri()Returns the connection URI for this broker connection.getUser()Returns the user this broker connection is using.booleanReturns if this broker connection is currently connected to the remote.booleanReturnstrueif 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, tcclInvokeMethods 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 Details
-
BrokerConnectionControlImpl
public BrokerConnectionControlImpl(BrokerConnection brokerConnection, StorageManager storageManager) throws NotCompliantMBeanException - Throws:
NotCompliantMBeanException
-
-
Method Details
-
isStarted
public boolean isStarted()Description copied from interface:ActiveMQComponentControlReturnstrueif this component is started,falseelse..- Specified by:
isStartedin interfaceActiveMQComponentControl- Returns:
trueif this component is started,falseelse.
-
isConnected
public boolean isConnected()Description copied from interface:BrokerConnectionControlReturns if this broker connection is currently connected to the remote.- Specified by:
isConnectedin interfaceBrokerConnectionControl- Returns:
- if this broker connection is currently connected to the remote
-
start
Description copied from interface:ActiveMQComponentControlStarts this component.- Specified by:
startin interfaceActiveMQComponentControl- Throws:
Exception
-
stop
Description copied from interface:ActiveMQComponentControlStops this component.- Specified by:
stopin interfaceActiveMQComponentControl- Throws:
Exception
-
getName
Description copied from interface:BrokerConnectionControlReturns the name of this broker connection.- Specified by:
getNamein interfaceBrokerConnectionControl- Returns:
- the name of this broker connection
-
getUri
Description copied from interface:BrokerConnectionControlReturns the connection URI for this broker connection.- Specified by:
getUriin interfaceBrokerConnectionControl- Returns:
- the connection URI for this broker connection
-
getUser
Description copied from interface:BrokerConnectionControlReturns the user this broker connection is using.- Specified by:
getUserin interfaceBrokerConnectionControl- Returns:
- the user this broker connection is using
-
getProtocol
Description copied from interface:BrokerConnectionControlReturns the wire protocol this broker connection is using.- Specified by:
getProtocolin interfaceBrokerConnectionControl- Returns:
- the wire protocol this broker connection is using
-
getRetryInterval
public long getRetryInterval()Description copied from interface:BrokerConnectionControlReturns the retry interval configured for this broker connection.- Specified by:
getRetryIntervalin interfaceBrokerConnectionControl- Returns:
- the retry interval configured for this broker connection
-
getReconnectAttempts
public int getReconnectAttempts()Description copied from interface:BrokerConnectionControlReturns the number of reconnection attempts configured for this broker connection.- Specified by:
getReconnectAttemptsin interfaceBrokerConnectionControl- Returns:
- the number of reconnection attempts configured for this broker connection
-
fillMBeanOperationInfo
- Specified by:
fillMBeanOperationInfoin classAbstractControl
-
fillMBeanAttributeInfo
- Specified by:
fillMBeanAttributeInfoin classAbstractControl
-