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 ManagedRegionBroker
broker
protected String
clientId
protected ProducerInfo
info
protected ActiveMQDestination
lastUsedDestination
protected String
userName
-
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 String
getClientId()
String
getConnectionId()
String
getDestinationName()
int
getPercentageBlocked()
String
getProducerId()
int
getProducerWindowSize()
long
getSentCount()
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()
Deprecated.boolean
isProducerBlocked()
void
resetFlowControlStats()
void
resetStatistics()
String
toString()
-
-
-
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 interfaceProducerViewMBean
- Returns:
- the clientId of the Connection the Producer is on
-
getConnectionId
public String getConnectionId()
- Specified by:
getConnectionId
in interfaceProducerViewMBean
- Returns:
- the id of the Connection the Producer is on
-
getSessionId
public long getSessionId()
- Specified by:
getSessionId
in interfaceProducerViewMBean
- Returns:
- the id of the Session the Producer is on
-
getProducerId
public String getProducerId()
- Specified by:
getProducerId
in interfaceProducerViewMBean
- Returns:
- the id of Producer.
-
getDestinationName
public String getDestinationName()
- Specified by:
getDestinationName
in interfaceProducerViewMBean
- Returns:
- the destination name
-
isDestinationQueue
public boolean isDestinationQueue()
- Specified by:
isDestinationQueue
in interfaceProducerViewMBean
- Returns:
- true if the destination is a Queue
-
isDestinationTopic
public boolean isDestinationTopic()
- Specified by:
isDestinationTopic
in interfaceProducerViewMBean
- Returns:
- true of the destination is a Topic
-
isDestinationTemporary
public boolean isDestinationTemporary()
- Specified by:
isDestinationTemporary
in interfaceProducerViewMBean
- Returns:
- true if the destination is temporary
-
getProducerWindowSize
public int getProducerWindowSize()
- Specified by:
getProducerWindowSize
in interfaceProducerViewMBean
- Returns:
- the windows size configured for the producer
-
isDispatchAsync
@Deprecated public boolean isDispatchAsync()
Deprecated.- Specified by:
isDispatchAsync
in interfaceProducerViewMBean
- Returns:
- if the Producer is configured for Async dispatch
-
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 interfaceProducerViewMBean
- Returns:
- the name of the user that created this Producer
-
isProducerBlocked
public boolean isProducerBlocked()
- Specified by:
isProducerBlocked
in interfaceProducerViewMBean
-
getTotalTimeBlocked
public long getTotalTimeBlocked()
- Specified by:
getTotalTimeBlocked
in interfaceProducerViewMBean
-
getPercentageBlocked
public int getPercentageBlocked()
- Specified by:
getPercentageBlocked
in interfaceProducerViewMBean
-
resetFlowControlStats
public void resetFlowControlStats()
- Specified by:
resetFlowControlStats
in interfaceProducerViewMBean
-
resetStatistics
public void resetStatistics()
- Specified by:
resetStatistics
in interfaceProducerViewMBean
-
getSentCount
public long getSentCount()
- Specified by:
getSentCount
in interfaceProducerViewMBean
-
-