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 java.lang.Object
implements ProducerViewMBean


Field Summary
protected  ManagedRegionBroker broker
           
protected  java.lang.String clientId
           
protected  ProducerInfo info
           
protected  ActiveMQDestination lastUsedDestination
           
protected  java.lang.String userName
           
 
Constructor Summary
ProducerView(ProducerInfo info, java.lang.String clientId, java.lang.String userName, ManagedRegionBroker broker)
           
 
Method Summary
 java.lang.String getClientId()
           
 java.lang.String getConnectionId()
           
 java.lang.String getDestinationName()
           
 java.lang.String getProducerId()
           
 int getProducerWindowSize()
           
 long getSessionId()
           
 java.lang.String getUserName()
          Returns the User Name used to authorize creation of this Producer.
 boolean isDestinationQueue()
           
 boolean isDestinationTemporary()
           
 boolean isDestinationTopic()
           
 boolean isDispatchAsync()
           
 java.lang.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 java.lang.String clientId

userName

protected final java.lang.String userName

broker

protected final ManagedRegionBroker broker

lastUsedDestination

protected ActiveMQDestination lastUsedDestination
Constructor Detail

ProducerView

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

getClientId

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

getConnectionId

public java.lang.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 java.lang.String getProducerId()
Specified by:
getProducerId in interface ProducerViewMBean
Returns:
the id of Producer.

getDestinationName

public java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
pretty print

getUserName

public java.lang.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


Copyright © 2005-2012. All Rights Reserved.