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
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 java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
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 qdiscmajorHandle
- the major handle the qdisc shall be identified by
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