public class LsdbAgeImpl extends Object implements org.onosproject.ospf.controller.LsdbAge
| Modifier and Type | Field and Description |
|---|---|
protected int |
ageCounter |
| Constructor and Description |
|---|
LsdbAgeImpl(org.onosproject.ospf.controller.OspfArea ospfArea)
Creates an instance of LSDB age.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLsaBin(Integer binKey,
org.onosproject.ospf.controller.LsaBin lsaBin)
Adds LSA to bin.
|
void |
addLsaToMaxAgeBin(String key,
org.onosproject.ospf.controller.LsaWrapper wrapper)
Adds the LSA to maxAge bin.
|
int |
age2Bin(int x)
Gets the bin number.
|
void |
ageLsaAndFlood()
Gets called every 1 second as part of the timer.
|
void |
checkAges()
Verify the checksum for the LSAs who are in bins of 300 and it's multiples.
|
boolean |
equals(Object o) |
int |
getAgeCounter()
Gets the age counter.
|
int |
getAgeCounterRollOver()
Gets the age counter roll over value.
|
org.jboss.netty.channel.Channel |
getChannel()
Gets the netty channel.
|
org.onosproject.ospf.controller.LsaBin |
getLsaBin(Integer binKey)
Gets LSA from Bin.
|
org.onosproject.ospf.controller.LsaBin |
getMaxAgeBin()
Gets the max age bin.
|
int |
hashCode() |
void |
maxAgeLsa()
If the LSA have completed the MaxAge - they are moved called stop aging and flooded.
|
void |
refreshLsa() |
void |
removeLsaFromBin(org.onosproject.ospf.controller.LsaWrapper lsaWrapper)
Removes LSA from Bin.
|
void |
setChannel(org.jboss.netty.channel.Channel channel)
Sets the netty channel.
|
void |
startDbAging()
Starts the aging timer and queue consumer.
|
public LsdbAgeImpl(org.onosproject.ospf.controller.OspfArea ospfArea)
ospfArea - OSPF area instancepublic void addLsaBin(Integer binKey, org.onosproject.ospf.controller.LsaBin lsaBin)
addLsaBin in interface org.onosproject.ospf.controller.LsdbAgebinKey - key to store in binlsaBin - LSA bin instancepublic org.onosproject.ospf.controller.LsaBin getLsaBin(Integer binKey)
getLsaBin in interface org.onosproject.ospf.controller.LsdbAgebinKey - keypublic void addLsaToMaxAgeBin(String key, org.onosproject.ospf.controller.LsaWrapper wrapper)
addLsaToMaxAgeBin in interface org.onosproject.ospf.controller.LsdbAgekey - keywrapper - wrapper instancepublic void removeLsaFromBin(org.onosproject.ospf.controller.LsaWrapper lsaWrapper)
removeLsaFromBin in interface org.onosproject.ospf.controller.LsdbAgelsaWrapper - wrapper instancepublic void startDbAging()
startDbAging in interface org.onosproject.ospf.controller.LsdbAgepublic void ageLsaAndFlood()
ageLsaAndFlood in interface org.onosproject.ospf.controller.LsdbAgepublic void maxAgeLsa()
maxAgeLsa in interface org.onosproject.ospf.controller.LsdbAgepublic void refreshLsa()
refreshLsa in interface org.onosproject.ospf.controller.LsdbAgepublic void checkAges()
public org.jboss.netty.channel.Channel getChannel()
public void setChannel(org.jboss.netty.channel.Channel channel)
channel - netty channelpublic int getAgeCounter()
getAgeCounter in interface org.onosproject.ospf.controller.LsdbAgepublic int getAgeCounterRollOver()
public org.onosproject.ospf.controller.LsaBin getMaxAgeBin()
getMaxAgeBin in interface org.onosproject.ospf.controller.LsdbAgepublic int age2Bin(int x)
age2Bin in interface org.onosproject.ospf.controller.LsdbAgex - Can be either age or ageCounterCopyright © 2016. All rights reserved.