java.lang.Object
org.opendaylight.lispflowmapping.interfaces.dao.Subscriber

public class Subscriber extends Object
Request source RLOC in the mapping service with it's properties.
  • Field Details

    • DEFAULT_SUBSCRIBER_TIMEOUT

      public static final int DEFAULT_SUBSCRIBER_TIMEOUT
  • Constructor Details

    • Subscriber

      public Subscriber(SubscriberData subscriberData)
      Constructor.
      Parameters:
      subscriberData - YANG modeled SubscriberData object.
    • Subscriber

      public Subscriber(Rloc srcRloc, Eid srcEid, int subscriberTtl)
      Constructor.
      Parameters:
      srcRloc - A source RLOC.
      srcEid - A source EID.
      subscriberTtl - Subscriber TTL in min(s).
    • Subscriber

      public Subscriber(Rloc srcRloc, Eid srcEid, int subscriberTtl, Date lastRequestDate)
      Constructor.
      Parameters:
      srcRloc - A source RLOC.
      srcEid - A source EID.
      subscriberTtl - Subscriber TTL in min(s).
      lastRequestDate - Last request date for this subscriber.
  • Method Details

    • getSubscriberData

      public SubscriberData getSubscriberData()
    • getSrcRloc

      public Rloc getSrcRloc()
    • getSrcEid

      public Eid getSrcEid()
    • getLastRequestDate

      public Date getLastRequestDate()
    • setLastRequestDate

      public void setLastRequestDate(Date lastRequestDate)
    • getSubscriberTtl

      public int getSubscriberTtl()
    • setSubscriberTtlByRecordTtl

      public void setSubscriberTtlByRecordTtl(Integer recordTtl)
    • recordTtlToSubscriberTime

      public static int recordTtlToSubscriberTime(Integer recordTtl)
      Static method to calculate the subscriber TTL from a mapping record TTL. If a mapping record TTL is not provided, use the default 1 day TTL. The subscriber TTL is the TTL plus a constant value.
      Parameters:
      recordTtl - The time to live (TTL) value
      Returns:
      the subscriber TTL
    • timedOut

      public boolean timedOut()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getString

      public String getString()