@InterfaceAudience.Private public static class DFSUtil.DecomStaleComparator extends Object implements Comparator<DatanodeInfo>
Constructor and Description |
---|
DFSUtil.DecomStaleComparator(long interval)
Constructor of DecomStaleComparator
|
Modifier and Type | Method and Description |
---|---|
int |
compare(DatanodeInfo a,
DatanodeInfo b) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public DFSUtil.DecomStaleComparator(long interval)
interval
- The time interval for marking datanodes as stale is passed from
outside, since the interval may be changed dynamicallypublic int compare(DatanodeInfo a, DatanodeInfo b)
compare
in interface Comparator<DatanodeInfo>
Copyright © 2013 Apache Software Foundation. All rights reserved.