You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2013/03/14 15:48:26 UTC
svn commit: r1456455 - in /activemq/activemq-apollo/trunk:
apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Connector.scala
apollo-dto/src/main/java/org/apache/activemq/apollo/dto/AcceptingConnectorDTO.java
Author: chirino
Date: Thu Mar 14 14:48:26 2013
New Revision: 1456455
URL: http://svn.apache.org/r1456455
Log:
Switch from boolean to Boolean for the DTO fields so that they are not marked as required in the generated XSD.
Modified:
activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Connector.scala
activemq/activemq-apollo/trunk/apollo-dto/src/main/java/org/apache/activemq/apollo/dto/AcceptingConnectorDTO.java
Modified: activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Connector.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Connector.scala?rev=1456455&r1=1456454&r2=1456455&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Connector.scala (original)
+++ activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Connector.scala Thu Mar 14 14:48:26 2013
@@ -237,8 +237,8 @@ class AcceptingConnector(val broker:Brok
def mem_size(value:String) = Option(value).map(MemoryPropertyEditor.parse(_).toInt)
assert(config!=null, "Connector must be configured before it is started.")
- receive_buffer_auto_tune = config.receive_buffer_auto_tune
- send_buffer_auto_tune = config.send_buffer_auto_tune
+ receive_buffer_auto_tune = config.receive_buffer_auto_tune.getOrElse(true)
+ send_buffer_auto_tune = config.send_buffer_auto_tune.getOrElse(true)
accepted.set(0)
connected.set(0)
Modified: activemq/activemq-apollo/trunk/apollo-dto/src/main/java/org/apache/activemq/apollo/dto/AcceptingConnectorDTO.java
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-dto/src/main/java/org/apache/activemq/apollo/dto/AcceptingConnectorDTO.java?rev=1456455&r1=1456454&r2=1456455&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-dto/src/main/java/org/apache/activemq/apollo/dto/AcceptingConnectorDTO.java (original)
+++ activemq/activemq-apollo/trunk/apollo-dto/src/main/java/org/apache/activemq/apollo/dto/AcceptingConnectorDTO.java Thu Mar 14 14:48:26 2013
@@ -60,17 +60,17 @@ public class AcceptingConnectorDTO exten
public String send_buffer_size;
/**
- * Sets whether or not to auto tune the internal socket receive buffer (aka the socket's SO_RCVBUF)
+ * Sets whether or not to auto tune the internal socket receive buffer (aka the socket's SO_RCVBUF). Defaults to true.
*/
@XmlAttribute(name="receive_buffer_auto_tune")
- public boolean receive_buffer_auto_tune = true;
+ public Boolean receive_buffer_auto_tune;
/**
- * Sets whether or not to auto tune the internal socket send buffer (aka the socket's SO_SNDBUF)
+ * Sets whether or not to auto tune the internal socket send buffer (aka the socket's SO_SNDBUF). Defaults to true.
*/
@XmlAttribute(name="send_buffer_auto_tune")
- public boolean send_buffer_auto_tune = true;
+ public Boolean send_buffer_auto_tune;
/**
* A broker accepts connections via it's configured connectors.