|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jtc.Filter
Field Summary | |
protected int |
estInterval
estimator interval (TBD: What's it for?) |
protected int |
estTimer
time-constant (TBD: What's it?) |
protected long |
mBurst
burst of token bucket meter in bytes |
protected boolean |
mCont
continue tryig to match another filter, if meter fails? |
protected short |
minorHandle
minor handle of the filter |
protected long |
mRate
rate of token bucket meter in bps |
protected QDisc |
parent
the parent qdisc of the filter TBD: can all qdiscs have filters? |
protected short |
prio
priority of the filter |
protected java.lang.String |
protocol
protocol of the filter |
Constructor Summary | |
Filter()
|
Method Summary | |
void |
decrPrio()
give the filter lower priority |
protected java.lang.String |
getMeter()
Get a string representation (tc code) for the attached meter. |
protected java.lang.String |
getTC()
Get a string representation which we can use in the toString() methods in the derived classes |
void |
setEstimator(int interval,
int timer)
set the qdiscs estimator |
void |
setMeter(long rate,
long burst,
boolean cont)
Add a (token bucket) meter to the filter. |
void |
setPrio(short prio)
Set the priority. |
void |
setProtocol(java.lang.String protocol)
Set the protocol. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected short prio
protected short minorHandle
protected java.lang.String protocol
protected int estInterval
protected int estTimer
protected QDisc parent
protected long mRate
protected long mBurst
protected boolean mCont
Constructor Detail |
public Filter()
Method Detail |
protected java.lang.String getTC()
public void decrPrio()
public void setPrio(short prio)
prio
- prioritypublic void setProtocol(java.lang.String protocol)
protocol
- protocol (e.g. "ip")public void setMeter(long rate, long burst, boolean cont)
rate
- token rateburst
- burstcont
- continue (and reclassify) or drop if bucket empty?protected java.lang.String getMeter()
public void setEstimator(int interval, int timer)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |