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:
James Strachan 2006-06-19 12:33:07 +00:00
parent 0f1dccee37
commit 140daf436c
3 changed files with 10 additions and 2 deletions

View File

@ -56,6 +56,11 @@ public class BlockingQueueTransport extends TransportSupport {
}
}
public String getRemoteAddress() {
return "blockingQueue";
}
protected void doStart() throws Exception {
}

View File

@ -120,8 +120,7 @@ public class HttpTransport extends HttpTransportSupport {
}
}
}
// Implementation methods
// -------------------------------------------------------------------------

View File

@ -41,6 +41,10 @@ public abstract class HttpTransportSupport extends TransportThreadSupport {
// Properties
// -------------------------------------------------------------------------
public String getRemoteAddress() {
return remoteUrl.toString();
}
public URI getRemoteUrl() {
return remoteUrl;
}