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 Object
implements ConnectorViewMBean


Constructor Summary
ConnectorView(Connector connector)
           
 
Method Summary
 int connectionCount()
          Returns the number of current connections
 void disableStatistics()
          disable statistics gathering
 void enableStatistics()
          enable statistics gathering
 BrokerInfo getBrokerInfo()
           
 String getBrokerName()
           
 String getBrokerURL()
           
 boolean isStatisticsEnabled()
          Returns true if statistics is enabled
 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 Exception
Specified by:
start in interface Service
Throws:
Exception

getBrokerName

public String getBrokerName()

stop

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

getBrokerURL

public String getBrokerURL()

getBrokerInfo

public BrokerInfo getBrokerInfo()

resetStatistics

public void resetStatistics()
Resets the statistics

Specified by:
resetStatistics in interface ConnectorViewMBean

enableStatistics

public void enableStatistics()
enable statistics gathering

Specified by:
enableStatistics in interface ConnectorViewMBean

disableStatistics

public void disableStatistics()
disable statistics gathering

Specified by:
disableStatistics in interface ConnectorViewMBean

isStatisticsEnabled

public boolean isStatisticsEnabled()
Returns true if statistics is enabled

Specified by:
isStatisticsEnabled in interface ConnectorViewMBean
Returns:
true if statistics is enabled

connectionCount

public int connectionCount()
Returns the number of current connections

Specified by:
connectionCount in interface ConnectorViewMBean


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