public class ConnectionView extends Object implements ConnectionViewMBean
| Constructor and Description |
|---|
ConnectionView(Connection connection) |
ConnectionView(Connection connection,
ManagementContext managementContext) |
| Modifier and Type | Method and Description |
|---|---|
int |
getActiveTransactionCount()
Returns the number of active transactions established on this Connection.
|
String |
getClientId()
Returns the client identifier for this connection
|
String |
getConnectionId() |
ObjectName[] |
getConsumers()
Returns the ObjectNames of all the Consumers created by this Connection.
|
int |
getDispatchQueueSize()
Returns the number of messages to be dispatched to this connection
|
Long |
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 connection
|
String |
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
|
void |
setUserName(String userName) |
void |
start() |
void |
stop() |
public ConnectionView(Connection connection)
public ConnectionView(Connection connection, ManagementContext managementContext)
public boolean isSlow()
isSlow in interface ConnectionViewMBeanpublic boolean isBlocked()
isBlocked in interface ConnectionViewMBeanpublic boolean isConnected()
isConnected in interface ConnectionViewMBeanpublic boolean isActive()
isActive in interface ConnectionViewMBeanpublic int getDispatchQueueSize()
ConnectionViewMBeangetDispatchQueueSize in interface ConnectionViewMBeanpublic void resetStatistics()
resetStatistics in interface ConnectionViewMBeanpublic String getRemoteAddress()
ConnectionViewMBeangetRemoteAddress in interface ConnectionViewMBeanpublic String getClientId()
ConnectionViewMBeangetClientId in interface ConnectionViewMBeanpublic String getConnectionId()
public String getUserName()
ConnectionViewMBeangetUserName in interface ConnectionViewMBeanpublic void setUserName(String userName)
public ObjectName[] getConsumers()
ConnectionViewMBeangetConsumers in interface ConnectionViewMBeanpublic ObjectName[] getProducers()
ConnectionViewMBeangetProducers in interface ConnectionViewMBeanpublic int getActiveTransactionCount()
ConnectionViewMBeangetActiveTransactionCount in interface ConnectionViewMBeanpublic Long getOldestActiveTransactionDuration()
ConnectionViewMBeangetOldestActiveTransactionDuration in interface ConnectionViewMBeanCopyright © 2005–2016 FuseSource, Corp.. All rights reserved.