Package org.apache.activemq.broker.jmx
Class ConnectionView
java.lang.Object
org.apache.activemq.broker.jmx.ConnectionView
- All Implemented Interfaces:
ConnectionViewMBean,org.apache.activemq.Service
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionView(Connection connection) ConnectionView(Connection connection, ManagementContext managementContext) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of active transactions established on this Connection.Returns the client identifier for this connectionlongReturns the ObjectNames of all the Consumers created by this Connection.intReturns the number of messages to be dispatched to this connectionReturns the number of active transactions established on this Connection.Returns the ObjectNames of all the Producers created by this Connection.Returns the source address for this connectionReturns the User Name used to authorize creation of this Connection.booleanisActive()booleanbooleanbooleanbooleanbooleanbooleanisSlow()voidResets the statisticsvoidsetUserName(String userName) voidstart()voidstop()
-
Constructor Details
-
ConnectionView
-
ConnectionView
-
-
Method Details
-
start
- Specified by:
startin interfaceorg.apache.activemq.Service- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.apache.activemq.Service- Throws:
Exception
-
isSlow
public boolean isSlow()- Specified by:
isSlowin interfaceConnectionViewMBean- Returns:
- true if the Connection is slow
-
isBlocked
public boolean isBlocked()- Specified by:
isBlockedin interfaceConnectionViewMBean- Returns:
- if after being marked, the Connection is still writing
-
isConnected
public boolean isConnected()- Specified by:
isConnectedin interfaceConnectionViewMBean- Returns:
- true if the Connection is connected
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceConnectionViewMBean- Returns:
- true if the Connection is active
-
getDispatchQueueSize
public int getDispatchQueueSize()Description copied from interface:ConnectionViewMBeanReturns the number of messages to be dispatched to this connection- Specified by:
getDispatchQueueSizein interfaceConnectionViewMBean- Returns:
- the number of messages pending dispatch
-
resetStatistics
public void resetStatistics()Resets the statistics- Specified by:
resetStatisticsin interfaceConnectionViewMBean
-
getRemoteAddress
Description copied from interface:ConnectionViewMBeanReturns the source address for this connection- Specified by:
getRemoteAddressin interfaceConnectionViewMBean- Returns:
- the source address for this connection
-
getClientId
Description copied from interface:ConnectionViewMBeanReturns the client identifier for this connection- Specified by:
getClientIdin interfaceConnectionViewMBean- Returns:
- the the client identifier for this connection
-
getConnectionId
-
getUserName
Description copied from interface:ConnectionViewMBeanReturns the User Name used to authorize creation of this Connection. This value can be null if display of user name information is disabled.- Specified by:
getUserNamein interfaceConnectionViewMBean- Returns:
- the name of the user that created this Connection
-
setUserName
-
getConsumers
Description copied from interface:ConnectionViewMBeanReturns the ObjectNames of all the Consumers created by this Connection.- Specified by:
getConsumersin interfaceConnectionViewMBean- Returns:
- the ObjectNames of all Consumers created by this Connection.
-
getProducers
Description copied from interface:ConnectionViewMBeanReturns the ObjectNames of all the Producers created by this Connection.- Specified by:
getProducersin interfaceConnectionViewMBean- Returns:
- the ObjectNames of all Producers created by this Connection.
-
getActiveTransactionCount
public int getActiveTransactionCount()Description copied from interface:ConnectionViewMBeanReturns the number of active transactions established on this Connection.- Specified by:
getActiveTransactionCountin interfaceConnectionViewMBean- Returns:
- the number of active transactions established on this Connection..
-
getOldestActiveTransactionDuration
Description copied from interface:ConnectionViewMBeanReturns the number of active transactions established on this Connection.- Specified by:
getOldestActiveTransactionDurationin interfaceConnectionViewMBean- Returns:
- the number of active transactions established on this Connection..
-
isFaultTolerantConnection
public boolean isFaultTolerantConnection()- Specified by:
isFaultTolerantConnectionin interfaceConnectionViewMBean- Returns:
- true if the Connection is fault tolerant
-
isManageable
public boolean isManageable()- Specified by:
isManageablein interfaceConnectionViewMBean- Returns:
- true if the Connection is manageable
-
isNetworkConnection
public boolean isNetworkConnection()- Specified by:
isNetworkConnectionin interfaceConnectionViewMBean- Returns:
- true if the Connection is a network connection
-
getConnectedTimestamp
public long getConnectedTimestamp()- Specified by:
getConnectedTimestampin interfaceConnectionViewMBean- Returns:
- the time in ms since epoch when connection was established
-
getWireFormatInfo
- Specified by:
getWireFormatInfoin interfaceConnectionViewMBean- Returns:
- the WireFormatInfo information
-