org.apache.hadoop.hdfs.server.protocol
Class StorageReport

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.protocol.StorageReport

public class StorageReport
extends Object

Utilization report for a Datanode storage


Field Summary
static StorageReport[] EMPTY_ARRAY
           
 
Constructor Summary
StorageReport(DatanodeStorage storage, boolean failed, long capacity, long dfsUsed, long remaining, long bpUsed)
           
 
Method Summary
 long getBlockPoolUsed()
           
 long getCapacity()
           
 long getDfsUsed()
           
 long getRemaining()
           
 DatanodeStorage getStorage()
           
 boolean isFailed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_ARRAY

public static final StorageReport[] EMPTY_ARRAY
Constructor Detail

StorageReport

public StorageReport(DatanodeStorage storage,
                     boolean failed,
                     long capacity,
                     long dfsUsed,
                     long remaining,
                     long bpUsed)
Method Detail

getStorage

public DatanodeStorage getStorage()

isFailed

public boolean isFailed()

getCapacity

public long getCapacity()

getDfsUsed

public long getDfsUsed()

getRemaining

public long getRemaining()

getBlockPoolUsed

public long getBlockPoolUsed()


Copyright © 2014 Apache Software Foundation. All Rights Reserved.