public static class DFSUtil.StaleComparator extends Object implements Comparator<DatanodeInfo>
构造器和说明 |
---|
DFSUtil.StaleComparator(long interval)
Constructor of StaleComparator
|
public DFSUtil.StaleComparator(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
在接口中 Comparator<DatanodeInfo>
Copyright © 2009 The Apache Software Foundation