|
||||||||||
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 | |
---|---|
void |
addBackupLsp(Lsp lsp)
Add a lsp in the list of backup lsps of this primary lsp. |
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()
|
void |
init(Domain domain)
|
boolean |
isBackupLsp()
|
void |
makePrimary()
Make a primary lsp out of the lsp object. |
void |
removeBackupLsp(Lsp lsp)
Removes a LSP for the list of backups |
void |
setLspId(java.lang.String id)
Sets the id of the LSP (the LSP must not be established in the domain). |
void |
setLspPath(Path path)
|
void |
setLspStatus(int status)
Sets the status of the lsp. |
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 |
---|
getId |
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.
DiffServConfigurationException
void setLspId(java.lang.String id) throws BadLspTypeException
id
-
BadLspTypeException
- If the LSP is in the domain.float getMetric()
float getMaxRate()
float getReservation()
void setReservation(float bw) throws LinkCapacityExceededException
LinkCapacityExceededException
Path getLspPath()
void setLspPath(Path path)
int getCT()
int getHoldingPreemption()
int getSetupPreemption()
boolean isBackupLsp()
int getBackupType()
Lsp getProtectedLsp() throws LspNotFoundException
LspNotFoundException
void setProtectedLsp(java.lang.String lspId) throws BadLspTypeException
lspId
-
BadLspTypeException
- If the lsp is not a backup lspjava.util.List<Link> getProtectedLinks() throws LinkNotFoundException
LinkNotFoundException
void addBackupLsp(Lsp lsp)
void removeBackupLsp(Lsp lsp) throws LspNotFoundException
lsp
-
LspNotFoundException
java.util.Set<Lsp> getBackups()
void makePrimary()
int getLspStatus()
STATUS_DOWN
or STATUS_UP
.
void setLspStatus(int status) throws StatusTypeException
status
-
StatusTypeException
- if the given status is different from STATUS_DOWN
or STATUS_UP
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |