org.apache.activemq.broker.jmx
Class ConnectorView

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

public class ConnectorView
extends java.lang.Object
implements ConnectorViewMBean


Constructor Summary
ConnectorView(Connector connector)
           
 
Method Summary
 BrokerInfo getBrokerInfo()
           
 java.lang.String getBrokerName()
           
 java.lang.String getBrokerURL()
           
 long getDequeueCount()
          Returns the number of messages dequeued on this connector
 long getEnqueueCount()
          Returns the number of messages enqueued on this connector
 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

ConnectorView

public ConnectorView(Connector connector)
Method Detail

start

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

getBrokerName

public java.lang.String getBrokerName()

stop

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

getBrokerURL

public java.lang.String getBrokerURL()

getBrokerInfo

public BrokerInfo getBrokerInfo()

resetStatistics

public void resetStatistics()
Resets the statistics

Specified by:
resetStatistics in interface ConnectorViewMBean

getEnqueueCount

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

Specified by:
getEnqueueCount in interface ConnectorViewMBean
Returns:
the number of messages enqueued on this connector

getDequeueCount

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

Specified by:
getDequeueCount in interface ConnectorViewMBean
Returns:
the number of messages dequeued on this connector


Copyright © 2010 Apache Software Foundation. All Rights Reserved.