|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.broker.jmx.ConnectionView
public class ConnectionView
| Constructor Summary | |
|---|---|
ConnectionView(Connection connection)
|
|
ConnectionView(Connection connection,
ManagementContext managementContext)
|
|
| Method Summary | |
|---|---|
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 |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionView(Connection connection)
public ConnectionView(Connection connection,
ManagementContext managementContext)
| Method Detail |
|---|
public void start()
throws Exception
start in interface ServiceException
public void stop()
throws Exception
stop in interface ServiceExceptionpublic 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()
ConnectionViewMBean
getDispatchQueueSize in interface ConnectionViewMBeanpublic void resetStatistics()
resetStatistics in interface ConnectionViewMBeanpublic String getRemoteAddress()
ConnectionViewMBean
getRemoteAddress in interface ConnectionViewMBeanpublic String getClientId()
ConnectionViewMBean
getClientId in interface ConnectionViewMBeanpublic String getConnectionId()
public String getUserName()
ConnectionViewMBean
getUserName in interface ConnectionViewMBeanpublic void setUserName(String userName)
public ObjectName[] getConsumers()
ConnectionViewMBean
getConsumers in interface ConnectionViewMBeanpublic ObjectName[] getProducers()
ConnectionViewMBean
getProducers in interface ConnectionViewMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||