jtc
Class BFifoQDisc

java.lang.Object
  |
  +--jtc.QDisc
        |
        +--jtc.BFifoQDisc

public class BFifoQDisc
extends QDisc

This class represents a simple single tail-dropping FIFO of a limited size. The limit is given by a number of packages


Fields inherited from class jtc.QDisc
device, estInterval, estTimer, ingress, majorHandle, minorHandle, parent
 
Constructor Summary
BFifoQDisc(java.lang.String device)
          Cosntructs a BFifo qdisc as the root qdisc of the given device
BFifoQDisc(TCClass parent, short majorHandle)
          Constructs a BFifo qdisc
 
Method Summary
 void setLimit(long limit)
          Set the limit (in bytes).
 java.lang.String toString()
          Get a string representation of the object.
 
Methods inherited from class jtc.QDisc
getDevice, getTC, newFilterMinor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BFifoQDisc

public BFifoQDisc(java.lang.String device)
Cosntructs a BFifo qdisc as the root qdisc of the given device
Parameters:
device - device to which the qdisc shall be attached to

BFifoQDisc

public BFifoQDisc(TCClass parent,
                  short majorHandle)
Constructs a BFifo qdisc
Parameters:
parent - the parent class of the qdisc
majorHandle - the major handle the qdisc shall be identified by
Method Detail

setLimit

public void setLimit(long limit)
Set the limit (in bytes).
Parameters:
limit - maximal number of bytes the fifo can hold

toString

public java.lang.String toString()
Get a string representation of the object. A tc command arg is used to represent it.
Overrides:
toString in class java.lang.Object
Returns:
args for tcd