Package org.apache.activemq.broker.jmx
Class ProducerView
java.lang.Object
org.apache.activemq.broker.jmx.ProducerView
- All Implemented Interfaces:
ProducerViewMBean
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ManagedRegionBrokerprotected final Stringprotected final org.apache.activemq.command.ProducerInfoprotected org.apache.activemq.command.ActiveMQDestinationprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionProducerView(org.apache.activemq.command.ProducerInfo info, String clientId, String userName, ManagedRegionBroker broker) -
Method Summary
Modifier and TypeMethodDescriptionintintlonglonglongReturns the User Name used to authorize creation of this Producer.booleanbooleanbooleanbooleanDeprecated.booleanvoidvoidtoString()
-
Field Details
-
info
protected final org.apache.activemq.command.ProducerInfo info -
clientId
-
userName
-
broker
-
lastUsedDestination
protected org.apache.activemq.command.ActiveMQDestination lastUsedDestination
-
-
Constructor Details
-
ProducerView
public ProducerView(org.apache.activemq.command.ProducerInfo info, String clientId, String userName, ManagedRegionBroker broker)
-
-
Method Details
-
getClientId
- Specified by:
getClientIdin interfaceProducerViewMBean- Returns:
- the clientId of the Connection the Producer is on
-
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
- Specified by:
getProducerIdin interfaceProducerViewMBean- Returns:
- the id of Producer.
-
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.- Specified by:
isDispatchAsyncin interfaceProducerViewMBean- Returns:
- if the Producer is configured for Async dispatch
-
toString
-
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
-