jtc
Class PrioQDisc
java.lang.Object
|
+--jtc.QDisc
|
+--jtc.QDiscWithClass
|
+--jtc.PrioQDisc
- public class PrioQDisc
- extends jtc.QDiscWithClass
This class represents a simple n-band priority scheduler.
Constructor Summary |
PrioQDisc(java.lang.String device)
Cosntructs a prio qdisc as the root qdisc of the given device |
PrioQDisc(TCClass parent,
short majorHandle)
Cosntructs a prio qdisc |
Method Summary |
void |
setBands(short bands)
Set the number of bands of the priority scheduler. |
void |
setPriomap(byte[] priomap)
Set the priomap of the prio qdisc. |
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 |
PrioQDisc
public PrioQDisc(java.lang.String device)
- Cosntructs a prio qdisc as the root qdisc of the given device
- Parameters:
device
- device to which the qdisc shall be attached to
PrioQDisc
public PrioQDisc(TCClass parent,
short majorHandle)
- Cosntructs a prio qdisc
- Parameters:
parent
- the parent class of the qdiscmajorHandle
- the major handle the qdisc shall be identified by
setPriomap
public void setPriomap(byte[] priomap)
- Set the priomap of the prio qdisc.
- Parameters:
priomap
- priomap, size shall be smaller than 16
setBands
public void setBands(short bands)
- Set the number of bands of the priority scheduler.
- Parameters:
bands
- number of bands
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