Class Subscriber
java.lang.Object
org.opendaylight.lispflowmapping.interfaces.dao.Subscriber
Request source RLOC in the mapping service with it's properties.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSubscriber
(Rloc srcRloc, Eid srcEid, int subscriberTtl) Constructor.Subscriber
(Rloc srcRloc, Eid srcEid, int subscriberTtl, Date lastRequestDate) Constructor.Subscriber
(SubscriberData subscriberData) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
hashCode()
static int
recordTtlToSubscriberTime
(Integer recordTtl) Static method to calculate the subscriber TTL from a mapping record TTL.void
setLastRequestDate
(Date lastRequestDate) void
setSubscriberTtlByRecordTtl
(Integer recordTtl) boolean
timedOut()
toString()
-
Field Details
-
DEFAULT_SUBSCRIBER_TIMEOUT
public static final int DEFAULT_SUBSCRIBER_TIMEOUT
-
-
Constructor Details
-
Subscriber
Constructor.- Parameters:
subscriberData
- YANG modeled SubscriberData object.
-
Subscriber
Constructor.- Parameters:
srcRloc
- A source RLOC.srcEid
- A source EID.subscriberTtl
- Subscriber TTL in min(s).
-
Subscriber
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
-
getSrcRloc
-
getSrcEid
-
getLastRequestDate
-
setLastRequestDate
-
getSubscriberTtl
public int getSubscriberTtl() -
setSubscriberTtlByRecordTtl
-
recordTtlToSubscriberTime
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() -
equals
-
toString
-
getString
-