|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jolsrv2.repository.processforward.ForwardedSet
public final class ForwardedSet
The class implements the forwarded set, as specified in OLSRv2.
Method Summary | |
---|---|
void |
addTuple(MessageTypes type,
java.net.InetAddress address,
int sequenceNumber,
long time)
Adds a forwarded tuple to the forwarded tuple set |
java.lang.Object |
clone()
Implementation of the singleton design pattern. |
boolean |
contains(MessageTypes type,
java.net.InetAddress address,
int sequenceNumber)
Checks if the forwarded set contains a forwarded tuple with having a certain message type, IP address and sequence number |
static ForwardedSet |
getForwardedSet()
Implementation of the singleton design pattern |
void |
purge()
The method purges the forwarded set, deleting expired entries |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ForwardedSet getForwardedSet()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public boolean contains(MessageTypes type, java.net.InetAddress address, int sequenceNumber)
type
- the message typeaddress
- the IP addresssequenceNumber
- the sequence number
public void addTuple(MessageTypes type, java.net.InetAddress address, int sequenceNumber, long time)
type
- the message typeaddress
- the IP addresssequenceNumber
- the sequence numbertime
- the timepublic void purge()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |