locateData
public NodeInfo locateData(java.lang.String fileName)
throws HashException,
PartitionException
Determines where a file belongs in the system based on its
properties. This function could implement a simple hash-based
partitioning scheme, something more dynamic, utilize the feature graph,
etc.
Ultimately, this function will determine the DHT hierarchy.
- Specified by:
locateData
in class Partitioner<java.lang.String>
- Parameters:
fileName
- data to find the location in the network for.
- Throws:
HashException
PartitionException