net.floodlightcontroller.util
Class OFMessageDamper.DamperEntry

java.lang.Object
  extended by net.floodlightcontroller.util.OFMessageDamper.DamperEntry
Enclosing class:
OFMessageDamper

protected static class OFMessageDamper.DamperEntry
extends java.lang.Object

An entry in the TimedCache. A cache entry consists of the sent message as well as the switch to which the message was sent. NOTE: We currently use the full OFMessage object. To save space, we could use a cryptographic hash (e.g., SHA-1). However, this would obviously be more time-consuming.... We also store a reference to the actual IOFSwitch object and /not/ the switch DPID. This way we are guarnteed to not dampen messages if a switch disconnects and then reconnects.

Author:
gregor

Constructor Summary
OFMessageDamper.DamperEntry(OFMessage msg, IOFSwitch sw)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OFMessageDamper.DamperEntry

public OFMessageDamper.DamperEntry(OFMessage msg,
                                   IOFSwitch sw)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object