org.apache.activemq.broker.jmx
Class ProducerView
java.lang.Object
org.apache.activemq.broker.jmx.ProducerView
- All Implemented Interfaces:
- ProducerViewMBean
public class ProducerView
- extends Object
- implements ProducerViewMBean
info
protected final ProducerInfo info
clientId
protected final String clientId
userName
protected final String userName
broker
protected final ManagedRegionBroker broker
lastUsedDestination
protected ActiveMQDestination lastUsedDestination
ProducerView
public ProducerView(ProducerInfo info,
String clientId,
String userName,
ManagedRegionBroker broker)
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.