|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BandwidthManagement
This class manages link bandwidth. Lsps can be added or remove temporarily to see the effect on reservable bandwidth. Lsp can also be added or removed permanently, changing the reservation in the links.
Creation date: 30/10/2006
Method Summary | |
---|---|
void |
addLsp(Lsp lsp)
Add lsp reservation. |
void |
addLspTemp(Lsp lsp)
Adds a lsp temporarily. |
void |
cancelChanges()
Cancel changes made by adding and removing lsp temporarily. |
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.Set<Link> protectedLinks)
Returns the maximum reservable bandwidth at priority level priority for a
lsp traversing the link link . |
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. |
void |
removeLspTemp(Lsp lsp)
Removes a lsp temporarily. |
boolean |
usePreemption()
returns true if preemption is supported by the class. |
Method Detail |
---|
java.util.List<Lsp> getPreemptList(Lsp lsp) throws LinkCapacityExceededException
removeLspTemp(Lsp)
).
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
void removeLspTemp(Lsp lsp) throws LinkCapacityExceededException, DiffServConfigurationException, LspNotFoundException
#getReservableBandwidth(int, Link, java.util.Set)
method is called.
This can be undone by a call to cancelChanges()
.
lsp
-
LinkCapacityExceededException
DiffServConfigurationException
LspNotFoundException
void addLspTemp(Lsp lsp) throws LinkCapacityExceededException, DiffServConfigurationException, LspNotFoundException
#getReservableBandwidth(int, Link, java.util.Set)
method is called.
This can be undone by a call to cancelChanges()
.
lsp
-
LinkCapacityExceededException
DiffServConfigurationException
LspNotFoundException
void cancelChanges()
float getReservableBandwidth(int priority, Link link, java.util.Set<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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |