Interface ISouthBoundMappingTimeoutService
- All Known Implementing Classes:
- TimeBucketMappingTimeoutService
public interface ISouthBoundMappingTimeoutService
Created by Shakib Ahmed on 12/1/16.
- 
Method SummaryModifier 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.
- 
Method Details- 
addMappingAdd mapping in Southbound Mapping Timeout Manager which is currently Time Bucket Wheel.- Parameters:
- key- The key for the mapping
- mappingData- Mapping to be stored
- Returns:
- The id of the bucket the mapping was added to
 
- 
refreshMappingRefresh 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.- Parameters:
- key- The key for the mapping
- newMappingData- New Mapping Data for the key
- presentBucketId- The id of the bucket the previous mapping is in
- Returns:
- The new id of the bucket the mapping was added to
 
- 
removeMappingFromTimeoutServiceRemove mapping from Southbound manager.- Parameters:
- key- The key for the mapping
- presentBucketId- The id of the present bucket the key is in
 
- 
removeExpiredMappingsvoid removeExpiredMappings()Remove the expired mappings from the Time Bucket Wheel. This should remove mapping from both SimpleMapCache and DataStoreBackEnd.
 
-