activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r938461 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/tcp/QualityOfServiceUtils.java
Date Tue, 27 Apr 2010 14:10:44 GMT
Author: dejanb
Date: Tue Apr 27 14:10:44 2010
New Revision: 938461

URL: http://svn.apache.org/viewvc?rev=938461&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQ-2636 - adding missing diff serv names

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/tcp/QualityOfServiceUtils.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/tcp/QualityOfServiceUtils.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/tcp/QualityOfServiceUtils.java?rev=938461&r1=938460&r2=938461&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/tcp/QualityOfServiceUtils.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/tcp/QualityOfServiceUtils.java
Tue Apr 27 14:10:44 2010
@@ -34,7 +34,15 @@ public class QualityOfServiceUtils {
         = new HashMap<String, Integer>();
     /** Common names used for Differentiated Services values. */
     static {
-        DIFF_SERV_NAMES.put("EF", 46);
+        
+        DIFF_SERV_NAMES.put("CS0", 0);
+        DIFF_SERV_NAMES.put("CS1", 8);
+        DIFF_SERV_NAMES.put("CS2", 16);
+        DIFF_SERV_NAMES.put("CS3", 24);
+        DIFF_SERV_NAMES.put("CS4", 32);
+        DIFF_SERV_NAMES.put("CS5", 40);
+        DIFF_SERV_NAMES.put("CS6", 48);
+        DIFF_SERV_NAMES.put("CS7", 56);
         DIFF_SERV_NAMES.put("AF11", 10);
         DIFF_SERV_NAMES.put("AF12", 12);
         DIFF_SERV_NAMES.put("AF13", 14);
@@ -47,6 +55,7 @@ public class QualityOfServiceUtils {
         DIFF_SERV_NAMES.put("AF41", 34);
         DIFF_SERV_NAMES.put("AF42", 36);
         DIFF_SERV_NAMES.put("AF43", 38);
+        DIFF_SERV_NAMES.put("EF", 46);
     }
 
     private static final int MAX_TOS = 255;



Mime
View raw message