|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BandwidthManagement
This class manages link bandwidth.
Creation date: 30/10/2006
Method Summary | |
---|---|
void |
addLsp(Lsp lsp)
Add lsp reservation. |
java.util.List<Lsp> |
getPreemptList(Lsp lsp)
Returns the list of lsps to be preempted when a lsp is to be added to the domain. |
float |
getReservableBandwidth(int priority,
Link link,
java.util.Collection<Link> protectedLinks)
Returns the maximum reservable bandwidth at priority level priority for a
lsp traversing the link link . |
BandwidthManagement |
getSnapshot()
Returns a bandwidth management instance that can be used temporarily. |
void |
init()
Initialise the Bandwidth Management object with the lsps already present in the domain. |
void |
recomputeRbw(Link link)
Recompute the reservable bandwidth (rbw array) of the link link |
void |
removeLsp(Lsp lsp)
Removes lsp reservation. |
boolean |
usePreemption()
returns true if preemption is supported by the class. |
Method Detail |
---|
java.util.List<Lsp> getPreemptList(Lsp lsp) throws LinkCapacityExceededException
lsp
- the Lsp to be added to the domain
LinkCapacityExceededException
- if not enough bandwidth can be freed to accept the lspvoid init() throws LinkCapacityExceededException
LinkCapacityExceededException
- if the calculated bandwidth exceed link capacityvoid addLsp(Lsp lsp) throws LinkCapacityExceededException, DiffServConfigurationException, LspNotFoundException
lsp
-
LinkCapacityExceededException
DiffServConfigurationException
LspNotFoundException
- if the argument is a backup lsp and the primary lsp cannot be found in the domainvoid removeLsp(Lsp lsp) throws DiffServConfigurationException, LspNotFoundException, LinkCapacityExceededException
lsp
-
DiffServConfigurationException
LspNotFoundException
LinkCapacityExceededException
float getReservableBandwidth(int priority, Link link, java.util.Collection<Link> protectedLinks)
priority
for a
lsp traversing the link link
. If protectedLinks
is given, the reservable bandwidth for
a backup lsp protecting those links is returned, otherwise, a primary lsp is assumed.
priority
- link
- protectedLinks
-
boolean usePreemption()
void recomputeRbw(Link link) throws LinkCapacityExceededException
link.
Warning: all rbw values should be set to 0 before calling this method.
- Parameters:
link
-
- Throws:
LinkCapacityExceededException
BandwidthManagement getSnapshot()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |