org.apache.activemq.broker.jmx
Class AbortSlowConsumerStrategyView

java.lang.Object
  extended by org.apache.activemq.broker.jmx.AbortSlowConsumerStrategyView
All Implemented Interfaces:
AbortSlowConsumerStrategyViewMBean

public class AbortSlowConsumerStrategyView
extends Object
implements AbortSlowConsumerStrategyViewMBean


Constructor Summary
AbortSlowConsumerStrategyView(ManagedRegionBroker managedRegionBroker, AbortSlowConsumerStrategy slowConsumerStrategy)
           
 
Method Summary
 void abortConnection(ObjectName consumerToAbort)
           
 void abortConnection(String objectNameOfConsumerToAbort)
           
 void abortConsumer(ObjectName consumerToAbort)
           
 void abortConsumer(String objectNameOfConsumerToAbort)
           
 long getCheckPeriod()
           
 long getMaxSlowCount()
           
 long getMaxSlowDuration()
           
 TabularData getSlowConsumers()
           
 void setMaxSlowCount(long maxSlowCount)
           
 void setMaxSlowDuration(long maxSlowDuration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbortSlowConsumerStrategyView

public AbortSlowConsumerStrategyView(ManagedRegionBroker managedRegionBroker,
                                     AbortSlowConsumerStrategy slowConsumerStrategy)
Method Detail

getMaxSlowCount

public long getMaxSlowCount()
Specified by:
getMaxSlowCount in interface AbortSlowConsumerStrategyViewMBean

setMaxSlowCount

public void setMaxSlowCount(long maxSlowCount)
Specified by:
setMaxSlowCount in interface AbortSlowConsumerStrategyViewMBean

getMaxSlowDuration

public long getMaxSlowDuration()
Specified by:
getMaxSlowDuration in interface AbortSlowConsumerStrategyViewMBean

setMaxSlowDuration

public void setMaxSlowDuration(long maxSlowDuration)
Specified by:
setMaxSlowDuration in interface AbortSlowConsumerStrategyViewMBean

getCheckPeriod

public long getCheckPeriod()
Specified by:
getCheckPeriod in interface AbortSlowConsumerStrategyViewMBean

getSlowConsumers

public TabularData getSlowConsumers()
                             throws OpenDataException
Specified by:
getSlowConsumers in interface AbortSlowConsumerStrategyViewMBean
Throws:
OpenDataException

abortConsumer

public void abortConsumer(ObjectName consumerToAbort)
Specified by:
abortConsumer in interface AbortSlowConsumerStrategyViewMBean

abortConnection

public void abortConnection(ObjectName consumerToAbort)
Specified by:
abortConnection in interface AbortSlowConsumerStrategyViewMBean

abortConsumer

public void abortConsumer(String objectNameOfConsumerToAbort)
Specified by:
abortConsumer in interface AbortSlowConsumerStrategyViewMBean

abortConnection

public void abortConnection(String objectNameOfConsumerToAbort)
Specified by:
abortConnection in interface AbortSlowConsumerStrategyViewMBean


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