net.floodlightcontroller.devicemanager.internal
Class AttachmentPoint

java.lang.Object
  extended by net.floodlightcontroller.devicemanager.internal.AttachmentPoint

public class AttachmentPoint
extends java.lang.Object


Field Summary
static long CONSISTENT_TIMEOUT
           
static long EXTERNAL_TO_EXTERNAL_TIMEOUT
           
static long INACTIVITY_INTERVAL
           
static long OPENFLOW_TO_EXTERNAL_TIMEOUT
           
 
Constructor Summary
AttachmentPoint(AttachmentPoint ap)
           
AttachmentPoint(long sw, int port, long lastSeen)
           
AttachmentPoint(long sw, int port, long activeSince, long lastSeen)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares only the switch and port
 long getActiveSince()
           
 long getLastSeen()
           
 int getPort()
           
 long getSw()
           
 int hashCode()
          Hash is generated using only switch and port
 void setActiveSince(long activeSince)
           
 void setLastSeen(long lastSeen)
           
 void setPort(int port)
           
 void setSw(long sw)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INACTIVITY_INTERVAL

public static final long INACTIVITY_INTERVAL
See Also:
Constant Field Values

EXTERNAL_TO_EXTERNAL_TIMEOUT

public static final long EXTERNAL_TO_EXTERNAL_TIMEOUT
See Also:
Constant Field Values

OPENFLOW_TO_EXTERNAL_TIMEOUT

public static final long OPENFLOW_TO_EXTERNAL_TIMEOUT
See Also:
Constant Field Values

CONSISTENT_TIMEOUT

public static final long CONSISTENT_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

AttachmentPoint

public AttachmentPoint(long sw,
                       int port,
                       long activeSince,
                       long lastSeen)

AttachmentPoint

public AttachmentPoint(long sw,
                       int port,
                       long lastSeen)

AttachmentPoint

public AttachmentPoint(AttachmentPoint ap)
Method Detail

getSw

public long getSw()

setSw

public void setSw(long sw)

getPort

public int getPort()

setPort

public void setPort(int port)

getActiveSince

public long getActiveSince()

setActiveSince

public void setActiveSince(long activeSince)

getLastSeen

public long getLastSeen()

setLastSeen

public void setLastSeen(long lastSeen)

hashCode

public int hashCode()
Hash is generated using only switch and port

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Compares only the switch and port

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object