public interface LsdbAge
| Modifier and Type | Method and Description |
|---|---|
void |
addLsaBin(java.lang.Integer binKey,
LsaBin lsaBin)
Adds LSA to bin for aging.
|
void |
addLsaToMaxAgeBin(java.lang.String key,
LsaWrapper wrapper)
Adds the lsa to maxAge bin if LSAs age is max age.
|
int |
age2Bin(int x)
Gets the bin number out of LSAs age, in which the LSA can be placed.
|
void |
ageLsaAndFlood()
Invoked every 1 second as part of the aging process, and increments age counter.
|
int |
getAgeCounter()
Gets the age counter.
|
int |
getAgeCounterRollOver()
Gets the age counter roll over.
|
LsaBin |
getLsaBin(java.lang.Integer binKey)
Gets LSA from bin, this method is used while processing ls refresh and max age on LSA.
|
LsaBin |
getMaxAgeBin()
Gets the max age bin, a special bin is created which holds only max age LSAs.
|
void |
maxAgeLsa()
If the LSAs have completed the MaxAge stop aging and flood it.
|
void |
refreshLsa()
Refresh the LSAs which are in the refresh bin.
|
void |
removeLsaFromBin(LsaWrapper lsaWrapper)
Removes LSA from Bin, when ever it reaches a max age or ls refresh time.
|
void |
startDbAging()
Starts the aging timer thread which gets invokes every second.
|
void addLsaBin(java.lang.Integer binKey,
LsaBin lsaBin)
binKey - key to store the LSA in binlsaBin - LSA bin instanceLsaBin getLsaBin(java.lang.Integer binKey)
binKey - key to retrieve the LSA from binvoid addLsaToMaxAgeBin(java.lang.String key,
LsaWrapper wrapper)
key - key to store the LSA in bin.wrapper - wrapper instance which contains LSAint age2Bin(int x)
x - Can be either age or ageCounterLsaBin getMaxAgeBin()
int getAgeCounter()
void refreshLsa()
void maxAgeLsa()
void ageLsaAndFlood()
void startDbAging()
void removeLsaFromBin(LsaWrapper lsaWrapper)
lsaWrapper - wrapper instanceint getAgeCounterRollOver()