public abstract class Partitioner<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected NetworkInfo |
network |
protected StorageNode |
storageNode |
Constructor and Description |
---|
Partitioner(StorageNode storageNode,
NetworkInfo network) |
Modifier and Type | Method and Description |
---|---|
abstract NodeInfo |
locateData(T data)
Determines where a file belongs in the system based on its
properties.
|
protected StorageNode storageNode
protected NetworkInfo network
public Partitioner(StorageNode storageNode, NetworkInfo network)
public abstract NodeInfo locateData(T data) throws HashException, PartitionException
data
- data to find the location in the network for.HashException
PartitionException