public DiskStatus getDiskStatus() throws IOException { long rawNums[] = namenode.getStats(); return new DiskStatus(rawNums[0], rawNums[1], rawNums[2]); }
public DiskStatus getNSDiskStatus() throws IOException { long rawNums[] = namenode.getStats(); // rawNums[6] should be capacityNamespaceUsed long dfsUsed = (rawNums.length > 6)? rawNums[6]: rawNums[1]; return new DiskStatus(rawNums[0], dfsUsed, rawNums[2]); }