org.apache.activemq.broker.jmx
Class ConnectionView
java.lang.Object
org.apache.activemq.broker.jmx.ConnectionView
- All Implemented Interfaces:
- ConnectionViewMBean, Service
public class ConnectionView
- extends java.lang.Object
- implements ConnectionViewMBean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionView
public ConnectionView(Connection connection)
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
resetStatistics
public void resetStatistics()
- Resets the statistics
- Specified by:
resetStatistics
in interface ConnectionViewMBean
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()
Copyright © 2005-2012. All Rights Reserved.