public class LRUCachingHandler extends java.lang.Object implements CachingHandler
Constructor and Description |
---|
LRUCachingHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of this CachingHandler object.
|
int[] |
getPartitionsToFlushOut(java.util.Collection<java.lang.Integer> residentPartitions, int minNumNodesToFlushOut)
Returns the IDs of the partitions to be flushed out.
|
void |
updateRank(LogicalPartition partition)
Updates the rank of the partition in the cache.
|
public int[] getPartitionsToFlushOut(java.util.Collection<java.lang.Integer> residentPartitions, int minNumNodesToFlushOut) throws LODNetworkException
CachingHandler
getPartitionsToFlushOut
in interface CachingHandler
residentPartitions
- resident partitions, which are the partitions to be excluded from the returned list.LODNetworkException
public void updateRank(LogicalPartition partition)
CachingHandler
updateRank
in interface CachingHandler
partition
- the partition object whose rank is to be updatedpublic java.lang.Object clone()
CachingHandler
clone
in interface CachingHandler
clone
in class java.lang.Object