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 2011/07/17 16:43:01 UTC
svn commit: r1147637 - in /activemq/activemq-apollo/trunk:
apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/protocol/
apollo-openwire/src/main/scala/org/apache/activemq/apollo/openwire/
apollo-stomp/src/main/scala/org/apache/activemq/apol...
Author: chirino
Date: Sun Jul 17 14:43:00 2011
New Revision: 1147637
URL: http://svn.apache.org/viewvc?rev=1147637&view=rev
Log:
Added a getWriteBufferSize and getReadBufferSize methods to the ProtocolCodedc interface.
Modified:
activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/protocol/AnyProtocol.scala
activemq/activemq-apollo/trunk/apollo-openwire/src/main/scala/org/apache/activemq/apollo/openwire/OpenwireCodec.scala
activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompCodec.scala
activemq/activemq-apollo/trunk/apollo-transport/src/main/java/org/apache/activemq/apollo/transport/ProtocolCodec.java
Modified: activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/protocol/AnyProtocol.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/protocol/AnyProtocol.scala?rev=1147637&r1=1147636&r2=1147637&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/protocol/AnyProtocol.scala (original)
+++ activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/protocol/AnyProtocol.scala Sun Jul 17 14:43:00 2011
@@ -136,6 +136,11 @@ class AnyProtocolCodec(val protocols: Ar
def getLastWriteSize = 0
def getLastReadSize = 0
+
+ def getWriteBufferSize = 0
+
+ def getReadBufferSize = buffer.capacity()
+
}
/**
Modified: activemq/activemq-apollo/trunk/apollo-openwire/src/main/scala/org/apache/activemq/apollo/openwire/OpenwireCodec.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-openwire/src/main/scala/org/apache/activemq/apollo/openwire/OpenwireCodec.scala?rev=1147637&r1=1147636&r2=1147637&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-openwire/src/main/scala/org/apache/activemq/apollo/openwire/OpenwireCodec.scala (original)
+++ activemq/activemq-apollo/trunk/apollo-openwire/src/main/scala/org/apache/activemq/apollo/openwire/OpenwireCodec.scala Sun Jul 17 14:43:00 2011
@@ -205,4 +205,8 @@ class OpenwireCodec extends ProtocolCode
def getLastWriteSize = 0
def getLastReadSize = 0
+
+ def getWriteBufferSize = write_buffer_size
+
+ def getReadBufferSize = read_buffer_size
}
Modified: activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompCodec.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompCodec.scala?rev=1147637&r1=1147636&r2=1147637&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompCodec.scala (original)
+++ activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompCodec.scala Sun Jul 17 14:43:00 2011
@@ -600,4 +600,8 @@ class StompCodec extends ProtocolCodec {
}
}
+ def getWriteBufferSize = write_buffer_size
+
+ def getReadBufferSize = read_buffer_size
+
}
Modified: activemq/activemq-apollo/trunk/apollo-transport/src/main/java/org/apache/activemq/apollo/transport/ProtocolCodec.java
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-transport/src/main/java/org/apache/activemq/apollo/transport/ProtocolCodec.java?rev=1147637&r1=1147636&r2=1147637&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-transport/src/main/java/org/apache/activemq/apollo/transport/ProtocolCodec.java (original)
+++ activemq/activemq-apollo/trunk/apollo-transport/src/main/java/org/apache/activemq/apollo/transport/ProtocolCodec.java Sun Jul 17 14:43:00 2011
@@ -71,6 +71,7 @@ public interface ProtocolCodec {
* @return The number of bytes read in the last read io performed.
*/
public int getLastReadSize();
+ public int getReadBufferSize();
///////////////////////////////////////////////////////////////////
@@ -120,5 +121,6 @@ public interface ProtocolCodec {
*/
public int getLastWriteSize();
+ public int getWriteBufferSize();
}