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
|
| Constructor and Description |
|---|
HDFSBlocksDistribution.HostAndWeight(String host,
long weight)
Constructor
|
public HDFSBlocksDistribution.HostAndWeight(String host, long weight)
host - the host nameweight - the weightpublic void addWeight(long weight)
weight - the weightpublic String getHost()
public long getWeight()
Copyright © 2014 The Apache Software Foundation. All rights reserved.