public class TimeBucketMappingTimeoutService extends Object implements ISouthBoundMappingTimeoutService
Constructor and Description |
---|
TimeBucketMappingTimeoutService(int numberOfBucket,
long mappingRecordValidityInMillis,
MappingSystem mappingSystem) |
Modifier and Type | Method and Description |
---|---|
int |
addMapping(Eid key,
MappingData mappingData)
Add mapping in Southbound Mapping Timeout Manager
which is currently Time Bucket Wheel.
|
int |
refreshMapping(Eid key,
MappingData newMappingData,
int presentBucketId)
Refresh mapping in southbound manager.
|
void |
removeExpiredMappings()
Remove the expired mappings from the Time Bucket Wheel.
|
void |
removeMappingFromTimeoutService(Eid key,
int presentBucketId)
Remove mapping from Southbound manager.
|
public TimeBucketMappingTimeoutService(int numberOfBucket, long mappingRecordValidityInMillis, MappingSystem mappingSystem)
public int addMapping(Eid key, MappingData mappingData)
ISouthBoundMappingTimeoutService
addMapping
in interface ISouthBoundMappingTimeoutService
key
- The key for the mappingmappingData
- Mapping to be storedpublic int refreshMapping(Eid key, MappingData newMappingData, int presentBucketId)
ISouthBoundMappingTimeoutService
refreshMapping
in interface ISouthBoundMappingTimeoutService
key
- The key for the mappingnewMappingData
- New Mapping Data for the keypresentBucketId
- The id of the bucket the previous mapping is inpublic void removeMappingFromTimeoutService(Eid key, int presentBucketId)
ISouthBoundMappingTimeoutService
removeMappingFromTimeoutService
in interface ISouthBoundMappingTimeoutService
key
- The key for the mappingpresentBucketId
- The id of the present bucket the key is inpublic void removeExpiredMappings()
ISouthBoundMappingTimeoutService
removeExpiredMappings
in interface ISouthBoundMappingTimeoutService
Copyright © 2019 OpenDaylight. All rights reserved.