org.apache.activemq.broker.jmx
Class ConnectionView

java.lang.Object
  extended by org.apache.activemq.broker.jmx.ConnectionView
All Implemented Interfaces:
ConnectionViewMBean, Service

public class ConnectionView
extends java.lang.Object
implements ConnectionViewMBean


Constructor Summary
ConnectionView(Connection connection)
           
 
Method Summary
 java.lang.String getConnectionId()
          Returns the JMS connection id for this connection
 long getDequeueCount()
          Returns the number of messages dequeued on this connection
 int getDispatchQueueSize()
          Returns the number of messages to be dispatched to this connection
 long getEnqueueCount()
          Returns the number of messages enqueued on this connection
 java.lang.String getRemoteAddress()
          Returns the source address for this connection
 boolean isActive()
           
 boolean isBlocked()
           
 boolean isConnected()
           
 boolean isSlow()
           
 void resetStatistics()
          Resets the statistics
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionView

public ConnectionView(Connection connection)
Method Detail

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface Service
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Specified by:
stop in interface Service
Throws:
java.lang.Exception

isSlow

public boolean isSlow()
Specified by:
isSlow in interface ConnectionViewMBean
Returns:
true if the Connection is slow

isBlocked

public boolean isBlocked()
Specified by:
isBlocked in interface ConnectionViewMBean
Returns:
if after being marked, the Connection is still writing

isConnected

public boolean isConnected()
Specified by:
isConnected in interface ConnectionViewMBean
Returns:
true if the Connection is connected

isActive

public boolean isActive()
Specified by:
isActive in interface ConnectionViewMBean
Returns:
true if the Connection is active

getDispatchQueueSize

public int getDispatchQueueSize()
Returns the number of messages to be dispatched to this connection

Specified by:
getDispatchQueueSize in interface ConnectionViewMBean

resetStatistics

public void resetStatistics()
Resets the statistics

Specified by:
resetStatistics in interface ConnectionViewMBean

getEnqueueCount

public long getEnqueueCount()
Returns the number of messages enqueued on this connection

Specified by:
getEnqueueCount in interface ConnectionViewMBean
Returns:
the number of messages enqueued on this connection

getDequeueCount

public long getDequeueCount()
Returns the number of messages dequeued on this connection

Specified by:
getDequeueCount in interface ConnectionViewMBean
Returns:
the number of messages dequeued on this connection

getRemoteAddress

public java.lang.String getRemoteAddress()
Description copied from interface: ConnectionViewMBean
Returns the source address for this connection

Specified by:
getRemoteAddress in interface ConnectionViewMBean
Returns:
the souce address for this connection

getConnectionId

public java.lang.String getConnectionId()
Description copied from interface: ConnectionViewMBean
Returns the JMS connection id for this connection

Specified by:
getConnectionId in interface ConnectionViewMBean
Returns:
the JMS connection id for this connection


Copyright © 2010 Apache Software Foundation. All Rights Reserved.