Class DataNodeUsageReport
java.lang.Object
org.apache.hadoop.hdfs.server.protocol.DataNodeUsageReport
A class that allows DataNode to communicate information about
usage statistics/metrics to NameNode.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DataNodeUsageReportAn object representing a DataNodeUsageReport with default values. -
Method Summary
-
Field Details
-
EMPTY_REPORT
An object representing a DataNodeUsageReport with default values. Should be used instead of null or creating new objects when there are no statistics to report.
-
-
Method Details
-
toString
-
hashCode
public int hashCode() -
equals
-
getBytesWrittenPerSec
public long getBytesWrittenPerSec() -
getBytesReadPerSec
public long getBytesReadPerSec() -
getWriteTime
public long getWriteTime() -
getReadTime
public long getReadTime() -
getBlocksWrittenPerSec
public long getBlocksWrittenPerSec() -
getBlocksReadPerSec
public long getBlocksReadPerSec() -
getTimestamp
public long getTimestamp()
-