Java 类org.apache.hadoop.hdfs.DistributedFileSystem.DiskStatus 实例源码

项目:hadoop-EAR    文件:DFSClient.java   
public DiskStatus getDiskStatus() throws IOException {
  long rawNums[] = namenode.getStats();
  return new DiskStatus(rawNums[0], rawNums[1], rawNums[2]);
}
项目:hadoop-EAR    文件:DFSClient.java   
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]);
}
项目:hadoop-on-lustre    文件:DFSClient.java   
public DiskStatus getDiskStatus() throws IOException {
  long rawNums[] = namenode.getStats();
  return new DiskStatus(rawNums[0], rawNums[1], rawNums[2]);
}
项目:RDFS    文件:DFSClient.java   
public DiskStatus getDiskStatus() throws IOException {
  long rawNums[] = namenode.getStats();
  return new DiskStatus(rawNums[0], rawNums[1], rawNums[2]);
}
项目:RDFS    文件:DFSClient.java   
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]);
}
项目:hadoop-0.20    文件:DFSClient.java   
public DiskStatus getDiskStatus() throws IOException {
  long rawNums[] = namenode.getStats();
  return new DiskStatus(rawNums[0], rawNums[1], rawNums[2]);
}
项目:hortonworks-extension    文件:DFSClient.java   
public DiskStatus getDiskStatus() throws IOException {
  long rawNums[] = namenode.getStats();
  return new DiskStatus(rawNums[0], rawNums[1], rawNums[2]);
}
项目:hortonworks-extension    文件:DFSClient.java   
public DiskStatus getDiskStatus() throws IOException {
  long rawNums[] = namenode.getStats();
  return new DiskStatus(rawNums[0], rawNums[1], rawNums[2]);
}
项目:hadoop-gpu    文件:DFSClient.java   
public DiskStatus getDiskStatus() throws IOException {
  long rawNums[] = namenode.getStats();
  return new DiskStatus(rawNums[0], rawNums[1], rawNums[2]);
}