public static class HDFSBlocksDistribution.HostAndWeight extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HDFSBlocksDistribution.HostAndWeight.WeightComparator
comparator used to sort hosts based on weight
|
Modifier and Type | Field and Description |
---|---|
private String |
host |
private long |
weight |
Constructor and Description |
---|
HostAndWeight(String host,
long weight)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addWeight(long weight)
add weight
|
String |
getHost() |
long |
getWeight() |
public HostAndWeight(String host, long weight)
host
- the host nameweight
- the weightCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.