Class TimeBucketMappingTimeoutService
java.lang.Object
org.opendaylight.lispflowmapping.implementation.timebucket.implementation.TimeBucketMappingTimeoutService
- All Implemented Interfaces:
ISouthBoundMappingTimeoutService
public class TimeBucketMappingTimeoutService
extends Object
implements ISouthBoundMappingTimeoutService
Created by Shakib Ahmed on 12/1/16.
-
Constructor Summary
ConstructorsConstructorDescriptionTimeBucketMappingTimeoutService(int numberOfBucket, long mappingRecordValidityInMillis, MappingSystem mappingSystem) -
Method Summary
Modifier and TypeMethodDescriptionintaddMapping(Eid key, MappingData mappingData) Add mapping in Southbound Mapping Timeout Manager which is currently Time Bucket Wheel.intrefreshMapping(Eid key, MappingData newMappingData, int presentBucketId) Refresh mapping in southbound manager.voidRemove the expired mappings from the Time Bucket Wheel.voidremoveMappingFromTimeoutService(Eid key, int presentBucketId) Remove mapping from Southbound manager.
-
Constructor Details
-
TimeBucketMappingTimeoutService
public TimeBucketMappingTimeoutService(int numberOfBucket, long mappingRecordValidityInMillis, MappingSystem mappingSystem)
-
-
Method Details
-
addMapping
Description copied from interface:ISouthBoundMappingTimeoutServiceAdd mapping in Southbound Mapping Timeout Manager which is currently Time Bucket Wheel.- Specified by:
addMappingin interfaceISouthBoundMappingTimeoutService- Parameters:
key- The key for the mappingmappingData- Mapping to be stored- Returns:
- The id of the bucket the mapping was added to
-
refreshMapping
Description copied from interface:ISouthBoundMappingTimeoutServiceRefresh mapping in southbound manager. Remove old mapping from Time Bucket Wheel and add the mapping in proper time bucket. This is either because mapping re-registration or new merged mapping and refresh mapping request in MS/MR.- Specified by:
refreshMappingin interfaceISouthBoundMappingTimeoutService- Parameters:
key- The key for the mappingnewMappingData- New Mapping Data for the keypresentBucketId- The id of the bucket the previous mapping is in- Returns:
- The new id of the bucket the mapping was added to
-
removeMappingFromTimeoutService
Description copied from interface:ISouthBoundMappingTimeoutServiceRemove mapping from Southbound manager.- Specified by:
removeMappingFromTimeoutServicein interfaceISouthBoundMappingTimeoutService- Parameters:
key- The key for the mappingpresentBucketId- The id of the present bucket the key is in
-
removeExpiredMappings
public void removeExpiredMappings()Description copied from interface:ISouthBoundMappingTimeoutServiceRemove the expired mappings from the Time Bucket Wheel. This should remove mapping from both SimpleMapCache and DataStoreBackEnd.- Specified by:
removeExpiredMappingsin interfaceISouthBoundMappingTimeoutService
-