|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Lsp
A Label Switched Path in a Domain
Creation date: 19-Jan-2005 15:47:36
| Field Summary | |
|---|---|
static int |
BYPASS_BACKUP_TYPE
|
static int |
DETOUR_E2E_BACKUP_TYPE
|
static int |
DETOUR_LOCAL_BACKUP_TYPE
|
static int |
STATUS_DOWN
|
static int |
STATUS_UP
|
| Method Summary | |
|---|---|
boolean |
acceptClassOfService(java.lang.String name)
Tell if the lsp can accept traffic of the specified class. |
void |
activateBackup(Lsp backupLsp)
Activate the specified backup |
void |
addAcceptedClassOfService(java.lang.String name)
Add a class of service to the list of accepted classes of service. |
void |
addBackupLsp(Lsp lsp)
Add a lsp in the list of backup lsps of this primary lsp. |
void |
deactivateBackup(Lsp backupLsp)
Deactivate the specified backup |
java.util.List<java.lang.String> |
getAcceptedClassesOfService()
Returns the list of class of service names for which traffic can be routed on this LSP. |
java.util.List<Lsp> |
getActivatedBackups()
Returns a list of activated backups (the list is ordered by ingress) |
java.util.Set<Lsp> |
getBackups()
returns a set of the backups lsps |
int |
getBackupType()
|
int |
getCT()
|
int |
getHoldingPreemption()
|
Path |
getLspPath()
|
int |
getLspStatus()
Returns the status of the LSP. |
float |
getMaxRate()
|
float |
getMetric()
|
java.util.List<Link> |
getProtectedLinks()
|
Lsp |
getProtectedLsp()
|
float |
getReservation()
|
int |
getSetupPreemption()
|
Path |
getWorkingPath()
The working path is the current path used for routing on this LSP. |
void |
init(Domain domain)
|
boolean |
isBackupLsp()
|
boolean |
isBypassLsp()
|
boolean |
isDetourActivated()
Returns true if the backup is a detour and that it is activated for the corresponding primary |
boolean |
isDetourLsp()
|
void |
linkDownEvent(Link link)
A link came down on the lsp path. |
void |
linkUpEvent(Link link)
A link came up on the lsp path. |
void |
makePrimary()
Make a primary lsp out of the lsp object. |
void |
nodeDownEvent(Node node)
A node came up on the lsp path. |
void |
nodeUpEvent(Node node)
A node came up on the lsp path. |
void |
removeAcceptedClassOfService(java.lang.String name)
Remove a class of service to the list of accepted classes of service. |
void |
removeBackupLsp(Lsp lsp)
Removes a LSP for the list of backups |
void |
setLspPath(Path path)
|
void |
setProtectedLsp(java.lang.String lspId)
Sets the protected lsp of a backup lsp. |
void |
setReservation(float bw)
|
| Methods inherited from interface be.ac.ulg.montefiore.run.totem.domain.model.DomainElement |
|---|
getDomain, getId, setElementId |
| Field Detail |
|---|
static final int DETOUR_E2E_BACKUP_TYPE
static final int DETOUR_LOCAL_BACKUP_TYPE
static final int BYPASS_BACKUP_TYPE
static final int STATUS_UP
static final int STATUS_DOWN
| Method Detail |
|---|
void init(Domain domain)
throws InvalidPathException,
DiffServConfigurationException
domain -
InvalidPathException - If the LSP has invalid path.
DiffServConfigurationExceptionfloat getMetric()
float getMaxRate()
float getReservation()
void setReservation(float bw)
throws LinkCapacityExceededException
LinkCapacityExceededExceptionPath getLspPath()
Path getWorkingPath()
throws InvalidPathException
InvalidPathException - when called on a backup lsp or when the working path is downjava.util.List<Lsp> getActivatedBackups()
boolean isDetourActivated()
void activateBackup(Lsp backupLsp)
throws LspNotFoundException
backupLsp -
LspNotFoundException - If the backup cannot be found, if it is not a backup or if the backup is a detour of
another lsp.
void deactivateBackup(Lsp backupLsp)
throws LspNotFoundException
backupLsp -
LspNotFoundExceptionvoid linkDownEvent(Link link)
link - void linkUpEvent(Link link)
link - void nodeUpEvent(Node node)
node - void nodeDownEvent(Node node)
node - void setLspPath(Path path)
int getCT()
int getHoldingPreemption()
int getSetupPreemption()
boolean isBackupLsp()
boolean isDetourLsp()
boolean isBypassLsp()
int getBackupType()
Lsp getProtectedLsp()
throws LspNotFoundException
LspNotFoundException
void setProtectedLsp(java.lang.String lspId)
throws BadLspTypeException
lspId -
BadLspTypeException - If the lsp is not a backup lsp
java.util.List<Link> getProtectedLinks()
throws LinkNotFoundException
LinkNotFoundExceptionvoid addBackupLsp(Lsp lsp)
void removeBackupLsp(Lsp lsp)
throws LspNotFoundException
lsp -
LspNotFoundExceptionjava.util.Set<Lsp> getBackups()
void makePrimary()
int getLspStatus()
STATUS_DOWN or STATUS_UP. The status of the lsp
is changed via the linkUpEvent, linkDownEvent, nodeUpEvent, nodeDownEvent methods.
void addAcceptedClassOfService(java.lang.String name)
throws ClassOfServiceNotFoundException,
ClassOfServiceAlreadyExistException
name -
ClassOfServiceNotFoundException - If the class is not defined in the domain
ClassOfServiceAlreadyExistException - If the class is already present in the accepted list
void removeAcceptedClassOfService(java.lang.String name)
throws ClassOfServiceNotFoundException
name -
ClassOfServiceNotFoundException - if the class is not defined in the listjava.util.List<java.lang.String> getAcceptedClassesOfService()
boolean acceptClassOfService(java.lang.String name)
name -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||