public class LeveledNetworkCache
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears network cache for all link levels.
|
void |
clear(int linkLevel)
Clears network cache for the specified link level.
|
void |
flushPartition(int partitionId, int linkLevel)
Removes the partition from the cache.
|
int |
getNumberOfLinkLevels() |
int |
getNumberOfNodesInMemory(int linkLevel)
Return the number of nodes in memory for the specified link level.
|
int |
getNumberOfPartitions(int linkLevel)
Returns the number of network partitions in the cache for the specified link level.
|
int[] |
getPartitionIds(int linkLevel) |
LongHashMap<LogicalPartition> |
getPartitions(int linkLevel)
Returns all the network partitions in the cache for the specified link level.
|
void |
setPartition(int partitionId, LogicalPartition partition, int linkLevel)
Adds or replaces a network partition in the cache.
|
java.lang.String |
toString() |
void |
update(int linkLevel, NetworkUpdate networkUpdate)
Updates the network cache.
|
public int getNumberOfLinkLevels()
public LongHashMap<LogicalPartition> getPartitions(int linkLevel)
linkLevel
- link levelpublic int getNumberOfNodesInMemory(int linkLevel)
linkLevel
- link levelpublic int getNumberOfPartitions(int linkLevel)
linkLevel
- link levelpublic int[] getPartitionIds(int linkLevel)
public void setPartition(int partitionId, LogicalPartition partition, int linkLevel) throws LODNetworkException
partitionId
-partition
-LODNetworkException
public void flushPartition(int partitionId, int linkLevel)
partitionId
-linkLevel
-public void clear(int linkLevel)
linkLevel
- link levelpublic void clear()
public void update(int linkLevel, NetworkUpdate networkUpdate) throws LODNetworkException
LODNetworkException
public java.lang.String toString()
toString
in class java.lang.Object