public class ConnectionView extends Object implements ConnectionViewMBean
Constructor and Description |
---|
ConnectionView(Connection connection) |
ConnectionView(Connection connection,
ManagementContext managementContext) |
Modifier and Type | Method and Description |
---|---|
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
|
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 void start() throws Exception
public boolean isSlow()
isSlow
in interface ConnectionViewMBean
public boolean isBlocked()
isBlocked
in interface ConnectionViewMBean
public boolean isConnected()
isConnected
in interface ConnectionViewMBean
public boolean isActive()
isActive
in interface ConnectionViewMBean
public int getDispatchQueueSize()
ConnectionViewMBean
getDispatchQueueSize
in interface ConnectionViewMBean
public void resetStatistics()
resetStatistics
in interface ConnectionViewMBean
public String getRemoteAddress()
ConnectionViewMBean
getRemoteAddress
in interface ConnectionViewMBean
public String getConnectionId()
public String getUserName()
ConnectionViewMBean
getUserName
in interface ConnectionViewMBean
public void setUserName(String userName)
public ObjectName[] getConsumers()
ConnectionViewMBean
getConsumers
in interface ConnectionViewMBean
public ObjectName[] getProducers()
ConnectionViewMBean
getProducers
in interface ConnectionViewMBean
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.