mirror of https://github.com/apache/activemq.git
applied patch from Jason Sherman for AMQ-753 to expose the remote connection address in JMX - many thanks!
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@415307 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0f1dccee37
commit
140daf436c
|
@ -56,6 +56,11 @@ public class BlockingQueueTransport extends TransportSupport {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
public String getRemoteAddress() {
|
||||
return "blockingQueue";
|
||||
}
|
||||
|
||||
protected void doStart() throws Exception {
|
||||
}
|
||||
|
||||
|
|
|
@ -120,8 +120,7 @@ public class HttpTransport extends HttpTransportSupport {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Implementation methods
|
||||
// -------------------------------------------------------------------------
|
||||
|
|
|
@ -41,6 +41,10 @@ public abstract class HttpTransportSupport extends TransportThreadSupport {
|
|||
|
||||
// Properties
|
||||
// -------------------------------------------------------------------------
|
||||
public String getRemoteAddress() {
|
||||
return remoteUrl.toString();
|
||||
}
|
||||
|
||||
public URI getRemoteUrl() {
|
||||
return remoteUrl;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue