Package org.apache.activemq.broker.jmx
Interface ConnectionViewMBean
-
- All Superinterfaces:
Service
- All Known Implementing Classes:
ConnectionView
public interface ConnectionViewMBean extends Service
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getActiveTransactionCount()
Returns the number of active transactions established on this Connection.String
getClientId()
Returns the client identifier for this connectionObjectName[]
getConsumers()
Returns the ObjectNames of all the Consumers created by this Connection.int
getDispatchQueueSize()
Returns the number of messages to be dispatched to this connectionLong
getOldestActiveTransactionDuration()
Returns the number of active transactions established on this Connection.ObjectName[]
getProducers()
Returns the ObjectNames of all the Producers created by this Connection.String
getRemoteAddress()
Returns the source address for this connectionString
getUserName()
Returns the User Name used to authorize creation of this Connection.boolean
isActive()
boolean
isBlocked()
boolean
isConnected()
boolean
isSlow()
void
resetStatistics()
Resets the statistics
-
-
-
Method Detail
-
isSlow
boolean isSlow()
- Returns:
- true if the Connection is slow
-
isBlocked
boolean isBlocked()
- Returns:
- if after being marked, the Connection is still writing
-
isConnected
boolean isConnected()
- Returns:
- true if the Connection is connected
-
isActive
boolean isActive()
- Returns:
- true if the Connection is active
-
resetStatistics
void resetStatistics()
Resets the statistics
-
getRemoteAddress
String getRemoteAddress()
Returns the source address for this connection- Returns:
- the source address for this connection
-
getClientId
String getClientId()
Returns the client identifier for this connection- Returns:
- the the client identifier for this connection
-
getDispatchQueueSize
int getDispatchQueueSize()
Returns the number of messages to be dispatched to this connection- Returns:
- the number of messages pending dispatch
-
getUserName
String getUserName()
Returns the User Name used to authorize creation of this Connection. This value can be null if display of user name information is disabled.- Returns:
- the name of the user that created this Connection
-
getConsumers
ObjectName[] getConsumers()
Returns the ObjectNames of all the Consumers created by this Connection.- Returns:
- the ObjectNames of all Consumers created by this Connection.
-
getProducers
ObjectName[] getProducers()
Returns the ObjectNames of all the Producers created by this Connection.- Returns:
- the ObjectNames of all Producers created by this Connection.
-
getActiveTransactionCount
int getActiveTransactionCount()
Returns the number of active transactions established on this Connection.- Returns:
- the number of active transactions established on this Connection..
-
getOldestActiveTransactionDuration
Long getOldestActiveTransactionDuration()
Returns the number of active transactions established on this Connection.- Returns:
- the number of active transactions established on this Connection..
-
-