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
CachingHandlergetPartitionsToFlushOut in interface CachingHandlerresidentPartitions - resident partitions, which are the partitions to be excluded from the returned list.LODNetworkExceptionpublic void updateRank(LogicalPartition partition)
CachingHandlerupdateRank in interface CachingHandlerpartition - the partition object whose rank is to be updatedpublic java.lang.Object clone()
CachingHandlerclone in interface CachingHandlerclone in class java.lang.Object