Package 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
-
-
Field Summary
Fields Modifier and Type Field Description protected ManagedRegionBrokerbrokerprotected StringclientIdprotected ProducerInfoinfoprotected ActiveMQDestinationlastUsedDestinationprotected StringuserName
-
Constructor Summary
Constructors Constructor Description ProducerView(ProducerInfo info, String clientId, String userName, ManagedRegionBroker broker)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetClientId()StringgetConnectionId()StringgetDestinationName()intgetPercentageBlocked()StringgetProducerId()intgetProducerWindowSize()longgetSentCount()longgetSessionId()longgetTotalTimeBlocked()StringgetUserName()Returns the User Name used to authorize creation of this Producer.booleanisDestinationQueue()booleanisDestinationTemporary()booleanisDestinationTopic()booleanisDispatchAsync()Deprecated.booleanisProducerBlocked()voidresetFlowControlStats()voidresetStatistics()StringtoString()
-
-
-
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:
getClientIdin interfaceProducerViewMBean- Returns:
- the clientId of the Connection the Producer is on
-
getConnectionId
public String getConnectionId()
- Specified by:
getConnectionIdin interfaceProducerViewMBean- Returns:
- the id of the Connection the Producer is on
-
getSessionId
public long getSessionId()
- Specified by:
getSessionIdin interfaceProducerViewMBean- Returns:
- the id of the Session the Producer is on
-
getProducerId
public String getProducerId()
- Specified by:
getProducerIdin interfaceProducerViewMBean- Returns:
- the id of Producer.
-
getDestinationName
public String getDestinationName()
- Specified by:
getDestinationNamein interfaceProducerViewMBean- Returns:
- the destination name
-
isDestinationQueue
public boolean isDestinationQueue()
- Specified by:
isDestinationQueuein interfaceProducerViewMBean- Returns:
- true if the destination is a Queue
-
isDestinationTopic
public boolean isDestinationTopic()
- Specified by:
isDestinationTopicin interfaceProducerViewMBean- Returns:
- true of the destination is a Topic
-
isDestinationTemporary
public boolean isDestinationTemporary()
- Specified by:
isDestinationTemporaryin interfaceProducerViewMBean- Returns:
- true if the destination is temporary
-
getProducerWindowSize
public int getProducerWindowSize()
- Specified by:
getProducerWindowSizein interfaceProducerViewMBean- Returns:
- the windows size configured for the producer
-
isDispatchAsync
@Deprecated public boolean isDispatchAsync()
Deprecated.- Specified by:
isDispatchAsyncin interfaceProducerViewMBean- Returns:
- if the Producer is configured for Async dispatch
-
getUserName
public String getUserName()
Description copied from interface:ProducerViewMBeanReturns 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:
getUserNamein interfaceProducerViewMBean- Returns:
- the name of the user that created this Producer
-
isProducerBlocked
public boolean isProducerBlocked()
- Specified by:
isProducerBlockedin interfaceProducerViewMBean
-
getTotalTimeBlocked
public long getTotalTimeBlocked()
- Specified by:
getTotalTimeBlockedin interfaceProducerViewMBean
-
getPercentageBlocked
public int getPercentageBlocked()
- Specified by:
getPercentageBlockedin interfaceProducerViewMBean
-
resetFlowControlStats
public void resetFlowControlStats()
- Specified by:
resetFlowControlStatsin interfaceProducerViewMBean
-
resetStatistics
public void resetStatistics()
- Specified by:
resetStatisticsin interfaceProducerViewMBean
-
getSentCount
public long getSentCount()
- Specified by:
getSentCountin interfaceProducerViewMBean
-
-