public class DefaultIsisLsdbAge extends Object implements org.onosproject.isis.controller.IsisLsdbAge
| Modifier and Type | Field and Description |
|---|---|
protected int |
ageCounter |
| Constructor and Description |
|---|
DefaultIsisLsdbAge()
Creates an instance of LSDB age.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLspBin(int binNumber,
org.onosproject.isis.controller.IsisLspBin lspBin)
Adds LSP to LS bin for ageing.
|
int |
age2Bin(int age)
Returns the bin number.
|
int |
ageCounter()
Returns age counter.
|
int |
ageCounterRollOver()
Returns age counter roll over.
|
void |
ageLsp()
Gets called every second as part of the aging process.
|
org.onosproject.isis.controller.IsisLspBin |
getLspBin(int binKey)
Returns LSP from Bin.
|
void |
maxAgeLsa()
If the LSP have completed the MaxAge - they are moved called stop aging.
|
void |
refreshLsa() |
void |
removeLspFromBin(org.onosproject.isis.controller.LspWrapper lspWrapper)
Removes LSP from Bin.
|
void |
startDbAging()
Starts the aging timer and queue consumer.
|
public int ageCounter()
ageCounter in interface org.onosproject.isis.controller.IsisLsdbAgepublic int ageCounterRollOver()
ageCounterRollOver in interface org.onosproject.isis.controller.IsisLsdbAgepublic void addLspBin(int binNumber,
org.onosproject.isis.controller.IsisLspBin lspBin)
addLspBin in interface org.onosproject.isis.controller.IsisLsdbAgebinNumber - key to store in binlspBin - LSP bin instancepublic org.onosproject.isis.controller.IsisLspBin getLspBin(int binKey)
getLspBin in interface org.onosproject.isis.controller.IsisLsdbAgebinKey - keypublic void removeLspFromBin(org.onosproject.isis.controller.LspWrapper lspWrapper)
removeLspFromBin in interface org.onosproject.isis.controller.IsisLsdbAgelspWrapper - wrapper instancepublic int age2Bin(int age)
age2Bin in interface org.onosproject.isis.controller.IsisLsdbAgeage - Can be either age or ageCounterpublic void startDbAging()
startDbAging in interface org.onosproject.isis.controller.IsisLsdbAgepublic void ageLsp()
public void maxAgeLsa()
public void refreshLsa()
Copyright © 2016. All rights reserved.