|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBWControlService
Bandwidth controller service interface.
The bandwidth controllable is registered in the bandwidth controller which provides the three token buckets used for bandwidth control.
The bandwidth controller manages the token buckets assigned to the bandwidth controllable and distributes the tokens to the buckets in an implementation-specific way. (eg timely distribute the tokens according to the bandwidth config of the controllable)
Field Summary | |
---|---|
static String |
KEY
|
Method Summary | |
---|---|
ITokenBucket |
getAudioBucket(IBWControlContext context)
Return the token bucket for audio channel. |
ITokenBucket |
getDataBucket(IBWControlContext context)
Return the token bucket for data channel. |
ITokenBucket |
getVideoBucket(IBWControlContext context)
Return the token bucket for video channel. |
IBWControlContext |
lookupContext(IBWControllable bc)
Lookup the registry context according to the controllable. |
IBWControlContext |
registerBWControllable(IBWControllable bc)
Register a bandwidth controllable. |
void |
resetBuckets(IBWControlContext context)
Reset all the token buckets for a controllable. |
void |
unregisterBWControllable(IBWControlContext context)
Unregister the bandwidth controllable. |
void |
updateBWConfigure(IBWControlContext context)
Update the bandwidth configuration of a controllable. |
Field Detail |
---|
static final String KEY
Method Detail |
---|
IBWControlContext registerBWControllable(IBWControllable bc)
bc
- The bandwidth controllable.
void unregisterBWControllable(IBWControlContext context)
context
- The registry context.IBWControlContext lookupContext(IBWControllable bc)
bc
- The bandwidth controllable.
void updateBWConfigure(IBWControlContext context)
context
- The registry context.void resetBuckets(IBWControlContext context)
context
- The registry context.ITokenBucket getAudioBucket(IBWControlContext context)
context
- The registry context.
ITokenBucket getVideoBucket(IBWControlContext context)
context
- The registry context.
ITokenBucket getDataBucket(IBWControlContext context)
context
- The registry context.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |