mirror of https://github.com/apache/activemq.git
The ProducerViewMBean should expose the ProducerId value. git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1134107 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a4b8c8ee1a
commit
6d48b4b077
|
@ -16,8 +16,6 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq.broker.jmx;
|
package org.apache.activemq.broker.jmx;
|
||||||
|
|
||||||
import javax.jms.Destination;
|
|
||||||
|
|
||||||
import org.apache.activemq.command.ActiveMQDestination;
|
import org.apache.activemq.command.ActiveMQDestination;
|
||||||
import org.apache.activemq.command.ProducerInfo;
|
import org.apache.activemq.command.ProducerInfo;
|
||||||
|
|
||||||
|
@ -56,6 +54,14 @@ public class ProducerView implements ProducerViewMBean {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getProducerId() {
|
||||||
|
if (info != null) {
|
||||||
|
return info.getProducerId().toString();
|
||||||
|
}
|
||||||
|
return "NOTSET";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getDestinationName() {
|
public String getDestinationName() {
|
||||||
if (info != null && info.getDestination() != null) {
|
if (info != null && info.getDestination() != null) {
|
||||||
|
|
|
@ -36,6 +36,12 @@ public interface ProducerViewMBean {
|
||||||
@MBeanInfo("ID of the Session the Producer is on.")
|
@MBeanInfo("ID of the Session the Producer is on.")
|
||||||
long getSessionId();
|
long getSessionId();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the id of Producer.
|
||||||
|
*/
|
||||||
|
@MBeanInfo("ID of the Producer.")
|
||||||
|
String getProducerId();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the destination name
|
* @return the destination name
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue