org.apache.activemq.transport.tcp
Class QualityOfServiceUtils

java.lang.Object
  extended by org.apache.activemq.transport.tcp.QualityOfServiceUtils

public class QualityOfServiceUtils
extends Object

Utilities for determining the values for the bits in the headers of the outgoing TCP/IP packets that indicate Traffic Class for use in Quality of Service forwarding policies.


Constructor Summary
QualityOfServiceUtils()
           
 
Method Summary
static int getDSCP(String value)
           
static int getToS(int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QualityOfServiceUtils

public QualityOfServiceUtils()
Method Detail

getDSCP

public static int getDSCP(String value)
                   throws IllegalArgumentException
Parameters:
value - A potential value to be used for Differentiated Services.
Returns:
The corresponding Differentiated Services Code Point (DSCP).
Throws:
IllegalArgumentException - if the value does not correspond to a Differentiated Services Code Point or setting the DSCP is not supported.

getToS

public static int getToS(int value)
                  throws IllegalArgumentException
Parameters:
value - A potential value to be used for Type of Service.
Returns:
A valid value that can be used to set the Type of Service in the packet headers.
Throws:
IllegalArgumentException - if the value is not a legal Type of Service value.


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.