public class ConnectionView extends java.lang.Object implements ConnectionViewMBean
| Constructor and Description |
|---|
ConnectionView(Connection connection) |
ConnectionView(Connection connection,
ManagementContext managementContext) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClientId()
Returns the client identifier for this connection
|
java.lang.String |
getConnectionId() |
javax.management.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
|
javax.management.ObjectName[] |
getProducers()
Returns the ObjectNames of all the Producers created by this Connection.
|
java.lang.String |
getRemoteAddress()
Returns the source address for this connection
|
java.lang.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(java.lang.String userName) |
void |
start() |
void |
stop() |
public ConnectionView(Connection connection)
public ConnectionView(Connection connection, ManagementContext managementContext)
public void start()
throws java.lang.Exception
public void stop()
throws java.lang.Exception
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 java.lang.String getRemoteAddress()
ConnectionViewMBeangetRemoteAddress in interface ConnectionViewMBeanpublic java.lang.String getClientId()
ConnectionViewMBeangetClientId in interface ConnectionViewMBeanpublic java.lang.String getConnectionId()
public java.lang.String getUserName()
ConnectionViewMBeangetUserName in interface ConnectionViewMBeanpublic void setUserName(java.lang.String userName)
public javax.management.ObjectName[] getConsumers()
ConnectionViewMBeangetConsumers in interface ConnectionViewMBeanpublic javax.management.ObjectName[] getProducers()
ConnectionViewMBeangetProducers in interface ConnectionViewMBeanCopyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.