org.apache.activemq.broker.jmx
Interface ConnectionViewMBean

All Superinterfaces:
Service
All Known Implementing Classes:
ConnectionView

public interface ConnectionViewMBean
extends Service


Method Summary
 String getClientId()
          Returns the client identifier for this connection
 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
 
Methods inherited from interface org.apache.activemq.Service
start, stop
 

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.


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.