activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r1055822 - /activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Broker.scala
Date Thu, 06 Jan 2011 10:36:20 GMT
Author: rajdavies
Date: Thu Jan  6 10:36:20 2011
New Revision: 1055822

URL: http://svn.apache.org/viewvc?rev=1055822&view=rev
Log:
Added getFirstConnectorAddress() - useful for connecting to a Broker from a Junit test

Modified:
    activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Broker.scala

Modified: activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Broker.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Broker.scala?rev=1055822&r1=1055821&r2=1055822&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Broker.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Broker.scala
Thu Jan  6 10:36:20 2011
@@ -32,6 +32,7 @@ import ReporterLevel._
 import collection.mutable.LinkedHashMap
 import java.util.concurrent.{ThreadFactory, Executors, ConcurrentHashMap}
 import security.{AclAuthorizer, Authorizer, JaasAuthenticator, Authenticator}
+import java.net.InetSocketAddress
 
 /**
  * <p>
@@ -272,4 +273,8 @@ class Broker() extends BaseService {
     default_virtual_host
   }
 
+  //useful for testing
+  def getFirstConnectorAddress() : InetSocketAddress = connectors.head.transportServer.getSocketAddress
+
+
 }



Mime
View raw message