org.apache.activemq.broker.jmx
Class ProducerView

java.lang.Object
  extended by org.apache.activemq.broker.jmx.ProducerView
All Implemented Interfaces:
ProducerViewMBean

public class ProducerView
extends Object
implements ProducerViewMBean


Field Summary
protected  ManagedRegionBroker broker
           
protected  String clientId
           
protected  ProducerInfo info
           
protected  ActiveMQDestination lastUsedDestination
           
protected  String userName
           
 
Constructor Summary
ProducerView(ProducerInfo info, String clientId, String userName, ManagedRegionBroker broker)
           
 
Method Summary
 String getClientId()
           
 String getConnectionId()
           
 String getDestinationName()
           
 int getPercentageBlocked()
           
 String getProducerId()
           
 int getProducerWindowSize()
           
 long getSessionId()
           
 long getTotalTimeBlocked()
           
 String getUserName()
          Returns the User Name used to authorize creation of this Producer.
 boolean isDestinationQueue()
           
 boolean isDestinationTemporary()
           
 boolean isDestinationTopic()
           
 boolean isDispatchAsync()
           
 boolean isProducerBlocked()
           
 void resetFlowControlStats()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

info

protected final ProducerInfo info

clientId

protected final String clientId

userName

protected final String userName

broker

protected final ManagedRegionBroker broker

lastUsedDestination

protected ActiveMQDestination lastUsedDestination
Constructor Detail

ProducerView

public ProducerView(ProducerInfo info,
                    String clientId,
                    String userName,
                    ManagedRegionBroker broker)
Method Detail

getClientId

public String getClientId()
Specified by:
getClientId in interface ProducerViewMBean
Returns:
the clientId of the Connection the Producer is on

getConnectionId

public String getConnectionId()
Specified by:
getConnectionId in interface ProducerViewMBean
Returns:
the id of the Connection the Producer is on

getSessionId

public long getSessionId()
Specified by:
getSessionId in interface ProducerViewMBean
Returns:
the id of the Session the Producer is on

getProducerId

public String getProducerId()
Specified by:
getProducerId in interface ProducerViewMBean
Returns:
the id of Producer.

getDestinationName

public String getDestinationName()
Specified by:
getDestinationName in interface ProducerViewMBean
Returns:
the destination name

isDestinationQueue

public boolean isDestinationQueue()
Specified by:
isDestinationQueue in interface ProducerViewMBean
Returns:
true if the destination is a Queue

isDestinationTopic

public boolean isDestinationTopic()
Specified by:
isDestinationTopic in interface ProducerViewMBean
Returns:
true of the destination is a Topic

isDestinationTemporary

public boolean isDestinationTemporary()
Specified by:
isDestinationTemporary in interface ProducerViewMBean
Returns:
true if the destination is temporary

getProducerWindowSize

public int getProducerWindowSize()
Specified by:
getProducerWindowSize in interface ProducerViewMBean

isDispatchAsync

public boolean isDispatchAsync()
Specified by:
isDispatchAsync in interface ProducerViewMBean

toString

public String toString()
Overrides:
toString in class Object
Returns:
pretty print

getUserName

public String getUserName()
Description copied from interface: ProducerViewMBean
Returns the User Name used to authorize creation of this Producer. This value can be null if display of user name information is disabled.

Specified by:
getUserName in interface ProducerViewMBean
Returns:
the name of the user that created this Producer

isProducerBlocked

public boolean isProducerBlocked()
Specified by:
isProducerBlocked in interface ProducerViewMBean

getTotalTimeBlocked

public long getTotalTimeBlocked()
Specified by:
getTotalTimeBlocked in interface ProducerViewMBean

getPercentageBlocked

public int getPercentageBlocked()
Specified by:
getPercentageBlocked in interface ProducerViewMBean

resetFlowControlStats

public void resetFlowControlStats()
Specified by:
resetFlowControlStats in interface ProducerViewMBean


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.